linux/drivers/gpu/drm/virtio
Robert Foss 2cd7b6f08b drm/virtio: add in/out fence support for explicit synchronization
When the execbuf call receives an in-fence it will get the dma_fence
related to that fence fd and wait on it before submitting the draw call.

On the out-fence side we get fence returned by the submitted draw call
and attach it to a sync_file and send the sync_file fd to userspace. On
error -1 is returned to userspace.

VIRTGPU_EXECBUF_FENCE_FD_IN & VIRTGPU_EXECBUF_FENCE_FD_OUT
are supported at the simultaneously and can be flagged
for simultaneously.

Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.com>
Signed-off-by: Robert Foss <robert.foss@collabora.com>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20181112165157.32765-4-robert.foss@collabora.com
Suggested-by: Rob Herring <robh@kernel.org>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
2018-11-14 14:21:02 +01:00
..
Kconfig drm: fix compilations issues introduced by "drm: allow to use mmuless SoC" 2017-01-09 11:30:30 +01:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
virtgpu_debugfs.c drm/virtio: fix include notation and remove -Iinclude/drm flag 2017-05-18 07:12:31 +02:00
virtgpu_display.c drm/virtio: fix DRM_FORMAT_* handling 2018-09-25 14:49:49 +02:00
virtgpu_drm_bus.c drm/virtio: document drm_dev_set_unique workaround 2018-10-25 13:25:58 +01:00
virtgpu_drv.c drm/virtio: Remove multiple blank lines 2018-02-27 08:40:42 +01:00
virtgpu_drv.h drm/virtio: add virtio_gpu_alloc_fence() 2018-11-14 14:21:01 +01:00
virtgpu_fb.c drm/virtio: fix resource id handling 2018-10-29 22:50:55 +01:00
virtgpu_fence.c drm/virtio: add virtio_gpu_alloc_fence() 2018-11-14 14:21:01 +01:00
virtgpu_gem.c drm/virtio: fix resource id handling 2018-10-29 22:50:55 +01:00
virtgpu_ioctl.c drm/virtio: add in/out fence support for explicit synchronization 2018-11-14 14:21:02 +01:00
virtgpu_kms.c drm/virtio: Use IDAs more efficiently 2018-11-14 12:50:34 +01:00
virtgpu_object.c drm/virtio: Use IDAs more efficiently 2018-11-14 12:50:34 +01:00
virtgpu_plane.c drm/virtio: add virtio_gpu_alloc_fence() 2018-11-14 14:21:01 +01:00
virtgpu_prime.c virtio: Support prime objects vmap/vunmap 2018-09-26 08:05:07 +02:00
virtgpu_ttm.c drm/virtio: drop resource_id argument. 2018-10-29 22:50:55 +01:00
virtgpu_vq.c drm/virtio: add virtio_gpu_alloc_fence() 2018-11-14 14:21:01 +01:00