Linux-mm Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/7] mm: Generalize HVO vmemmap population
@ 2026-12-01 11:56 Muchun Song
  2026-12-01 11:56 ` [PATCH 1/7] mm/sparse-vmemmap: use page-table constructors for runtime tables Muchun Song
                   ` (7 more replies)
  0 siblings, 8 replies; 12+ messages in thread
From: Muchun Song @ 2026-12-01 11:56 UTC (permalink / raw)
  To: Andrew Morton, Mike Rapoport, Madhavan Srinivasan
  Cc: Muchun Song, David Hildenbrand, Michael Ellerman, Ritesh Harjani,
	Aneesh Kumar K . V, Pavithra Prakash, Lance Yang, Qi Zheng,
	linux-mm, linuxppc-dev, Muchun Song

PowerPC radix currently uses a private HVO vmemmap population path because
the generic path lacks several properties it requires. This duplicates the
generic sparse-vmemmap page-table walk even though the HVO layout itself
does not require architecture-specific handling.

First, PowerPC uses the regular page-table allocators for runtime vmemmap
tables, while the generic path uses vmemmap_alloc_block() for intermediate
tables, bypassing the normal page-table constructor and destructor
lifecycle.

Second, with 64 KiB base pages, multiple sparsemem sections can share one
vmemmap PTE. The generic HVO path rejects an existing PTE even when it maps
the expected shared tail page.

Third, a PMD-sized vmemmap mapping can also span multiple sections. An
HVO-capable section can therefore encounter an ordinary mapping created
for a neighboring section. The generic path rejects it instead of reusing
it and disabling HVO for the current section.

This series removes these restrictions. Patches 1 and 2 address the first
issue, patch 3 the second, and patch 4 the third.

Patch 5 is a standalone fix posted earlier but not yet merged:

  https://lore.kernel.org/all/20261030115326.1005755-1-songmuchun@bytedance.com/

Since the final conversion removes the affected PowerPC code, carrying the
fix here preserves it as a distinct commit that can be backported to
kernels using the old implementation.

Patches 6 and 7 then remove the PowerPC-specific PMD overrides and HVO
page-table walk, and switch radix to the generic path.

Muchun Song (7):
  mm/sparse-vmemmap: use page-table constructors for runtime tables
  mm/sparse-vmemmap: align page-table helpers with core MM
  mm/sparse-vmemmap: introduce vmemmap_optimizable_pte_populate
  mm/sparse-vmemmap: support PMD mappings spanning sections
  powerpc/mm: fix uninitialized ZONE_DEVICE struct pages with PMDs
  powerpc/mm: remove radix-specific vmemmap PMD overrides
  powerpc/mm: reuse generic HVO vmemmap population

 arch/powerpc/mm/book3s64/radix_pgtable.c | 167 ++---------------
 mm/sparse-vmemmap.c                      | 219 ++++++++++++++---------
 2 files changed, 148 insertions(+), 238 deletions(-)


base-commit: 872ceec1e3caf227655a58f7407a9c8493dcf56f
-- 
2.54.0



^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2026-12-02 22:56 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-01 11:56 [PATCH 0/7] mm: Generalize HVO vmemmap population Muchun Song
2026-12-01 11:56 ` [PATCH 1/7] mm/sparse-vmemmap: use page-table constructors for runtime tables Muchun Song
2026-12-02 13:35   ` Lance Yang
2026-12-01 11:56 ` [PATCH 2/7] mm/sparse-vmemmap: align page-table helpers with core MM Muchun Song
2026-12-02 13:55   ` Lance Yang
2026-12-01 11:56 ` [PATCH 3/7] mm/sparse-vmemmap: introduce vmemmap_optimizable_pte_populate Muchun Song
2026-12-02 22:56   ` Chris Down
2026-12-01 11:56 ` [PATCH 4/7] mm/sparse-vmemmap: support PMD mappings spanning sections Muchun Song
2026-12-01 11:56 ` [PATCH 5/7] powerpc/mm: fix uninitialized ZONE_DEVICE struct pages with PMDs Muchun Song
2026-12-01 11:56 ` [PATCH 6/7] powerpc/mm: remove radix-specific vmemmap PMD overrides Muchun Song
2026-12-01 11:56 ` [PATCH 7/7] powerpc/mm: reuse generic HVO vmemmap population Muchun Song
2026-12-02 22:56 ` [PATCH 0/7] mm: Generalize " Chris Down

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox