]> git.baikalelectronics.ru Git - kernel.git/commit
drm/virtio: move the check for vqs_ready earlier
authorChia-I Wu <olvaffe@gmail.com>
Wed, 5 Feb 2020 18:19:52 +0000 (10:19 -0800)
committerGerd Hoffmann <kraxel@redhat.com>
Thu, 6 Feb 2020 10:58:18 +0000 (11:58 +0100)
commit0813481f6f772f972e09cc7e3c524e5376113c51
tree96e744ab7d6adc96b7f77b11292dc3d3953912e7
parent285526cd3fe4fd8d6b9b70716fb70709658a0105
drm/virtio: move the check for vqs_ready earlier

When vqs_ready is false, vq should be considered invalid and we
should not check vq->num_free.  After this change, a fenced command
queued before the vqs are ready will have fence id 0 and will be
considered done.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20200205181955.202485-9-olvaffe@gmail.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
drivers/gpu/drm/virtio/virtgpu_vq.c