Skip to content

virtio: add vmap support for prime objects

Ezequiel Garcia dri-devel virtualization 1 version Applied

Status from this message: Pushed to drm-misc-next.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 2 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/3virtio: Add virtio_gpu_object_kunmap()drivers/gpu/drm/virtio/virtgpu_drv.h drivers/gpu/drm/virtio/virtgpu_object.c+9 -00 replies
2/3virtio: Rework virtio_gpu_object_kmap()drivers/gpu/drm/virtio/virtgpu_drv.h drivers/gpu/drm/virtio/virtgpu_fb.c drivers/gpu/drm/virtio/virtgpu_object.c+6 -170 replies
3/3virtio: Support prime objects vmap/vunmapdrivers/gpu/drm/virtio/virtgpu_prime.c+8 -30 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] virtio: add vmap support for prime objects

Having the support for vmapping dmabuf's is required to share dmabufs to drivers that want CPU access. This is the case of a vivid to virtio-gpu pipeline, where the virtio-gpu driver exports dmabufs to the video4linux vivid driver.

The first patch adds virtio_gpu_object_kunmap() and calls it from the TTM object destroy path. This function will be used to unmap prime objects.

The second patch reworks virtio_gpu_object_kmap(), so it's balanced with virtio_gpu_object_kunmap.

Finally, the third patch uses virtio_gpu_object_k{map,unmap} to support prime v{map,unmap}.

Please review!

Ezequiel Garcia (3):
virtio: Add virtio_gpu_object_kunmap()
virtio: Rework virtio_gpu_object_kmap()
virtio: Support prime objects vmap/vunmap

 drivers/gpu/drm/virtio/virtgpu_drv.h    |  3 ++-
 drivers/gpu/drm/virtio/virtgpu_fb.c     | 10 ++--------
 drivers/gpu/drm/virtio/virtgpu_object.c | 19 +++++++++++--------
 drivers/gpu/drm/virtio/virtgpu_prime.c  | 11 ++++++++---
 4 files changed, 23 insertions(+), 20 deletions(-)
Signature · 6 lines
2.19.0.rc2

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel