projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
023b3b0
)
drm/virtio: add missing virtio_gpu_array_lock_resv call
author
Gerd Hoffmann
<kraxel@redhat.com>
Fri, 10 Jan 2020 09:45:35 +0000
(10:45 +0100)
committer
Gerd Hoffmann
<kraxel@redhat.com>
Mon, 13 Jan 2020 07:28:12 +0000
(08:28 +0100)
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 <jannh@google.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Chia-I Wu <olvaffe@gmail.com>
Tested-by: Jann Horn <jannh@google.com>
Link:
http://patchwork.freedesktop.org/patch/msgid/20200110094535.23472-1-kraxel@redhat.com
drivers/gpu/drm/virtio/virtgpu_plane.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/virtio/virtgpu_plane.c
b/drivers/gpu/drm/virtio/virtgpu_plane.c
index
3905241
..
1635a9f
100644
(file)
--- a/
drivers/gpu/drm/virtio/virtgpu_plane.c
+++ b/
drivers/gpu/drm/virtio/virtgpu_plane.c
@@
-232,6
+232,7
@@
static void virtio_gpu_cursor_plane_update(struct drm_plane *plane,
if (!objs)
return;
virtio_gpu_array_add_obj(objs, vgfb->base.obj[0]);
+ virtio_gpu_array_lock_resv(objs);
virtio_gpu_cmd_transfer_to_host_2d
(vgdev, 0,
plane->state->crtc_w,