Re: [PATCH 1/2] drm: Add DRM-managed drm_mm_init()

2024-06-06 Thread Rodrigo Vivi
On Fri, May 24, 2024 at 03:35:17PM +0200, Michal Wajdeczko wrote: > Add drmm_mm_init(), a helper that provides managed allocator cleanup. > The allocator will be cleaned up with the final reference of the DRM > device. > > Signed-off-by: Michal Wajdeczko > Cc: Thomas Zimmermann > Cc: Daniel Vett

[PATCH 1/2] drm: Add DRM-managed drm_mm_init()

2024-05-24 Thread Michal Wajdeczko
Add drmm_mm_init(), a helper that provides managed allocator cleanup. The allocator will be cleaned up with the final reference of the DRM device. Signed-off-by: Michal Wajdeczko Cc: Thomas Zimmermann Cc: Daniel Vetter --- drivers/gpu/drm/drm_managed.c | 27 +++ include