search for: virtgpu_execbuf_fence_fd_out

Displaying 5 results from an estimated 5 matches for "virtgpu_execbuf_fence_fd_out".

2016 Dec 12
6
[RFC 1/5] drm/virtio: add virtio_gpu_alloc_fence()
From: Gustavo Padovan <gustavo.padovan at collabora.co.uk> Refactor fence creation to remove the potential allocation failure from the cmd_submit and atomic_commit paths. Now the fence should be allocated first and just after we should proceed with the rest of the execution. Signed-off-by: Gustavo Padovan <gustavo.padovan at collabora.co.uk> --- drivers/gpu/drm/virtio/virtgpu_drv.h
2016 Dec 12
6
[RFC 1/5] drm/virtio: add virtio_gpu_alloc_fence()
From: Gustavo Padovan <gustavo.padovan at collabora.co.uk> Refactor fence creation to remove the potential allocation failure from the cmd_submit and atomic_commit paths. Now the fence should be allocated first and just after we should proceed with the rest of the execution. Signed-off-by: Gustavo Padovan <gustavo.padovan at collabora.co.uk> --- drivers/gpu/drm/virtio/virtgpu_drv.h
2018 Nov 02
0
[PATCH 2/5] drm/virtio: add uapi for in and out explicit fences
...ernel. > >> > >> This uapi enables virtio to take advantage of explicit synchronization of > >> dma-bufs. > >> > >> There are two new flags: > >> > >> * VIRTGPU_EXECBUF_FENCE_FD_IN to be used when passing an in-fence fd. > >> * VIRTGPU_EXECBUF_FENCE_FD_OUT to be used when requesting an out-fence fd > >> > >> The execbuffer IOCTL is now read-write to allow the userspace to read the > >> out-fence. > >> > >> On error -1 should be returned in the fence_fd field. > >> > >> Signed-off-by: Gust...
2023 Mar 22
0
[PATCH v2 1/2] drm/virtio: Refactor job submission code path
...; > + if (err) > + return err; > + > + submit->buf = vmemdup_user(u64_to_user_ptr(exbuf->command), exbuf->size); > + if (IS_ERR(submit->buf)) > + return PTR_ERR(submit->buf); > + > + if (exbuf->flags & VIRTGPU_EXECBUF_FENCE_FD_OUT) { > + err = get_unused_fd_flags(O_CLOEXEC); > + if (err < 0) > + return err; > + > + submit->out_fence_fd = err; > + } > + > + return 0; > +} > + > +static int virtio_gpu_wait_in_fenc...
2020 Apr 07
0
[vhost:vhost 32/44] drivers/gpu/drm/virtio/virtgpu_ioctl.c:113:7: error: implicit declaration of function 'copy_from_user'; did you mean 'sg_copy_from_buffer'?
...); 2cd7b6f08bc4cf Robert Foss 2018-11-12 94 if (ret) 2cd7b6f08bc4cf Robert Foss 2018-11-12 95 return ret; 2cd7b6f08bc4cf Robert Foss 2018-11-12 96 } 2cd7b6f08bc4cf Robert Foss 2018-11-12 97 2cd7b6f08bc4cf Robert Foss 2018-11-12 98 if (exbuf->flags & VIRTGPU_EXECBUF_FENCE_FD_OUT) { 2cd7b6f08bc4cf Robert Foss 2018-11-12 99 out_fence_fd = get_unused_fd_flags(O_CLOEXEC); 2cd7b6f08bc4cf Robert Foss 2018-11-12 100 if (out_fence_fd < 0) 2cd7b6f08bc4cf Robert Foss 2018-11-12 101 return out_fence_fd; 2cd7b6f08bc4cf Robert Foss 2018-11-12 102 } 2...