[Skiboot] [PATCH v2 10/10] npu2: Allow POWER9 DD2 in ec level check

Reza Arbab arbab at linux.vnet.ibm.com
Sat Jul 22 01:47:47 AEST 2017


Don't bail when we encounter a POWER9 DD2.x chip.

Signed-off-by: Reza Arbab <arbab at linux.vnet.ibm.com>
Acked-By: Alistair Popple <alistair at popple.id.au>
Cc: Andrew Donnellan <andrew.donnellan at au1.ibm.com>
---
 hw/npu2.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hw/npu2.c b/hw/npu2.c
index 24d7740..3eb2a28 100644
--- a/hw/npu2.c
+++ b/hw/npu2.c
@@ -1231,7 +1231,7 @@ static void npu2_probe_phb(struct dt_node *dn)
 	path = dt_get_path(dn);
 	gcid = dt_get_chip_id(dn);
 	assert(proc_chip = get_chip(gcid));
-	if ((proc_chip->ec_level & 0xf0) != 0x10) {
+	if ((proc_chip->ec_level & 0xf0) > 0x20) {
 		prerror("NPU2: unsupported ec level on Chip 0x%x!\n", gcid);
 		return;
 	}
-- 
1.8.3.1



More information about the Skiboot mailing list