All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 00/15] drm: Do not use import_attach in drivers
@ 2025-03-17 13:06 Thomas Zimmermann
  2025-03-17 13:06 ` [PATCH 01/15] drm/armada: Test for imported buffers with drm_gem_is_imported() Thomas Zimmermann
                   ` (15 more replies)
  0 siblings, 16 replies; 27+ messages in thread
From: Thomas Zimmermann @ 2025-03-17 13:06 UTC (permalink / raw)
  To: airlied, simona, maarten.lankhorst, mripard; +Cc: dri-devel, Thomas Zimmermann

Avoid struct drm_gem_object.import_attach in many DRM drivers that
use it to get the object's dma-buf or test for an imported buffer.

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.

The import_attach field in struct drm_gem_object is an artifact of
the import process, but should not be used otherwise. This series
fixes most of the drivers in the DRM misc tree. Other DRM drivers
can be converted when drm_gem_is_imported() becomes available in
their tree.

Thomas Zimmermann (15):
  drm/armada: Test for imported buffers with drm_gem_is_imported()
  drm/etnaviv: Test for imported buffers with drm_gem_is_imported()
  drm/etnaviv: Use dma_buf from GEM object instance
  drm/exynos: Test for imported buffers with drm_gem_is_imported()
  drm/gud: Test for imported buffers with drm_gem_is_imported()
  drm/msm: Test for imported buffers with drm_gem_is_imported()
  drm/omapdrm: Test for imported buffers with drm_gem_is_imported()
  drm/panfrost: Test for imported buffers with drm_gem_is_imported()
  drm/panthor: Test for imported buffers with drm_gem_is_imported()
  drm/rockchip: Test for imported buffers with drm_gem_is_imported()
  drm/vc4: Test for imported buffers with drm_gem_is_imported()
  drm/virtio: Test for imported buffers with drm_gem_is_imported()
  drm/vmwgfx: Test for imported buffers with drm_gem_is_imported()
  drm/vmwgfx: Use dma_buf from GEM object instance
  drm/xen: Test for imported buffers with drm_gem_is_imported()

 drivers/gpu/drm/armada/armada_fb.c          |  2 +-
 drivers/gpu/drm/armada/armada_gem.c         |  2 +-
 drivers/gpu/drm/etnaviv/etnaviv_gem_prime.c |  8 ++++----
 drivers/gpu/drm/exynos/exynos_drm_gem.c     |  4 ++--
 drivers/gpu/drm/gud/gud_pipe.c              |  2 +-
 drivers/gpu/drm/msm/msm_drv.c               |  2 +-
 drivers/gpu/drm/msm/msm_gem.c               |  4 ++--
 drivers/gpu/drm/msm/msm_gem.h               |  2 +-
 drivers/gpu/drm/msm/msm_gem_prime.c         |  4 ++--
 drivers/gpu/drm/omapdrm/omap_gem.c          |  2 +-
 drivers/gpu/drm/panfrost/panfrost_gem.c     |  2 +-
 drivers/gpu/drm/panthor/panthor_gem.c       |  2 +-
 drivers/gpu/drm/panthor/panthor_mmu.c       | 10 +++++-----
 drivers/gpu/drm/rockchip/rockchip_drm_gem.c |  2 +-
 drivers/gpu/drm/vc4/vc4_bo.c                |  2 +-
 drivers/gpu/drm/vc4/vc4_gem.c               |  2 +-
 drivers/gpu/drm/virtio/virtgpu_plane.c      |  8 ++++----
 drivers/gpu/drm/vmwgfx/vmwgfx_blit.c        |  4 ++--
 drivers/gpu/drm/vmwgfx/vmwgfx_gem.c         | 12 ++++++------
 drivers/gpu/drm/xen/xen_drm_front_gem.c     |  2 +-
 20 files changed, 39 insertions(+), 39 deletions(-)

-- 
2.48.1


^ permalink raw reply	[flat|nested] 27+ messages in thread

end of thread, other threads:[~2025-04-25 14:57 UTC | newest]

Thread overview: 27+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-17 13:06 [PATCH 00/15] drm: Do not use import_attach in drivers Thomas Zimmermann
2025-03-17 13:06 ` [PATCH 01/15] drm/armada: Test for imported buffers with drm_gem_is_imported() Thomas Zimmermann
2025-03-17 13:06 ` [PATCH 02/15] drm/etnaviv: " Thomas Zimmermann
2025-03-17 13:06 ` [PATCH 03/15] drm/etnaviv: Use dma_buf from GEM object instance Thomas Zimmermann
2025-03-17 14:54   ` Lucas Stach
2025-03-17 13:06 ` [PATCH 04/15] drm/exynos: Test for imported buffers with drm_gem_is_imported() Thomas Zimmermann
2025-03-17 13:06 ` [PATCH 05/15] drm/gud: " Thomas Zimmermann
2025-03-17 13:06 ` [PATCH 06/15] drm/msm: " Thomas Zimmermann
2025-03-17 14:10   ` Dmitry Baryshkov
2025-03-17 13:06 ` [PATCH 07/15] drm/omapdrm: " Thomas Zimmermann
2025-03-17 13:06 ` [PATCH 08/15] drm/panfrost: " Thomas Zimmermann
2025-03-31  9:02   ` Steven Price
2025-03-17 13:06 ` [PATCH 09/15] drm/panthor: " Thomas Zimmermann
2025-03-17 13:59   ` Liviu Dudau
2025-03-31  9:02   ` Steven Price
2025-04-25 13:34   ` Steven Price
2025-04-25 14:30     ` Boris Brezillon
2025-04-25 14:57       ` Steven Price
2025-03-17 13:06 ` [PATCH 10/15] drm/rockchip: " Thomas Zimmermann
2025-03-17 13:06 ` [PATCH 11/15] drm/vc4: " Thomas Zimmermann
2025-03-17 13:06 ` [PATCH 12/15] drm/virtio: " Thomas Zimmermann
2025-03-17 13:06 ` [PATCH 13/15] drm/vmwgfx: " Thomas Zimmermann
2025-03-17 16:12   ` Zack Rusin
2025-03-17 13:06 ` [PATCH 14/15] drm/vmwgfx: Use dma_buf from GEM object instance Thomas Zimmermann
2025-03-17 16:13   ` Zack Rusin
2025-03-17 13:06 ` [PATCH 15/15] drm/xen: Test for imported buffers with drm_gem_is_imported() Thomas Zimmermann
2025-04-10 17:27 ` [PATCH 00/15] drm: Do not use import_attach in drivers Thomas Zimmermann

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.