linux/arch/powerpc/include/asm/nohash/32
Christophe Leroy e47168f3d1 powerpc/8xx: Support 16k hugepages with 4k pages
The 8xx has 4 page sizes: 4k, 16k, 512k and 8M

4k and 16k can be selected at build time as standard page sizes,
and 512k and 8M are hugepages.

When 4k standard pages are selected, 16k pages are not available.

Allow 16k pages as hugepages when 4k pages are used.

To allow that, implement arch_make_huge_pte() which receives
the necessary arguments to allow setting the PTE in accordance
with the page size:
- 512 k pages must have _PAGE_HUGE and _PAGE_SPS. They are set
by pte_mkhuge(). arch_make_huge_pte() does nothing.
- 16 k pages must have only _PAGE_SPS. arch_make_huge_pte() clears
_PAGE_HUGE.

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/a518abc29266a708dfbccc8fce9ae6694fe4c2c6.1598862623.git.christophe.leroy@csgroup.eu
2020-09-15 22:13:31 +10:00
..
hugetlb-8xx.h powerpc/8xx: Support 16k hugepages with 4k pages 2020-09-15 22:13:31 +10:00
kup-8xx.h powerpc: Implement user_access_save() and user_access_restore() 2020-01-28 23:14:44 +11:00
mmu-8xx.h powerpc/8xx: Reduce time spent in allow_user_access() and friends 2020-06-02 20:59:13 +10:00
mmu-40x.h powerpc/mm: move platform specific mmu-xxx.h in platform directories 2018-12-04 19:45:01 +11:00
mmu-44x.h powerpc/44x: use patch_sites for TLB handlers patching 2018-12-19 18:56:32 +11:00
pgalloc.h powerpc/mm: refactor pgd_alloc() and pgd_free() on nohash 2019-05-03 01:20:25 +10:00
pgtable.h powerpc/8xx: Support 16k hugepages with 4k pages 2020-09-15 22:13:31 +10:00
pte-8xx.h powerpc/8xx: Manage 512k huge pages as standard pages. 2020-05-26 22:22:21 +10:00
pte-40x.h powerpc/40x: Rework 40x PTE access and TLB miss 2020-05-28 23:24:34 +10:00
pte-44x.h
pte-fsl-booke.h