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>
Tue, 22 Feb 2011 15:52:40 +0000 (15:52 +0000)
commit86b27d8050b6b2aec31063fa9f40b16fb347afb3
treeea0e0f435e21e19ba2884dae1fe43fded64b42ae
parentf5412be599602124d2bdd49947b231dd77c0bf99
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