diff options
author | Alistair Popple <alistair@popple.id.au> | 2016-08-15 16:18:56 +1000 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2016-09-06 16:19:59 +1000 |
commit | 84e63a8d4fd9eb3efc872099d579c49fef6a5810 (patch) | |
tree | 7bbaab2aa4f8b632bf114e569b7e56c4b591507e /doc/opal-api | |
parent | f3c7237ffca29d9f7f4284db23c7154ed8bb4854 (diff) | |
download | skiboot-84e63a8d4fd9eb3efc872099d579c49fef6a5810.zip skiboot-84e63a8d4fd9eb3efc872099d579c49fef6a5810.tar.gz skiboot-84e63a8d4fd9eb3efc872099d579c49fef6a5810.tar.bz2 |
core/cpu.c: Add OPAL call to setup Nest MMU
POWER9 has an off core MMU called the Nest MMU which allows other
units within a chip to perform address translations. The context and
setup for translations is handled by the requesting agents, however
the Nest MMU does need to know where in system memory the page tables
are located.
This patch adds a call to setup the Nest MMU page table pointer on a
per-chip basis.
Signed-off-by: Alistair Popple <alistair@popple.id.au>
Reviewed-by: Balbir Singh <bsingharora@gmail.com>
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'doc/opal-api')
-rw-r--r-- | doc/opal-api/opal-nmmu-set-ptcr-127.txt | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/doc/opal-api/opal-nmmu-set-ptcr-127.txt b/doc/opal-api/opal-nmmu-set-ptcr-127.txt new file mode 100644 index 0000000..eac13f3 --- /dev/null +++ b/doc/opal-api/opal-nmmu-set-ptcr-127.txt @@ -0,0 +1,22 @@ +OPAL_NMMU_SET_PTCR +------------------- + +#define OPAL_NMMU_SET_PTCR 127 + +int64 opal_nmmu_set_ptcr(uint64 chip_id, uint64_t ptcr) + +Arguments: + + uint64 chip_id + either the chip id containing the nest mmu who's ptcr should be set + or alternatively -1ULL to indicate all nest mmu ptcr's should be set to + the same value. + uint64 ptcr + ptcr value pointing to either the radix tables or hash tables. + +This OPAL call sets up the Nest MMU by pointing it at the radix page +table base or the hash page table base (HTABORG). + +Return Values: +OPAL_SUCCESS: the power down was updated successful +OPAL_PARAMETER: a parameter was incorrect |