[Skiboot] [PATCH 3/3] hdata/smplink: Increment index of associated PHB

Oliver O'Halloran oohall at gmail.com
Wed Sep 20 19:46:02 AEST 2017


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 at gmail.com>
---
 hdata/spira.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hdata/spira.c b/hdata/spira.c
index 5e3d6ccc05d5..7dc8d5fa061f 100644
--- a/hdata/spira.c
+++ b/hdata/spira.c
@@ -1463,7 +1463,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++);
 	}
 }
 
-- 
2.9.5



More information about the Skiboot mailing list