On Tue, Jan 13, 2026 at 1:33 PM Eric Chanudet <[email protected]> wrote:
>
> Capture dmabuf system heap allocations in memcg following prior
> conversations[1][2]. Disable this behavior by default unless configured
> by "dma_heap.mem_accounting" module parameter.
>
> [1] https://lore.kernel.org/dri-devel/[email protected]/
> [2] 
> https://lore.kernel.org/all/cabdmkx2_uoenujpw0dxe0z0x+4v3onfgdmhf1dmoxfdha6d...@mail.gmail.com/
>
> Changes in v2:
> - Add a module parameter to enable dma-buf cgroup accounting, disabled
>   by default.
> - Split system_heap logic in its own commit.
> - Link to v1: 
> https://lore.kernel.org/lkml/[email protected]/
>
> Signed-off-by: Eric Chanudet <[email protected]>
> ---
> Eric Chanudet (2):
>       dma-buf: heaps: add parameter to account allocations using cgroup
>       dma-buf: system_heap: account for system heap allocation in memcg
>
>  drivers/dma-buf/dma-heap.c          | 5 +++++
>  drivers/dma-buf/heaps/system_heap.c | 9 +++++++--
>  2 files changed, 12 insertions(+), 2 deletions(-)
> ---
> base-commit: b71e635feefc852405b14620a7fc58c4c80c0f73
> change-id: 20260102-dmabuf-heap-system-memcg-c86a381d663a
>
> Best regards,
> --
> Eric Chanudet <[email protected]>

Thanks for adding the param, LGTM. Looking forward to v3.

Reply via email to