Re: [PATCH v3 00/20] mm: change behavior of pXdp_get()/pXd_page() in compile-time folded pgtable

From: Yeoreum Yun

Date: Tue Dec 01 2026 - 11:02:30 EST


On Tue, Dec 01, 2026 at 01:52:22PM +0100, David Hildenbrand (Arm) wrote:
> On Mon, 30 Nov 2026 17:18:33 +0000, Yeoreum Yun wrote:
> > Using ptep_get() and its counterparts in common code is suboptimal on
> > kernel configurations with generic compile-time folded page tables.
> > By default, ptep_get() and its friends expands to READ_ONCE(),
> > forcing the compiler to emit a load even when the value is not used afterwards.
> >
> > This issue was recently reported by Christophe Leroy [1] for ppc32
> > preventing futher code conversion to ptep_get()/pmdp_get()/... helper
> > and the same behavior can also be observed on arm64 when built with
> > 2- or 3-level page tables
> >
> > [...]
>
> I fixed up all things I reported (commit messages, cover letter in merge
> commit, smaller fixups) and pushed it to a topic branch to give it
> some exposure in -next.
>
> Levi, it would be good to send an official v4. You can see all the fixed
> up commits on the branch below.

I see. I'll respin with your comment and post soon.

Thanks!

[...]

--
Sincerely,
Yeoreum Yun