diff options
author | Oliver O'Halloran <oohall@gmail.com> | 2017-09-20 19:46:02 +1000 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2017-09-20 23:25:01 -0500 |
commit | 577b75727d9ee9d57e1468e52275a7d838bbabf0 (patch) | |
tree | ed6dc3e25e0d280b85cf7d5adb324640f90bfc40 | |
parent | 768403ebcdf94d7667a47ba85d12debf0cb733dd (diff) | |
download | skiboot-577b75727d9ee9d57e1468e52275a7d838bbabf0.zip skiboot-577b75727d9ee9d57e1468e52275a7d838bbabf0.tar.gz skiboot-577b75727d9ee9d57e1468e52275a7d838bbabf0.tar.bz2 |
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 <oohall@gmail.com>
[stewart@linux.vnet.ibm.com: Reza found npu_index++ needed too]
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
-rw-r--r-- | hdata/spira.c | 2 |
1 files changed, 1 insertions, 1 deletions
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++); } } |