Re: [PATCH 0/2] mm/cma: accept memory of CMA areas reserved with memblock_reserve()
From: Kiryl Shutsemau
Date: Thu Oct 29 2026 - 08:28:06 EST
On Thu, Oct 29, 2026 at 12:18:36PM +0200, Mike Rapoport (Microsoft) wrote:
> Pages of allocated CMA areas are released to the buddy allocator with
> __free_pages(), which does not check for unaccepted memory.
>
> This usually works because memblock accepts the memory it allocates.
>
> However, multi-range CMA areas, used by hugetlb_cma, and fixed CMA areas
> requested with cma=<size>@<base> are reserved with memblock_reserve() and
> their memory is never accepted.
It feels like memblock_reserve() abuse, no?
crashkernel=size@base already uses memblock_phys_alloc_range() for this.
Should the fixed and multi-range CMA paths go through the allocation API
as well.
--
Kiryl Shutsemau / Kirill A. Shutemov