]> git.karo-electronics.de Git - mv-sheeva.git/commit
drm/i915: If the GPU hangs twice within 5 seconds, declare it wedged.
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 1 Oct 2010 13:57:56 +0000 (14:57 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 1 Oct 2010 13:57:56 +0000 (14:57 +0100)
commitae681d969ac0946e09636f2bef7a126d73e1ad6b
treedc26ce897c7b46a515665e6c56f11d1493f5bdb2
parent2fa772f34042cd4ddfb4ffaf5c24f0ce8c1025e9
drm/i915: If the GPU hangs twice within 5 seconds, declare it wedged.

The issue is that we may become stuck executing a long running shader
and continually attempt to reset the GPU. (Or maybe we tickle some bug
and need to break the vicious cycle.) So if we are detect a second hang
within 5 seconds, give up trying to programme the GPU and report it
wedged.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
drivers/gpu/drm/i915/i915_drv.c
drivers/gpu/drm/i915/i915_drv.h