]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Defer reporting EIO until we try to use the GPU
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 26 Jan 2011 15:55:56 +0000 (15:55 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 27 Jan 2011 11:06:07 +0000 (11:06 +0000)
commit8841a424414523012537d8d507501a13ff52b558
tree4b0420fdb193276f4e53df78afc50642e8984a5e
parent2f4d05b6ed5bac6a7bbf93d7ef51b87db2993fea
drm/i915: Defer reporting EIO until we try to use the GPU

Instead of reporting EIO upfront in the entrance of an ioctl that may or
may not attempt to use the GPU, defer the actual detection of an invalid
ioctl to when we issue a GPU instruction. This allows us to continue to
use bo in video memory (via pread/pwrite and mmap) after the GPU has hung.

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