]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0fe690ad9db874bf201410055b504ff2c9c577a1
tree2e373df264786896da721a9f7fb105d67300fe3f
parenta7f8d73ea2caba07c61f909fda0a0ab187c6e798
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