]> git.ipfire.org Git - thirdparty/linux.git/commit
dma-buf: heaps: Give default CMA heap a fixed name
authorJared Kangas <jkangas@redhat.com>
Tue, 10 Jun 2025 13:12:31 +0000 (06:12 -0700)
committerSumit Semwal <sumit.semwal@linaro.org>
Wed, 9 Jul 2025 10:21:40 +0000 (15:51 +0530)
commit854acbe75ff406ea2c72ef3048578dfd99425ba9
treeddb1b5357ff40ac6870dc0923c1aeef3c1398596
parent86e59cc5069700361041aa5bf536a8a66be6b9ec
dma-buf: heaps: Give default CMA heap a fixed name

The CMA heap's name in devtmpfs can vary depending on how the heap is
defined. Its name defaults to "reserved", but if a CMA area is defined
in the devicetree, the heap takes on the devicetree node's name, such as
"default-pool" or "linux,cma". To simplify naming, unconditionally name
it "default_cma_region", but keep a legacy node in place backed by the
same underlying allocator for backwards compatibility.

Reviewed-by: Maxime Ripard <mripard@kernel.org>
Signed-off-by: Jared Kangas <jkangas@redhat.com>
Signed-off-by: Sumit Semwal <sumit.semwal@linaro.org>
Link: https://lore.kernel.org/r/20250610131231.1724627-4-jkangas@redhat.com
Documentation/userspace-api/dma-buf-heaps.rst
drivers/dma-buf/heaps/Kconfig
drivers/dma-buf/heaps/cma_heap.c