public inbox for linux-tegra@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] drm/tegra: Avoid using import_attach directly
@ 2025-06-19 11:26 Thomas Zimmermann
  2025-06-19 11:27 ` [PATCH 1/2] drm/tegra: Test for imported buffers with drm_gem_is_imported() Thomas Zimmermann
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Thomas Zimmermann @ 2025-06-19 11:26 UTC (permalink / raw)
  To: thierry.reding, mperttunen, jonathanh, sumit.semwal,
	christian.koenig, simona, airlied
  Cc: dri-devel, linux-tegra, Thomas Zimmermann

The field import_attach of struct drm_gem_object is often only
required by PRIME code. In other places, replace its use with
clearer alternatives.

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

 drivers/gpu/drm/tegra/gem.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

-- 
2.49.0


^ permalink raw reply	[flat|nested] 6+ messages in thread
* [PATCH 0/2] drm/tegra: Avoid struct drm_gem_object.import_attach
@ 2025-04-14 13:31 Thomas Zimmermann
  2025-04-14 13:31 ` [PATCH 2/2] drm/tegra: Use dma_buf from GEM object instance Thomas Zimmermann
  0 siblings, 1 reply; 6+ messages in thread
From: Thomas Zimmermann @ 2025-04-14 13:31 UTC (permalink / raw)
  To: thierry.reding, mperttunen, jonathanh
  Cc: dri-devel, linux-tegra, Thomas Zimmermann

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/tegra: Test for imported buffers with drm_gem_is_imported()
  drm/tegra: Use dma_buf from GEM object instance

 drivers/gpu/drm/tegra/gem.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

-- 
2.49.0


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

end of thread, other threads:[~2025-07-04 11:17 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-19 11:26 [PATCH 0/2] drm/tegra: Avoid using import_attach directly Thomas Zimmermann
2025-06-19 11:27 ` [PATCH 1/2] drm/tegra: Test for imported buffers with drm_gem_is_imported() Thomas Zimmermann
2025-06-19 11:27 ` [PATCH 2/2] drm/tegra: Use dma_buf from GEM object instance Thomas Zimmermann
2025-06-23 14:59 ` [PATCH 0/2] drm/tegra: Avoid using import_attach directly Christian König
2025-07-04 11:17 ` Thierry Reding
  -- strict thread matches above, loose matches on Subject: below --
2025-04-14 13:31 [PATCH 0/2] drm/tegra: Avoid struct drm_gem_object.import_attach Thomas Zimmermann
2025-04-14 13:31 ` [PATCH 2/2] drm/tegra: Use dma_buf from GEM object instance Thomas Zimmermann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox