diff options
author | Gerd Hoffmann <[email protected]> | 2020-02-14 13:55:31 +0100 |
---|---|---|
committer | Gerd Hoffmann <[email protected]> | 2020-02-17 14:50:49 +0100 |
commit | fcdd19b85c7bb800ec23c9dff15092a7004cfd3f (patch) | |
tree | 70aa67a35d3cc044128c602ddb1a5713073dae5f | |
parent | cca41da1001157c95c7bc4d5cc9488232ef686d9 (diff) |
drm/virtio: notify before waiting
Before we are going to wait for virtqueue entries becoming available
call virtio_gpu_notify() to make sure the host has seen everything
we've submitted.
Signed-off-by: Gerd Hoffmann <[email protected]>
Reviewed-by: Chia-I Wu <[email protected]>
Reviewed-by: Gurchetan Singh <[email protected]>
Link: http://patchwork.freedesktop.org/patch/msgid/[email protected]
-rw-r--r-- | drivers/gpu/drm/virtio/virtgpu_vq.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/virtio/virtgpu_vq.c b/drivers/gpu/drm/virtio/virtgpu_vq.c index 6cc259cfa517..653efb26bcd9 100644 --- a/drivers/gpu/drm/virtio/virtgpu_vq.c +++ b/drivers/gpu/drm/virtio/virtgpu_vq.c @@ -346,6 +346,7 @@ again: if (vq->num_free < elemcnt) { spin_unlock(&vgdev->ctrlq.qlock); + virtio_gpu_notify(vgdev); wait_event(vgdev->ctrlq.ack_queue, vq->num_free >= elemcnt); goto again; } |