]> git.baikalelectronics.ru Git - kernel.git/commit
drm/virtio: Fix same-context optimization
authorRob Clark <robdclark@chromium.org>
Fri, 12 Aug 2022 22:40:00 +0000 (15:40 -0700)
committerGerd Hoffmann <kraxel@redhat.com>
Thu, 25 Aug 2022 09:56:22 +0000 (11:56 +0200)
commitc58c7f5ed8629bfe37db2b4671b168e8d7fb3ab2
tree4f64a371ecbf7ba1bed5206083fd24f03fc56ea1
parent16eb25d4f81cae69a796f456996b450ec0429c7a
drm/virtio: Fix same-context optimization

When VIRTGPU_EXECBUF_RING_IDX is used, we should be considering the
timeline that the EB if running on rather than the global driver fence
context.

Fixes: fb2a26bc1d7e ("drm/virtio: implement context init: allocate an array of fence contexts")
Signed-off-by: Rob Clark <robdclark@chromium.org>
Link: http://patchwork.freedesktop.org/patch/msgid/20220812224001.2806463-1-robdclark@gmail.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
drivers/gpu/drm/virtio/virtgpu_ioctl.c