Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/vc4: Wait for fences interruptibly in blocking mode.

We should allow SIGIO and things to interrupt us before we get to the
no-error stage of the commit process. This code is effectively copied
from drm_atomic_helper_commit().

Signed-off-by: Eric Anholt <eric@anholt.net>
Link: http://patchwork.freedesktop.org/patch/msgid/20170621185002.28563-2-eric@anholt.net
Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Reviewed-by: Boris Brezillon <boris.brezillon@free-electrons.com>

+10
+10
drivers/gpu/drm/vc4/vc4_kms.c
··· 142 142 return ret; 143 143 } 144 144 145 + if (!nonblock) { 146 + ret = drm_atomic_helper_wait_for_fences(dev, state, true); 147 + if (ret) { 148 + drm_atomic_helper_cleanup_planes(dev, state); 149 + kfree(c); 150 + up(&vc4->async_modeset); 151 + return ret; 152 + } 153 + } 154 + 145 155 for_each_plane_in_state(state, plane, new_state, i) { 146 156 if ((plane->state->fb != new_state->fb) && new_state->fb) { 147 157 struct drm_gem_cma_object *cma_bo =