mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00

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
24 lines
847 B
Text
24 lines
847 B
Text
config DMABUF_HEAPS_SYSTEM
|
|
bool "DMA-BUF System Heap"
|
|
depends on DMABUF_HEAPS
|
|
help
|
|
Choose this option to enable the system dmabuf heap. The system heap
|
|
is backed by pages from the buddy allocator. If in doubt, say Y.
|
|
|
|
config DMABUF_HEAPS_CMA
|
|
bool "DMA-BUF CMA Heap"
|
|
depends on DMABUF_HEAPS && DMA_CMA
|
|
help
|
|
Choose this option to enable dma-buf CMA heap. This heap is backed
|
|
by the Contiguous Memory Allocator (CMA). If your system has these
|
|
regions, you should say Y here.
|
|
|
|
config DMABUF_HEAPS_CMA_LEGACY
|
|
bool "Legacy DMA-BUF CMA Heap"
|
|
default y
|
|
depends on DMABUF_HEAPS_CMA
|
|
help
|
|
Add a duplicate CMA-backed dma-buf heap with legacy naming derived
|
|
from the CMA area's devicetree node, or "reserved" if the area is not
|
|
defined in the devicetree. This uses the same underlying allocator as
|
|
CONFIG_DMABUF_HEAPS_CMA.
|