]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Make prepare_plane_fb fully interruptible.
authorMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Wed, 23 Sep 2015 11:27:09 +0000 (13:27 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 19 Oct 2015 09:31:59 +0000 (11:31 +0200)
commitbde60dd640c7f4d4d106d672b9281e6df78cb154
tree8d6e265e453bf244a6b2fbeabcef6d0eae2dbfa1
parent137eb926af6e03b7050890884ec7f08f72bd5667
drm/i915: Make prepare_plane_fb fully interruptible.

Now that we agreed on not preserving framebuffers pinning is finally
allowed to fail because of signals. Use this to make pinning
and acquire the mutex in an interruptible way too.

Unpinning is still uninterruptible, because it happens as a cleanup
of old state, or undoing pins after one of the pins failed.

The intel_pin_and_fence_fb_obj in page_flip will also wait interruptibly,
and can be aborted now.

Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Reviewed-by: Ander Conselvan de Oliveira <conselvan2@gmail.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_display.c