Re: [PATCH] mm/arch: Provide pud_pfn() fallback

From: Peter Xu
Date: Tue Mar 26 2024 - 16:43:45 EST


On Tue, Mar 26, 2024 at 01:27:26PM -0700, Andrew Morton wrote:
> On Sat, 23 Mar 2024 11:16:43 -0400 peterx@xxxxxxxxxx wrote:
>
> > From: Peter Xu <peterx@xxxxxxxxxx>
> >
> > The comment in the code explains the reasons. We took a different approach
> > comparing to pmd_pfn() by providing a fallback function.
> >
> > Another option is to provide some lower level config options (compare to
> > HUGETLB_PAGE or THP) to identify which layer an arch can support for such
> > huge mappings. However that can be an overkill.
> >
> > ...
> >
> > If we care about per-commit build errors (and if it is ever feasible to
> > reorder), we can move this patch to be before the patch "mm/gup: handle
> > huge pud for follow_pud_mask()" in mm-unstable to unbreak build on that
> > commit.
>
> I temporarily disabled that whole series a few days ago. Because of
> multiple build issues, iirc.
>
> Let's make that permanent. Please redo the whole series against
> mm-unstable and resend?

Yes, that's the plan. Feel free to ignore this as this is not used until
that GUP rework series, I'll include it in the whole set to be reposted.

I'm currently doing the build tests; just finished writting the harness for
testing the matrix. It'll take a bit time to run through the tests I
specified (I tried to cover a few more archs/configs), and I'll repost with
all patches included (fixups squashed) when test finished.

[side note: I think I can reproduce the other not-reported issue, on
arm+alldefconfig; that'll get covered too]

Thanks,

--
Peter Xu