Re: [PATCH v3 06/11] mm/cma: Allow dynamically creating CMA areas

From: David Hildenbrand (Arm)

Date: Wed Jul 08 2026 - 04:36:42 EST


On 7/7/26 12:02, Marek Szyprowski wrote:
> On 01.07.2026 18:08, Thierry Reding wrote:
>> From: Thierry Reding <treding@xxxxxxxxxx>
>>
>> There is no technical reason why there should be a limited number of CMA
>> regions, so extract some code into helpers and use them to create extra
>> functions (cma_create() and cma_free()) that allow creating and freeing,
>> respectively, CMA regions dynamically at runtime.
>
>
> Well, the technical reason for not creating cma regions dynamically at
> runtime is that on some architectures (like 32bit ARM) the early fixup
> for the region is needed to make it functional for DMA.

Can you point me at the code that does that? Thanks!

--
Cheers,

David