[Intel-gfx] [PATCH] drm/i915: Skip GPU wait for scanout pin while wedged
Chris Wilson
chris at chris-wilson.co.uk
Wed Jul 20 02:03:17 CEST 2011
On Tue, 19 Jul 2011 16:26:43 -0700, Keith Packard <keithp at keithp.com> wrote:
> Failing to pin a scanout buffer will most likely lead to a black
> screen, so if the GPU is wedged, then just let the pin happen and hope
> that things work out OK.
This doesn't prevent us returning an error should the wait-rendering abort
due to a GPU hang occurring in the middle of the wait.
i915_gem_object_pin_to_display_plane is used for more than just the
scanout, cursors and overlay are also included, otherwise we could just
ignore any errors. So,
/* Update the display engine regardless of any GPU hangs */
if (ret == -ERESTARTSYS)
return ret;
-Chris
--
Chris Wilson, Intel Open Source Technology Centre
More information about the Intel-gfx
mailing list