drm/i915: Don't accumulate hangcheck score on forward progress
authorMika Kuoppala <mika.kuoppala@linux.intel.com>
Tue, 5 Aug 2014 14:16:26 +0000 (17:16 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 7 Aug 2014 12:04:07 +0000 (14:04 +0200)
commitf260fe7b2f8c32e2fb02a36d3b76ef64b61dbdc5
tree3b8787a5114d5278165eb776ecbba229df7f0909
parent02c9f7e3cfe76a7f54ef03438c36aade86cc1c8b
drm/i915: Don't accumulate hangcheck score on forward progress

If the actual head has progressed forward inside a batch (request),
don't accumulate hangcheck score.

As the hangcheck score in increased only by acthd jumping backwards,
the result is that we only declare an active batch as stuck if it is
trapped inside a loop. Or that the looping will dominate the batch
progression so that it overcomes the bonus that forward progress gives.

v2: Improved commit message (Chris Wilson)

Signed-off-by: Mika Kuoppala <mika.kuoppala@intel.com>
[danvet: s/active_loop/active (loop)/ as requested by Chris.]
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_gpu_error.c
drivers/gpu/drm/i915/i915_irq.c
drivers/gpu/drm/i915/intel_ringbuffer.h
This page took 0.024695 seconds and 5 git commands to generate.