Re: [PATCH] mm/mm_init: don't subtract managed CMA pages twice

From: Mike Rapoport

Date: Thu Nov 19 2026 - 08:03:11 EST


From: Mike Rapoport (Microsoft) <rppt@xxxxxxxxxx>

On Thu, 19 Nov 2026 12:19:06 +0100, David Hildenbrand (Arm) wrote:
> With hugetlb_cma_only, the "reserved" value in the "Memory:" boot message
> can be wrong (small or underflowed).
>
> When mem_init_print_info() calculates the reserved memory, it assumes that
> no CMA pages are managed yet. However, some CMA pages from hugetlb might
> already be managed at that point, so we end up subtracting them twice.
>
> [...]

Applied to for-next branch of memblock.git tree, thanks!

[1/1] mm/mm_init: don't subtract managed CMA pages twice
commit: 3a348bd13cd3bc5ae6d1f564473f40166cc2009d

tree: https://git.kernel.org/pub/scm/linux/kernel/git/mm/memblock
branch: for-next

--
Sincerely yours,
Mike.