linux-stable/arch/powerpc
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
..
boot powerpc/dts: add device tree entry for W83793 on T4240RDB 2016-11-22 01:26:48 -06:00
configs powerpc/85xx: Enable gpio power/reset driver 2016-11-23 01:23:38 -06:00
crypto Merge branch 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6 2016-10-10 14:04:16 -07:00
include powerpc/8xx: Implement support of hugepages 2016-12-09 22:49:07 -06:00
kernel powerpc/8xx: Implement support of hugepages 2016-12-09 22:49:07 -06:00
kvm KVM: PPC: Book3S HV: Fix build error when SMP=n 2016-10-22 08:44:37 +11:00
lib powerpc: EX_TABLE macro for exception tables 2016-11-14 11:11:51 +11:00
math-emu
mm powerpc/8xx: Implement support of hugepages 2016-12-09 22:49:07 -06:00
net powerpc/bpf: Add support for bpf constant blinding 2016-10-04 20:33:20 +11:00
oprofile powerpc/sparse: Make a bunch of things static 2016-09-13 17:35:47 +10:00
perf powerpc/sparse: Make a bunch of things static 2016-09-13 17:35:47 +10:00
platforms powerpc/8xx: Implement support of hugepages 2016-12-09 22:49:07 -06:00
scripts
sysdev powerpc/fsl_pmc: use builtin_platform_driver 2016-12-04 19:51:44 -06:00
xmon powerpc/xmon: Don't use ld on 32-bit 2016-09-13 17:37:02 +10:00
Kconfig powerpc/64: Add an option to force run-at-load to test relocation 2016-11-14 11:11:51 +11:00
Kconfig.debug powerpc/mm: Dump linux pagetables 2016-11-17 17:11:46 +11:00
Makefile powerpc/book3s64: Always build for power4 or later 2016-11-14 11:11:51 +11:00
relocs_check.sh powerpc/64: whitelist unresolved modversions CRCs 2016-09-22 14:46:31 +02:00