powerpc/mm/radix: Add radix callbacks for early init routines
authorAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Fri, 29 Apr 2016 13:25:58 +0000 (23:25 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Sun, 1 May 2016 08:33:00 +0000 (18:33 +1000)
commit2bfd65e45e877fb5704730244da67c748d28a1b8
tree2e373df264786896da721a9f7fb105d67300fe3f
parent756d08d1ba169ed9eae4d48e9a0af014e86593fc
powerpc/mm/radix: Add radix callbacks for early init routines

This adds routines for early setup for radix. We use device tree
property "ibm,processor-radix-AP-encodings" to find supported page
sizes. If we don't find the above we consider 64K and 4K as supported
page sizes.

We do map vmemap using 2M page size if we can. The linear mapping is
done such that we use required page size for that range. For example
memory of 3.5G is mapped such that we use 1G mapping till 3G range and
use 2M mapping for the rest.

Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/book3s/64/mmu.h
arch/powerpc/include/asm/book3s/64/radix.h
arch/powerpc/include/asm/reg.h
arch/powerpc/mm/Makefile
arch/powerpc/mm/pgtable-radix.c [new file with mode: 0644]
arch/powerpc/platforms/powernv/setup.c