On Tue, 04 Mar 2025 15:27:00 +0800, Zhenhua Huang wrote:
On the arm64 platform with 4K base page config, SECTION_SIZE_BITS is set to 27, making one section 128M. The related page struct which vmemmap points to is 2M then. Commit c1cc1552616d ("arm64: MMU initialisation") optimizes the vmemmap to populate at the PMD section level which was suitable initially since hot plug granule is always one section(128M). However, commit ba72b4c8cf60 ("mm/sparsemem: support sub-section hotplug") introduced a 2M(SUBSECTION_SIZE) hot plug granule, which disrupted the existing arm64 assumptions.
[...]
Applied to arm64 (for-next/fixes), thanks!
[1/1] arm64: mm: Populate vmemmap at the page level if not section aligned https://git.kernel.org/arm64/c/d4234d131b0a
Cheers,