powerpc/8xx: rework support for 8M pages using contiguous PTE entries
In order to fit better with standard Linux page tables layout, add support for 8M pages using contiguous PTE entries in a standard page table. Page tables will then be populated with 1024 similar entries and two PMD entries will point to that page table. The PMD entries also get a flag to tell it is addressing an 8M page, this is required for the HW tablewalk assistance. Link: https://lkml.kernel.org/r/8693d9a0408371043ca63bf9e4a9c140667af63e.1719928057.git.christophe.leroy@csgroup.eu Signed-off-by:Christophe Leroy <christophe.leroy@csgroup.eu> Reviewed-by:
Oscar Salvador <osalvador@suse.de> Cc: Jason Gunthorpe <jgg@nvidia.com> Cc: Michael Ellerman <mpe@ellerman.id.au> Cc: Nicholas Piggin <npiggin@gmail.com> Cc: Peter Xu <peterx@redhat.com> Signed-off-by:
Andrew Morton <akpm@linux-foundation.org>
Showing
- arch/powerpc/include/asm/nohash/32/hugetlb-8xx.h 8 additions, 30 deletionsarch/powerpc/include/asm/nohash/32/hugetlb-8xx.h
- arch/powerpc/include/asm/nohash/32/pte-8xx.h 34 additions, 19 deletionsarch/powerpc/include/asm/nohash/32/pte-8xx.h
- arch/powerpc/include/asm/nohash/pgtable.h 0 additions, 4 deletionsarch/powerpc/include/asm/nohash/pgtable.h
- arch/powerpc/include/asm/page.h 0 additions, 5 deletionsarch/powerpc/include/asm/page.h
- arch/powerpc/include/asm/pgtable.h 3 additions, 0 deletionsarch/powerpc/include/asm/pgtable.h
- arch/powerpc/kernel/head_8xx.S 2 additions, 8 deletionsarch/powerpc/kernel/head_8xx.S
- arch/powerpc/mm/hugetlbpage.c 13 additions, 8 deletionsarch/powerpc/mm/hugetlbpage.c
- arch/powerpc/mm/kasan/8xx.c 13 additions, 8 deletionsarch/powerpc/mm/kasan/8xx.c
- arch/powerpc/mm/nohash/8xx.c 18 additions, 22 deletionsarch/powerpc/mm/nohash/8xx.c
- arch/powerpc/mm/pgtable.c 19 additions, 8 deletionsarch/powerpc/mm/pgtable.c
- arch/powerpc/mm/pgtable_32.c 1 addition, 1 deletionarch/powerpc/mm/pgtable_32.c
- arch/powerpc/platforms/Kconfig.cputype 0 additions, 1 deletionarch/powerpc/platforms/Kconfig.cputype
Please register or sign in to comment