]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Fix infinite loop regression from 8841a424
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 7 Feb 2011 13:09:31 +0000 (13:09 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 7 Feb 2011 14:33:55 +0000 (14:33 +0000)
commit3b9f43379d58feee5ca3193504603a0430a44e0f
tree70cda44be76ffa39b0efc03137732b842e5d8b6e
parent5955e37cdda3e9455efb29c8bed09b121f572b6e
drm/i915: Fix infinite loop regression from 8841a424

By returning EAGAIN upon a wedged GPU before attempting to wait, we
would hit an infinite loop of repeating operation without ever
progressing. Instead this needs to be EIO so that userspace knows that
the GPU is truly wedged and not in the process of error recovery.

Similarly, we need to handle the error recovery during i915_gem_fault.

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