Thread (16 messages) 16 messages, 5 authors, 17d ago

Re: [PATCH v2 2/6] mm/sparse-vmemmap: support device DAX in common vmemmap path

flat view

From: Qi Zheng <qi.zheng@linux.dev>
Date: 2026-09-28 01:50:36
Also in: linux-mm, lkml


On 9/24/26 3:52 PM, Muchun Song wrote:
The common vmemmap population path cannot yet handle optimized Device DAX
mappings on its own. It uses pfn_to_zone() to find the shared tail page,
but Device DAX populates its vmemmap at runtime before the ZONE_DEVICE span
is initialized.

Teach the common path to use device_zone() for runtime optimized vmemmap
population while retaining pfn_to_zone() for early boot. This allows the
same path to support both early boot mappings and Device DAX.

The backing PFN supplied by the Device DAX-specific population path is no
longer used, allowing the redundant lookup and population code to be
removed later.

Signed-off-by: Muchun Song <redacted>
---
v2:
- Expand comments around slab initialization to explain zone lookup and
   page refcounting (suggested by Qi Zheng)
---
  mm/sparse-vmemmap.c | 56 +++++++++++++++++++++++++--------------------
  1 file changed, 31 insertions(+), 25 deletions(-)
Acked-by: Qi Zheng <qi.zheng@linux.dev>

Thanks,
Qi



Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help