Skip to content

Commit 3b675b1

Browse files
committed
drm/virtio: add missing virtio_gpu_array_lock_resv call
When submitting a fenced command we must lock the object reservations because virtio_gpu_queue_fenced_ctrl_buffer() unlocks after adding the fence. Reported-by: Jann Horn <[email protected]> Signed-off-by: Gerd Hoffmann <[email protected]> Reviewed-by: Chia-I Wu <[email protected]> Tested-by: Jann Horn <[email protected]> Link: http://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent 023b3b0 commit 3b675b1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/gpu/drm/virtio/virtgpu_plane.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,7 @@ static void virtio_gpu_cursor_plane_update(struct drm_plane *plane,
232232
if (!objs)
233233
return;
234234
virtio_gpu_array_add_obj(objs, vgfb->base.obj[0]);
235+
virtio_gpu_array_lock_resv(objs);
235236
virtio_gpu_cmd_transfer_to_host_2d
236237
(vgdev, 0,
237238
plane->state->crtc_w,

0 commit comments

Comments
 (0)