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

Reza Arbab arbab at linux.vnet.ibm.com
Sat Jul 15 01:39:28 AEST 2017


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

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

diff --git a/hw/npu2.c b/hw/npu2.c
index dfe8622..02000e4 100644
--- a/hw/npu2.c
+++ b/hw/npu2.c
@@ -1242,7 +1242,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