Re: [PATCH 2/3] mm: generalize PMD page table allocation

From: David Hildenbrand (Arm)

Date: Mon Oct 26 2026 - 06:41:47 EST


On 10/14/26 05:59, Muchun Song wrote:
> The generic PMD allocator assumes order-0 page tables and zero-valued
> empty entries. MIPS and LoongArch need pmd_init() to install their invalid
> entries, while MIPS and parisc use PMD_TABLE_ORDER to describe the
> allocation size.
>
> Default PMD_TABLE_ORDER to zero, honor architecture overrides, and invoke
> pmd_init() from the generic allocator. MIPS, LoongArch, and parisc can then
> use the generic GFP selection, constructor handling, and kernel ptdesc
> marking instead of duplicating most of the helper.
>
> Assisted-by: LLM
> Signed-off-by: Muchun Song <songmuchun@xxxxxxxxxxxxx>
> ---

Acked-by: David Hildenbrand (Arm) <david@xxxxxxxxxx>

--
Cheers,

David