powerpc/book3s: Use config independent helpers for page table walk
authorAneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
Tue, 14 May 2019 06:03:00 +0000 (11:33 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 4 Jul 2019 14:43:50 +0000 (00:43 +1000)
commitd6eacedd1f0ebf00bdf1c77715d194f7c1036fd4
treebf977356cbeb533eb3a4e2d73d4923eba6188be3
parent259a948c4ba1829ae4a3c31bb6e40ad458a21254
powerpc/book3s: Use config independent helpers for page table walk

Even when we have HugeTLB and THP disabled, kernel linear map can still be
mapped with hugepages. This is only an issue with radix translation because hash
MMU doesn't map kernel linear range in linux page table and other kernel
map areas are not mapped using hugepage.

Add config independent helpers and put WARN_ON() when we don't expect things
to be mapped via hugepages.

Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/book3s/64/pgtable.h
arch/powerpc/include/asm/pgtable.h
arch/powerpc/include/asm/pte-walk.h
arch/powerpc/kvm/book3s_64_mmu_radix.c
arch/powerpc/mm/book3s64/radix_pgtable.c
arch/powerpc/mm/pgtable.c
arch/powerpc/mm/pgtable_64.c
arch/powerpc/mm/ptdump/ptdump.c
arch/powerpc/xmon/xmon.c