Files
linux/include/drm
Thomas Zimmermann df1c3093ae drm/gem: Inline drm_gem_pin() into PRIME helpers
Inline drm_gem_pin() into its only caller drm_gem_map_attach()
and update the documentation in the callback's purpose. Do the
equivalent for drm_gem_unpin(). Also add stricter error checking
on the involved locking.

The pin operation in the GEM object functions is a helper for
PRIME-exported buffer objects. Having drm_gem_pin() gives the
impression of a general-purpose interface, which is not the case.
Removing it makes the pin callback a bit harder to misuse.

v2:
- clarify comment on pin callback (Dmitry)

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Dmitry Osipenko <dmitry.osipenko@collabora.com>
Link: https://lore.kernel.org/r/20250526132634.531789-5-tzimmermann@suse.de
2025-05-30 09:47:28 +02:00
..
2025-05-21 01:35:16 +03:00
2025-05-26 15:34:00 +02:00
2025-01-08 01:39:58 +02:00
2025-02-13 12:15:43 -05:00
2025-03-06 11:35:42 -08:00
2025-03-06 11:35:25 -08:00
2024-11-21 09:28:11 -06:00