drm/i915: Ignore a hung GPU when flushing the framebuffer prior to a switch
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 11 Feb 2011 20:47:45 +0000 (20:47 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 16 Feb 2011 09:25:17 +0000 (09:25 +0000)
commit01eec727d974d245a4b8a909f5219eb56b6a72de
tree41fc096825a378a527e500fbf7f2a639da0d99a0
parent85e2efbb1db9a18d218006706d6e4fbeb0216213
drm/i915: Ignore a hung GPU when flushing the framebuffer prior to a switch

If the gpu is hung, then whatever was inside the render cache is lost
and there is little point waiting for it. Or complaining if we see an
EIO or EAGAIN instead. So, if the GPU is indeed in its death throes when
we need to rewrite the registers for a new framebuffer, just ignore the
error and proceed with the update.

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