Re: [PATCH] mm: use standard page table accessors

Wei Yang
2025-11-26T10:03:35Z

On Wed, Nov 26, 2025 at 09:15:24AM +0100, Christophe Leroy (CS GROUP) wrote:
>
>
>Le 26/11/2025 à 07:47, Wei Yang a écrit :
>> Use standard page table accessors i.e pxdp_get() to get the value of
>> pxdp.
>
>Please provide more detail of why you want to do that and how you are sure it
>doesn't break existing implementation.
>
>There was similar tentative in the past already which proved to give
>suboptimal results, see discussion here:
>
>https://lore.kernel.org/all/f40ea8bf-0862-41a7-af19-70bfbd838568@csgroup.eu/

Interesting.

The reason is P4D/PUD/PMD on PPC32 actually just has PGD/PMD. So it is not
necessary to retrieve P4D and PUD.

If this is the case, sounds other platform with less pagetable level would be
affected too.

And this looks only affect when we walk the pagetable from pgd. If we just
iterating pmd/pte, we won't have this issue, right?

>
>Christophe

--
Wei Yang
Help you, Help me