diff mbox series

hw/npu2: Assign a unique LPARSHORTID per GPU

Message ID 1521839318-16601-1-git-send-email-arbab@linux.vnet.ibm.com
State Accepted
Headers show
Series hw/npu2: Assign a unique LPARSHORTID per GPU | expand

Commit Message

Reza Arbab March 23, 2018, 9:08 p.m. UTC
From: Alistair Popple <alistair@popple.id.au>

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>
---
 hw/npu2.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Stewart Smith March 28, 2018, 4:21 a.m. UTC | #1
Reza Arbab <arbab@linux.vnet.ibm.com> writes:
> From: Alistair Popple <alistair@popple.id.au>
>
> 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>
> ---
>  hw/npu2.c | 1 +
>  1 file changed, 1 insertion(+)

Master as of 759c23acb4b631bec692de07f4ac70edbf65aa35
5.10.x as of f8deaebb4dd5a3e168ebb850bc98a1d595c72829
diff mbox series

Patch

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++) {