diff options
author | Alistair Popple <alistair@popple.id.au> | 2016-12-14 13:36:51 +1100 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2017-01-30 20:24:33 +1100 |
commit | 1d0761d2557d1540727723e4f05395d53321d555 (patch) | |
tree | 1968b9aec5a02164d15655cd9a47e75c66e0d4ca /arch/powerpc/include/asm/opal-api.h | |
parent | 2a8628d41602dc9f988af051a657eef648eec5c0 (diff) | |
download | op-kernel-dev-1d0761d2557d1540727723e4f05395d53321d555.zip op-kernel-dev-1d0761d2557d1540727723e4f05395d53321d555.tar.gz |
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>
Diffstat (limited to 'arch/powerpc/include/asm/opal-api.h')
-rw-r--r-- | arch/powerpc/include/asm/opal-api.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/powerpc/include/asm/opal-api.h b/arch/powerpc/include/asm/opal-api.h index 0e2e57b..a0aa285 100644 --- a/arch/powerpc/include/asm/opal-api.h +++ b/arch/powerpc/include/asm/opal-api.h @@ -167,7 +167,8 @@ #define OPAL_INT_EOI 124 #define OPAL_INT_SET_MFRR 125 #define OPAL_PCI_TCE_KILL 126 -#define OPAL_LAST 126 +#define OPAL_NMMU_SET_PTCR 127 +#define OPAL_LAST 127 /* Device tree flags */ |