[Skiboot] [PATCH] external/mambo: add device tree fixup for POWER9 stop levels
Nicholas Piggin
npiggin at gmail.com
Fri Feb 17 12:56:32 AEDT 2017
Signed-off-by: Nicholas Piggin <npiggin at gmail.com>
---
external/mambo/skiboot.tcl | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/external/mambo/skiboot.tcl b/external/mambo/skiboot.tcl
index ccd23ffe..ae648f8b 100644
--- a/external/mambo/skiboot.tcl
+++ b/external/mambo/skiboot.tcl
@@ -205,6 +205,13 @@ set reg [list $fake_nvram_start $fake_nvram_size ]
mysim of addprop $fake_nvram_node array64 "reg" reg
mysim of addprop $fake_nvram_node empty "name" "ibm,fake-nvram"
+# Allow P9 to use all idle states
+if { $default_config == "P9" } {
+ set opal_node [mysim of addchild $root_node "ibm,opal" ""]
+ set power_mgt_node [mysim of addchild $opal_node "power-mgt" ""]
+ mysim of addprop $power_mgt_node int "ibm,enabled-stop-levels" 0xffffffff
+}
+
# Init CPUs
set pir 0
for { set c 0 } { $c < $mconf(cpus) } { incr c } {
--
2.11.0
More information about the Skiboot
mailing list