Re: [PATCH RFC 11/12] drm/gem: Add cgroup memory accounting

2025-03-15 Thread Robin Murphy
On 2025-03-10 12:06 pm, Maxime Ripard wrote: In order to support any device using the GEM support, let's charge any GEM DMA allocation into the dmem cgroup. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/drm_gem.c| 5 + drivers/gpu/drm/drm_gem_dma_helper.c | 6 ++ incl

[PATCH RFC 11/12] drm/gem: Add cgroup memory accounting

2025-03-11 Thread Maxime Ripard
In order to support any device using the GEM support, let's charge any GEM DMA allocation into the dmem cgroup. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/drm_gem.c| 5 + drivers/gpu/drm/drm_gem_dma_helper.c | 6 ++ include/drm/drm_device.h | 1 + include/dr