mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v2 0/2] dma-buf: system_heap: account for system heap allocation in memcg
@ 2026-01-13 21:32 Eric Chanudet
  2026-01-13 21:32 ` [PATCH v2 1/2] dma-buf: heaps: add parameter to account allocations using cgroup Eric Chanudet
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Eric Chanudet @ 2026-01-13 21:32 UTC (permalink / raw)
  To: Sumit Semwal, Benjamin Gaignard, Brian Starkey, John Stultz,
	T.J. Mercier, Christian König, Maxime Ripard
  Cc: linux-media, dri-devel, linaro-mm-sig, linux-kernel, Eric Chanudet

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/Z-5GZ3kJDbhgVBPG@phenom.ffwll.local/
[2] https://lore.kernel.org/all/CABdmKX2_UOENujpW0dXe0Z0x+4V3onfGDmHf1DMOXfDha6ddOA@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/20251211193106.755485-2-echanude@redhat.com/

Signed-off-by: Eric Chanudet <echanude@redhat.com>
---
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 <echanude@redhat.com>


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2026-01-16 17:45 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-01-13 21:32 [PATCH v2 0/2] dma-buf: system_heap: account for system heap allocation in memcg Eric Chanudet
2026-01-13 21:32 ` [PATCH v2 1/2] dma-buf: heaps: add parameter to account allocations using cgroup Eric Chanudet
2026-01-13 21:32 ` [PATCH v2 2/2] dma-buf: system_heap: account for system heap allocation in memcg Eric Chanudet
2026-01-14 10:38   ` Christian König
2026-01-14 15:47     ` Eric Chanudet
2026-01-16 17:44 ` [PATCH v2 0/2] " T.J. Mercier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®