mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07:00
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 <kraxel@redhat.com> Reviewed-by: Chia-I Wu <olvaffe@gmail.com> Reviewed-by: Gurchetan Singh <gurchetansingh@chromium.org> Link: http://patchwork.freedesktop.org/patch/msgid/20200214125535.26349-3-kraxel@redhat.com
This commit is contained in:
parent
cca41da100
commit
fcdd19b85c
@ -346,6 +346,7 @@ static void virtio_gpu_queue_ctrl_sgs(struct virtio_gpu_device *vgdev,
|
||||
|
||||
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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user