]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
dma: contiguous: Register reusable CMA regions at boot
authorMaxime Ripard <mripard@kernel.org>
Mon, 13 Oct 2025 08:35:18 +0000 (10:35 +0200)
committerSumit Semwal <sumit.semwal@linaro.org>
Sat, 18 Oct 2025 16:01:21 +0000 (21:31 +0530)
commit84a593066a85e6fdfb7b71f74400ed6bb5e0c3fa
treefb65023ae9b46d1aa3c09bfe243b3cf69ed28c88
parent8b5690d5c942a80535f095c8965028262d4ab0f7
dma: contiguous: Register reusable CMA regions at boot

In order to create a CMA dma-buf heap instance for each CMA heap region
in the system, we need to collect all of them during boot.

They are created from two main sources: the reserved-memory regions in
the device tree, and the default CMA region created from the
configuration or command line parameters, if no default region is
provided in the device tree.

Let's collect all the device-tree defined CMA regions flagged as
reusable.

Reviewed-by: T.J. Mercier <tjmercier@google.com>
Signed-off-by: Maxime Ripard <mripard@kernel.org>
Acked-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Sumit Semwal <sumit.semwal@linaro.org>
Link: https://lore.kernel.org/r/20251013-dma-buf-ecc-heap-v8-3-04ce150ea3d9@kernel.org
kernel/dma/contiguous.c