[Skiboot] [PATCH] hw/npu2: Assign a unique LPARSHORTID per GPU

Reza Arbab arbab at linux.vnet.ibm.com
Sat Mar 24 08:08:38 AEDT 2018


From: Alistair Popple <alistair at popple.id.au>

This gets used elsewhere to index items in the XTS tables.

Signed-off-by: Alistair Popple <alistair at popple.id.au>
[arbab at linux.vnet.ibm.com: Added commit log]
Signed-off-by: Reza Arbab <arbab at linux.vnet.ibm.com>
---
 hw/npu2.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/hw/npu2.c b/hw/npu2.c
index 7ed2443..2e22836 100644
--- a/hw/npu2.c
+++ b/hw/npu2.c
@@ -2206,6 +2206,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++) {
-- 
1.8.3.1



More information about the Skiboot mailing list