From 577b75727d9ee9d57e1468e52275a7d838bbabf0 Mon Sep 17 00:00:00 2001 From: Oliver O'Halloran Date: Wed, 20 Sep 2017 19:46:02 +1000 Subject: hdata/smplink: Increment index of associated PHB The PHB number of the NPU device needs to be incremented per-chip or bad things are going to occur. Signed-off-by: Oliver O'Halloran [stewart@linux.vnet.ibm.com: Reza found npu_index++ needed too] Signed-off-by: Stewart Smith --- hdata/spira.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hdata') diff --git a/hdata/spira.c b/hdata/spira.c index 7be53b9..7e88348 100644 --- a/hdata/spira.c +++ b/hdata/spira.c @@ -1508,7 +1508,7 @@ static void add_npus(void) /* some hostboots will give us an empty array */ if (be32_to_cpu(links->ecnt)) - add_npu(xscom, links, npu_index, phb_index); + add_npu(xscom, links, npu_index++, phb_index++); } } -- cgit v1.1