drm/i915: include hangcheck action and score in error_state
authorMika Kuoppala <mika.kuoppala@linux.intel.com>
Fri, 6 Sep 2013 13:03:28 +0000 (16:03 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 6 Sep 2013 15:56:17 +0000 (17:56 +0200)
commitda66146425c3136943452988afd3d64cd551da58
tree3313c9048777655cf90c598f7578b782c442a002
parentbe62acb4cce1389a28296852737e3917d9cc5b25
drm/i915: include hangcheck action and score in error_state

Score and action reveals what all the rings were doing
and why hang was declared. Add idle state so that
we can distinguish between waiting and idle ring.

v2: - add idle as a hangcheck action
    - consensed hangcheck status to single line (Chris)
    - mark active explicitly when we are making progress (Chris)

Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Mika Kuoppala <mika.kuoppala@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_gpu_error.c
drivers/gpu/drm/i915/i915_irq.c
drivers/gpu/drm/i915/intel_ringbuffer.h