Skip to content

Commit

Permalink
external/mambo: add device tree fixup for POWER9 stop levels
Browse files Browse the repository at this point in the history
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Reviewed-by: Vaidyanathan Srinivasan <svaidy@linux.vnet.ibm.com>
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
  • Loading branch information
npiggin authored and stewartsmith committed Feb 22, 2017
1 parent a5274aa commit bdc15c6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions external/mambo/skiboot.tcl
Expand Up @@ -202,6 +202,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 } {
Expand Down

0 comments on commit bdc15c6

Please sign in to comment.