Re: [PATCH v2 1/5] mm: hugetlb: add explicit page size to hugetlb_cma
From: Muchun Song
Date: Thu Oct 22 2026 - 05:57:07 EST
> On Oct 22, 2026, at 15:31, Qi Zheng <qi.zheng@xxxxxxxxx> wrote:
>
> From: Qi Zheng <zhengqi.arch@xxxxxxxxxxxxx>
>
> Accept an optional @<page-size> suffix for hugetlb_cma. Initially accept
> only the architecture's existing CMA page size. Preserve the behavior of
> unsuffixed arguments and the existing hugepagesz/hugepages options.
>
> Validate the suffix before applying the existing capacity, percentage and
> node-list parser.
>
> Save the arguments during early parsing and process them at reservation
> time, after architecture-specific page-size information has been
> initialized.
>
> Assisted-by: LLM
> Signed-off-by: Qi Zheng <zhengqi.arch@xxxxxxxxxxxxx>
> Reviewed-by: Jose A. Perez de Azpillaga <azpijr@xxxxxxxxx>
Reviewed-by: Muchun Song <muchun.song@xxxxxxxxx>
Thanks.