]> git.baikalelectronics.ru Git - kernel.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)
commitacee3edf957a1995ea0d934cf8c8ea8f7ba5a8ea
treedc26ce897c7b46a515665e6c56f11d1493f5bdb2
parent1d3214fca7fcae4c49ae936ee213b2379f34e25f
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