On Wed, Feb 25, 2026 at 8:42 AM Maxime Ripard mripard@kernel.org wrote:
The CMA heap instantiation was initially developed by having the contiguous DMA code call into the CMA heap to create a new instance every time a reserved memory area is probed.
Turning the CMA heap into a module would create a dependency of the kernel on a module, which doesn't work.
Let's turn the logic around and do the opposite: store all the reserved memory CMA regions into the contiguous DMA code, and provide an iterator for the heap to use when it probes.
Signed-off-by: Maxime Ripard mripard@kernel.org
Reviewed-by: T.J. Mercier tjmercier@google.com
Thanks! I disabled this registration in the Android kernels where we build all dmabuf heaps as modules instead of built-in, so I can undo that if this is merged.