[Skiboot] [PATCH] nx: Don't abort on missing NX when using a QEMU machine

Benjamin Herrenschmidt benh at kernel.crashing.org
Thu Nov 1 15:12:50 AEDT 2018

These don't have an NX node (and probably never will) as they
don't provide any coprocessor. However, the DARN instruction
works so this abort is unnecessary.

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

diff --git a/hw/nx.c b/hw/nx.c
index 1fedee77..d3746aea 100644
--- a/hw/nx.c
+++ b/hw/nx.c
@@ -45,7 +45,8 @@ static void p9_darn_init(void)
 	dt_for_each_compatible(dt_root, nx, "ibm,power9-nx")
 	if (!nx) {
-		assert(nx);
+		if (!dt_node_is_compatible(dt_root, "qemu,powernv"))
+			assert(nx);

More information about the Skiboot mailing list