[PATCH RFC 06/12] mm/gup: Drop folio_fast_pin_allowed() in hugepd processing
Michael Ellerman
mpe at ellerman.id.au
Fri Nov 24 12:06:24 AEDT 2023
Peter Xu <peterx at redhat.com> writes:
> On Wed, Nov 22, 2023 at 12:00:24AM -0800, Christoph Hellwig wrote:
>> On Tue, Nov 21, 2023 at 10:59:35AM -0500, Peter Xu wrote:
...
>>
>> If dropping the check is the right thing for now (and I think the ppc
>> maintainers and willy as the large folio guy might have a more useful
>> opinions than I do), leaving a comment in would be very useful.
>
> Willy is in the loop, and I just notice I didn't really copy ppc list, even
> I planned to.. I am adding the list (linuxppc-dev at lists.ozlabs.org) into
> this reply. I'll remember to do so as long as there's a new version.
Thanks.
> The other reason I feel like hugepd may or may not be further developed for
> new features like large folio is that I saw Power9 started to shift to
> radix pgtables, and afaics hugepd is only supported in hash tables
> (hugepd_ok()).
Because it's powerpc it's not quite that simple :}
Power9 uses the Radix MMU by default, but the hash page table MMU is
still supported.
However although hugepd is used with the hash page table MMU, that's
only when PAGE_SIZE=4K. These days none of the major distros build with
4K pages.
But some of the non-server CPU platforms also use hugepd. 32-bit 8xx
does, which is actively maintained by Christophe.
And I believe Freescale e6500 can use it, but that is basically
orphaned, and although I boot test it I don't run any hugetlb tests.
(I guess I should do that).
cheers
More information about the Linuxppc-dev
mailing list