[Skiboot] [PATCH] external/mambo: add device tree fixup for POWER9 stop levels
Vaidyanathan Srinivasan
svaidy at linux.vnet.ibm.com
Fri Feb 17 15:57:52 AEDT 2017
* Nicholas Piggin <npiggin at gmail.com> [2017-02-17 11:56:32]:
> Signed-off-by: Nicholas Piggin <npiggin at gmail.com>
Reviewed-by: Vaidyanathan Srinivasan <svaidy at linux.vnet.ibm.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
> +}
> +
Thanks for the patch, we could limit the enabled stop states to the
ones that are actually enabled in h/w and workable in mambo. I will
test and adjust this mask if required.
--Vaidy
More information about the Skiboot
mailing list