All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/4] drm: Restrict GEM's pin/unpin to PRIME
@ 2025-04-04 13:23 Thomas Zimmermann
  2025-04-04 13:23 ` [PATCH 1/4] drm/client: Do not pin in drm_client_buffer_vmap() Thomas Zimmermann
                   ` (4 more replies)
  0 siblings, 5 replies; 11+ messages in thread
From: Thomas Zimmermann @ 2025-04-04 13:23 UTC (permalink / raw)
  To: boris.brezillon, dmitry.osipenko, airlied, simona, mripard,
	maarten.lankhorst
  Cc: dri-devel, Thomas Zimmermann

The pin and unpin callbacks in struct drm_gem_object_funcs are
for PRIME exported dma-bufs. Remove the pin calls in the client
code, drop the unnecessary pin callbacks from gem-vram and inline
drm_gem_pin() into the only remaining caller. Do the equivalent
for drm_gem_unpin().

AFAICT the long-term plan is to switch to dynamic dma-buf imports
and remove pin/unpin from GEM object functions.

Thomas Zimmermann (4):
  drm/client: Do not pin in drm_client_buffer_vmap()
  drm/gem-vram: Do not set pin and unpin callbacks
  drm/gem-vram: Un-export pin helpers
  drm/gem: Inline drm_gem_pin() into PRIME helpers

 drivers/gpu/drm/drm_client.c          | 22 ++------
 drivers/gpu/drm/drm_gem.c             | 32 -----------
 drivers/gpu/drm/drm_gem_vram_helper.c | 79 +--------------------------
 drivers/gpu/drm/drm_internal.h        |  4 --
 drivers/gpu/drm/drm_prime.c           | 22 +++++++-
 include/drm/drm_gem.h                 |  3 +-
 include/drm/drm_gem_vram_helper.h     |  2 -
 7 files changed, 29 insertions(+), 135 deletions(-)

-- 
2.49.0


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

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

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-04 13:23 [PATCH 0/4] drm: Restrict GEM's pin/unpin to PRIME Thomas Zimmermann
2025-04-04 13:23 ` [PATCH 1/4] drm/client: Do not pin in drm_client_buffer_vmap() Thomas Zimmermann
2025-04-14 10:02   ` Boris Brezillon
2025-04-14 10:31   ` Dmitry Osipenko
2025-04-04 13:23 ` [PATCH 2/4] drm/gem-vram: Do not set pin and unpin callbacks Thomas Zimmermann
2025-04-14 10:32   ` Dmitry Osipenko
2025-04-04 13:23 ` [PATCH 3/4] drm/gem-vram: Un-export pin helpers Thomas Zimmermann
2025-04-14 10:32   ` Dmitry Osipenko
2025-04-04 13:23 ` [PATCH 4/4] drm/gem: Inline drm_gem_pin() into PRIME helpers Thomas Zimmermann
2025-04-14 10:37   ` Dmitry Osipenko
2025-04-14  8:21 ` [PATCH 0/4] drm: Restrict GEM's pin/unpin to PRIME 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.