Re: [PATCH 4/4] drm/gem: Inline drm_gem_pin() into PRIME helpers

2025-04-14 Thread Dmitry Osipenko
On 4/4/25 16:23, Thomas Zimmermann wrote: > diff --git a/include/drm/drm_gem.h b/include/drm/drm_gem.h > index 9b71f7a9f3f8a..498485f4501f9 100644 > --- a/include/drm/drm_gem.h > +++ b/include/drm/drm_gem.h > @@ -126,7 +126,8 @@ struct drm_gem_object_funcs { > /** >* @pin: >*

[PATCH 4/4] drm/gem: Inline drm_gem_pin() into PRIME helpers

2025-04-04 Thread Thomas Zimmermann
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 buffe