linux_dsm_epyc7002/arch/powerpc/platforms/8xx
Christophe Leroy 4b91428699 powerpc/8xx: Implement support of hugepages
8xx uses a two level page table with two different linux page size
support (4k and 16k). 8xx also support two different hugepage sizes
512k and 8M. In order to support them on linux we define two different
page table layout.

The size of pages is in the PGD entry, using PS field (bits 28-29):
00 : Small pages (4k or 16k)
01 : 512k pages
10 : reserved
11 : 8M pages

For 512K hugepage size a pgd entry have the below format
[<hugepte address >0101] . The hugepte table allocated will contain 8
entries pointing to 512K huge pte in 4k pages mode and 64 entries in
16k pages mode.

For 8M in 16k mode, a pgd entry have the below format
[<hugepte address >1101] . The hugepte table allocated will contain 8
entries pointing to 8M huge pte.

For 8M in 4k mode, multiple pgd entries point to the same hugepte
address and pgd entry will have the below format
[<hugepte address>1101]. The hugepte table allocated will only have one
entry.

For the time being, we do not support CPU15 ERRATA when HUGETLB is
selected

Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Reviewed-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> (v3, for the generic bits)
Signed-off-by: Scott Wood <oss@buserror.net>
2016-12-09 22:49:07 -06:00
..
adder875.c powerpc: Move 32-bit probe() machine to later in the boot process 2016-07-21 19:06:42 +10:00
ep88xc.c powerpc: Move 32-bit probe() machine to later in the boot process 2016-07-21 19:06:42 +10:00
Kconfig powerpc/8xx: Implement support of hugepages 2016-12-09 22:49:07 -06:00
m8xx_setup.c powerpc: Remove all usages of NO_IRQ 2016-09-20 20:57:12 +10:00
Makefile powerpc/8xx: remove obsolete mgsuvd board 2011-03-15 10:11:27 -05:00
mpc8xx.h powerpc: Make ppc_md.{halt, restart} __noreturn 2016-07-14 21:12:06 +10:00
mpc86xads_setup.c powerpc: Move 32-bit probe() machine to later in the boot process 2016-07-21 19:06:42 +10:00
mpc86xads.h [POWERPC] 8xx: Convert mpc866ads to the new device binding. 2007-12-13 22:45:35 -06:00
mpc885ads_setup.c powerpc: Move 32-bit probe() machine to later in the boot process 2016-07-21 19:06:42 +10:00
mpc885ads.h powerpc/cpm: Remove some cruft code and defines 2009-05-19 00:47:19 -05:00
tqm8xx_setup.c powerpc: Move 32-bit probe() machine to later in the boot process 2016-07-21 19:06:42 +10:00