]> git.kernelconcepts.de Git - karo-tx-linux.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)
commit1d0761d2557d1540727723e4f05395d53321d555
tree1968b9aec5a02164d15655cd9a47e75c66e0d4ca
parent2a8628d41602dc9f988af051a657eef648eec5c0
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