[PATCH 0/4] drm: Restrict GEM's pin/unpin to PRIME

Thomas Zimmermann tzimmermann at suse.de
Mon Apr 14 08:21:45 UTC 2025


Ping for review

Am 04.04.25 um 15:23 schrieb 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(-)
>

-- 
--
Thomas Zimmermann
Graphics Driver Developer
SUSE Software Solutions Germany GmbH
Frankenstrasse 146, 90461 Nuernberg, Germany
GF: Ivo Totev, Andrew Myers, Andrew McDonald, Boudien Moerman
HRB 36809 (AG Nuernberg)



More information about the dri-devel mailing list