]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/powernv: Initialise nest mmu
authorAlistair Popple <alistair@popple.id.au>
Wed, 14 Dec 2016 02:36:51 +0000 (13:36 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 30 Jan 2017 09:24:33 +0000 (20:24 +1100)
commit296ea6ced5192176d221e78d4a5b045e6dd21559
tree1968b9aec5a02164d15655cd9a47e75c66e0d4ca
parent34a688fa65a0734a4321e9d7eb9421ffa2accccf
powerpc/powernv: Initialise nest mmu

POWER9 contains an off core mmu called the nest mmu (NMMU). This is
used by other hardware units on the chip to translate virtual
addresses into real addresses. The unit attempting an address
translation provides the majority of the context required for the
translation request except for the base address of the partition table
(ie. the PTCR) which needs to be programmed into the NMMU.

This patch adds a call to OPAL to set the PTCR for the nest mmu in
opal_init().

Signed-off-by: Alistair Popple <alistair@popple.id.au>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/opal-api.h
arch/powerpc/include/asm/opal.h
arch/powerpc/include/asm/powernv.h [new file with mode: 0644]
arch/powerpc/mm/pgtable-radix.c
arch/powerpc/mm/pgtable_64.c
arch/powerpc/platforms/powernv/opal-wrappers.S
arch/powerpc/platforms/powernv/opal.c