This is v3 of patch serie is the implementation of support of hugepages for the 8xx. v1 of the serie was including some other fixes and optimisations/reorganisations for the 8xx. Now the patch has been split and this part only focuses on the implementation of hugepages.
v2: the last patch has been split in two parts. v3: Taking into account comments from aneesh This patch serie applies on top of the patch serie named "Optimisation on 8xx prior to hugepage implementation" Christophe Leroy (3): powerpc: port 64 bits pgtable_cache to 32 bits powerpc: get hugetlbpage handling more generic powerpc/8xx: Implement support of hugepages arch/powerpc/include/asm/book3s/32/pgalloc.h | 44 +++++- arch/powerpc/include/asm/book3s/32/pgtable.h | 40 ++--- arch/powerpc/include/asm/book3s/64/pgtable.h | 3 - arch/powerpc/include/asm/hugetlb.h | 19 ++- arch/powerpc/include/asm/mmu-8xx.h | 35 +++++ arch/powerpc/include/asm/mmu.h | 23 +-- arch/powerpc/include/asm/nohash/32/pgalloc.h | 44 +++++- arch/powerpc/include/asm/nohash/32/pgtable.h | 42 +++--- arch/powerpc/include/asm/nohash/32/pte-8xx.h | 1 + arch/powerpc/include/asm/nohash/64/pgtable.h | 2 - arch/powerpc/include/asm/nohash/pgtable.h | 4 + arch/powerpc/include/asm/pgtable.h | 2 + arch/powerpc/include/asm/reg_8xx.h | 2 +- arch/powerpc/kernel/head_8xx.S | 119 ++++++++++++++- arch/powerpc/mm/Makefile | 3 +- arch/powerpc/mm/hugetlbpage.c | 211 ++++++++++++--------------- arch/powerpc/mm/init-common.c | 107 ++++++++++++++ arch/powerpc/mm/init_64.c | 77 ---------- arch/powerpc/mm/pgtable_32.c | 37 ----- arch/powerpc/mm/tlb_nohash.c | 21 ++- arch/powerpc/platforms/8xx/Kconfig | 1 + arch/powerpc/platforms/Kconfig.cputype | 1 + 22 files changed, 525 insertions(+), 313 deletions(-) create mode 100644 arch/powerpc/mm/init-common.c -- 2.1.0