[Skiboot] [PATCH 2/3] chip: add no-nx quirk for all QEMU platforms

Cédric Le Goater clg at kaod.org
Fri Apr 5 01:18:59 AEDT 2019


Signed-off-by: Cédric Le Goater <clg at kaod.org>
---
 core/chip.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/core/chip.c b/core/chip.c
index 65263253424d..b01ec5bb0fb6 100644
--- a/core/chip.c
+++ b/core/chip.c
@@ -144,9 +144,11 @@ void init_chips(void)
 		prlog(PR_NOTICE, "CHIP: Detected Awan emulator\n");
 	}
 	/* Detect Qemu */
-	if (dt_node_is_compatible(dt_root, "qemu,powernv")) {
+	if (dt_node_is_compatible(dt_root, "qemu,powernv") ||
+	    dt_node_is_compatible(dt_root, "qemu,powernv8") ||
+	    dt_node_is_compatible(dt_root, "qemu,powernv9")) {
 		proc_chip_quirks |= QUIRK_NO_CHIPTOD | QUIRK_NO_PBA
-			| QUIRK_NO_DIRECT_CTL;
+			| QUIRK_NO_DIRECT_CTL | QUIRK_NO_RNG;
 		prlog(PR_NOTICE, "CHIP: Detected Qemu simulator\n");
 	}
 
-- 
2.20.1



More information about the Skiboot mailing list