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

From: Jason Gunthorpe
Date: Mon Mar 25 2024 - 11:36:14 EST


On Sat, Mar 23, 2024 at 11:16:43AM -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.
>
> Cc: Mike Rapoport (IBM) <rppt@xxxxxxxxxx>
> Cc: Matthew Wilcox <willy@xxxxxxxxxxxxx>
> Reported-by: kernel test robot <lkp@xxxxxxxxx>
> Closes: https://lore.kernel.org/oe-kbuild-all/202403231529.HRev1zcD-lkp@xxxxxxxxx/
> Signed-off-by: Peter Xu <peterx@xxxxxxxxxx>
> ---

Reviewed-by: Jason Gunthorpe <jgg@xxxxxxxxxx>

Jason