[PATCH v7 2/7] arm64/vmalloc: Allow arch_vmap_pte_range_map_size to batch multiple CONT_PTE
David CARLIER
devnexen at gmail.com
Wed Jul 29 06:15:27 PDT 2026
>
> Could we do the same here?
>
> + if (!IS_ALIGNED(PFN_PHYS(pfn), size) || size < CONT_PTE_SIZE)
> + return PAGE_SIZE;
Thanks for looking.
I don't think it carries over. 8xx tries two candidate sizes, so a failed
alignment test falls back to the smaller one, whereas here we would
return PAGE_SIZE and lose CONT_PTE over most of the span.
My concern was misplaced anyway, sorry. [addr, end) is always a single
contiguous run here, and addr and PFN_PHYS(pfn) are already
CONT_PTE_SIZE aligned, so every 16-entry group in the batch is naturally
aligned. No extra check needed, the patch looks fine as is.
Cheers.
More information about the linux-arm-kernel
mailing list