[PATCH RFC 2/2] mm: add PMD-level huge page support for remap_pfn_range()
Yin Tirui
yintirui at huawei.com
Wed Sep 24 18:43:37 PDT 2025
On 9/24/2025 5:50 PM, David Hildenbrand wrote:
>> Introduce pfnmap_max_page_shift parameter to control maximum page
>> size and "nohugepfnmap" boot option to disable huge pfnmap entirely.
>
> Why? If an arch supports it we should just do it. Or what's the reason
> behind that?
>
There's no specific reason for this - it was just intended to provide an
additional option. I'll remove it in the next version.
...
> Are you sure we can just entirely remove this block for !
> vma_is_anonymous(vma)?
>
Thank you for pointing this out!
There is definitely a problem with removing this block entirely for
non-anonymous VMAs. I've also found some other problems. I'll fix all of
them in the next version.
--
Best regards,
Yin Tirui
More information about the linux-riscv
mailing list