Skip to content

drm/virtio: Avoid struct drm_gem_object.import_attach

Thomas Zimmermann dri-devel virtualization 1 version Applied

Status from this message: Applied to misc-next, thanks!

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 3 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/2drm/virtio: Test for imported buffers with drm_gem_is_imported()drivers/gpu/drm/virtio/virtgpu_plane.c drivers/gpu/drm/virtio/virtgpu_prime.c+5 -51 reply
2/2drm/virtio: Use dma_buf from GEM object instancedrivers/gpu/drm/virtio/virtgpu_prime.c+2 -31 reply

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchDmitry Osipenko
1/2R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/2] drm/virtio: Avoid struct drm_gem_object.import_attach

Avoid the use of struct drm_gem_object.import_attach to get the object's dma-buf or test for an imported buffer. The import_attach field in struct drm_gem_object is an artifact of the import process, but should not be used otherwise.

The helper drm_gem_is_imported() tests if a GEM object's buffer has been imported into the driver. The corresponding dma-buf is referenced by the object itself. Both cases avoid import_attach.

Thomas Zimmermann (2):
drm/virtio: Test for imported buffers with drm_gem_is_imported() drm/virtio: Use dma_buf from GEM object instance

 drivers/gpu/drm/virtio/virtgpu_plane.c | 8 ++++----
 drivers/gpu/drm/virtio/virtgpu_prime.c | 7 +++----
 2 files changed, 7 insertions(+), 8 deletions(-)
Signature · 1 line
2.49.0