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/powernv.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/powernv.h')
-rw-r--r-- | arch/powerpc/include/asm/powernv.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/powernv.h b/arch/powerpc/include/asm/powernv.h new file mode 100644 index 0000000..0e9c240 --- /dev/null +++ b/arch/powerpc/include/asm/powernv.h @@ -0,0 +1,19 @@ +/* + * Copyright 2017 IBM Corp. + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version + * 2 of the License, or (at your option) any later version. + */ + +#ifndef _ASM_POWERNV_H +#define _ASM_POWERNV_H + +#ifdef CONFIG_PPC_POWERNV +extern void powernv_set_nmmu_ptcr(unsigned long ptcr); +#else +static inline void powernv_set_nmmu_ptcr(unsigned long ptcr) { } +#endif + +#endif /* _ASM_POWERNV_H */ |