diff options
author | Alistair Popple <alistair@popple.id.au> | 2018-03-23 16:08:38 -0500 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2018-03-27 00:38:37 -0500 |
commit | 759c23acb4b631bec692de07f4ac70edbf65aa35 (patch) | |
tree | dbd24b0c13c4a63ae7ba72f827620a50425c9854 /hw | |
parent | 215a7ce1f1863d61936799568a2ea53afba92ddc (diff) | |
download | skiboot-759c23acb4b631bec692de07f4ac70edbf65aa35.zip skiboot-759c23acb4b631bec692de07f4ac70edbf65aa35.tar.gz skiboot-759c23acb4b631bec692de07f4ac70edbf65aa35.tar.bz2 |
hw/npu2: Assign a unique LPARSHORTID per GPU
This gets used elsewhere to index items in the XTS tables.
Signed-off-by: Alistair Popple <alistair@popple.id.au>
[arbab@linux.vnet.ibm.com: Added commit log]
Signed-off-by: Reza Arbab <arbab@linux.vnet.ibm.com>
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'hw')
-rw-r--r-- | hw/npu2.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -2114,6 +2114,7 @@ static int opal_npu_map_lpar(uint64_t phb_id, uint64_t bdf, uint64_t lparid, /* We only support radix for the moment */ xts_bdf_lpar = SETFIELD(NPU2_XTS_BDF_MAP_XLAT, xts_bdf_lpar, 0x3); xts_bdf_lpar = SETFIELD(NPU2_XTS_BDF_MAP_LPARID, xts_bdf_lpar, lparid); + xts_bdf_lpar = SETFIELD(NPU2_XTS_BDF_MAP_LPARSHORT, xts_bdf_lpar, id); /* Need to find an NVLink to send the ATSDs for this device over */ for (i = 0; i < p->total_devices; i++) { |