[Skiboot] [PATCH 10/24] psi: Fix logic in Nimbus DD1 test

Benjamin Herrenschmidt benh at kernel.crashing.org
Fri Jun 23 02:22:11 AEST 2017


Signed-off-by: Benjamin Herrenschmidt <benh at kernel.crashing.org>
---
 hw/psi.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/hw/psi.c b/hw/psi.c
index 41ca1b7..c98babf 100644
--- a/hw/psi.c
+++ b/hw/psi.c
@@ -856,8 +856,8 @@ static void psi_init_p9_interrupts(struct psi *psi)
 	out_be64(psi->regs + PSIHB_IVT_OFFSET, val);
 
 	/* Register sources */
-	is_p9ndd1 = (c && c->ec_level >= 0x10 &&
-		     c->type == PROC_CHIP_P9_NIMBUS);
+	is_p9ndd1 = (chip->ec_level < 0x20 &&
+		     chip->type == PROC_CHIP_P9_NIMBUS);
 
 	if (is_p9ndd1) {
 		prlog(PR_DEBUG,
-- 
2.9.4



More information about the Skiboot mailing list