Subject: Re: [PATCH v2 4/6] mm/sparse-vmemmap: Pass @pgmap argument to arch vmemmap_populate()

From: Muchun Song <[email-masked]>
Date: Wed, 15 Apr 2026 20:21:45 +0800

> On Apr 15, 2026, at 20:13, Joao Martins <[email-masked]> wrote:
> 
> On 15/04/2026 12:14, Muchun Song wrote:
>> Add the struct dev_pagemap pointer as a parameter to the architecture
>> specific vmemmap_populate(), vmemmap_populate_hugepages() and
>> vmemmap_populate_basepages() functions.
>> 
>> Currently, the vmemmap optimization for DAX is handled mostly in an
>> architecture-agnostic way via vmemmap_populate_compound_pages().
>> However, this approach skips crucial architecture-specific initialization
>> steps. For example, the x86 path must call sync_global_pgds() after
>> populating the vmemmap, which is currently being bypassed.
>> 
> 
> Harry's series fixed in a different way (for x86):
> 
> https://lore.kernel.org/linux-mm/[email-masked]/#t

Thanks for your information. It indeed fixes the page table sync issue.

I'll drop this one int the next version.

Thanks,
Muhcun