drm/i915: Use new INSTDONE registers (Gen7+)
authorBen Widawsky <ben@bwidawsk.net>
Wed, 22 Aug 2012 18:32:15 +0000 (11:32 -0700)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 24 Aug 2012 14:58:36 +0000 (16:58 +0200)
commit050ee91f128bd767b1413383fea6c973aa464c54
tree1c16fd49d2935fa9a6b008c6647aef9d7c814806
parentd53bd48459a554503e07bc3a4b8bba2b57c2ff48
drm/i915: Use new INSTDONE registers (Gen7+)

Using the extracted INSTDONE reading, and our new register definitions,
update our hangcheck detection and error collection to use it. This
primarily means changing == to memcmp, and changing = to memcpy.
Hopefully this will give more info on error dump, and provide more
accurate hangcheck detection (both are actually TBD).

Also, remove the reading of instdone1 from the ring error collection
function, and just crap everything in capture_error_state (that could be
split into a separate patch if it wasn't so trivial).

v2: Now assuming i915_get_extra_instdone does the memset we can clean up the
code a bit (Jani)

v3: use ARRAY_SIZE as requested earlier by Jani (didn't change sizeof)
Updated commit msg

Cc: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_debugfs.c
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_irq.c