drm/i915: Avoid promoting a simulated hang to 'wedged'
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 28 May 2013 09:38:44 +0000 (10:38 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 31 May 2013 18:54:06 +0000 (20:54 +0200)
commit2e7c8ee7a6bf3440478120f14cbf597d416f88b2
treee6d6724e00f9f46b5c0577835fc22c68808387b1
parent64eae94134d2fd0a0f1cf2162fb91e46da4ec75f
drm/i915: Avoid promoting a simulated hang to 'wedged'

It appears that a beneficial side-effect of Mika's more accurate hangman
work is to speed up hang detection and execution. This exposes a bug in
the reset code that then treats repeated simulated hangs as an
indication that the machine is wedged. Jiggle the code around so that we
only do the simulation processing from the hangcheck and avoid confusing
it with a real hang.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=65060
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Mika Kuoppala <mika.kuoppala@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_drv.c