linux/arch/powerpc/mm/ptdump
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
..
8xx.c powerpc/8xx: Support 16k hugepages with 4k pages 2020-09-15 22:13:31 +10:00
bats.c mm: reorder includes after introduction of linux/pgtable.h 2020-06-09 09:39:13 -07:00
book3s64.c mm: introduce include/linux/pgtable.h 2020-06-09 09:39:13 -07:00
hashpagetable.c Merge branch 'akpm' (patches from Andrew) 2020-08-07 11:39:33 -07:00
Makefile
ptdump.c Merge branch 'akpm' (patches from Andrew) 2020-08-07 11:39:33 -07:00
ptdump.h powerpc/ptdump: Display size of BATs 2020-05-26 22:22:18 +10:00
segment_regs.c powerpc/mm: ptdump: no need to check return value of debugfs_create functions 2020-03-04 22:44:25 +11:00
shared.c mm: introduce include/linux/pgtable.h 2020-06-09 09:39:13 -07:00