]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2596f86ec28b5fb671fd8ef9d0d0247215c6462b
tree3b8787a5114d5278165eb776ecbba229df7f0909
parente910e0b8223b12e00efda4cd42a7fcbd626c96bc
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