aboutsummaryrefslogtreecommitdiff
path: root/hw/slw.c
diff options
context:
space:
mode:
authorShreyas B. Prabhu <shreyas@linux.vnet.ibm.com>2016-06-17 09:51:50 +0530
committerStewart Smith <stewart@linux.vnet.ibm.com>2016-06-20 14:32:47 +1000
commitb6f940fbb83ab27fb5f9bb59f52b685709def93c (patch)
tree9c6a54a4f184e95785cd472f845740bf36ed2a59 /hw/slw.c
parent04674d31b6a0f701c12be9585c106da41e24e444 (diff)
downloadskiboot-b6f940fbb83ab27fb5f9bb59f52b685709def93c.zip
skiboot-b6f940fbb83ab27fb5f9bb59f52b685709def93c.tar.gz
skiboot-b6f940fbb83ab27fb5f9bb59f52b685709def93c.tar.bz2
slw: Allow adding idle states to power-mgt node in mambo
This patch removes the check which prevents adding any idle state to "power-mgt" node in mambo. Power8 exposes 3 idle states- nap, fast-sleep and deep-winkle. While fast-sleep depends on SCOMs and deep-winkle depends on SCOMs/SLW, nap has no such dependencies and it can be enabled in mambo. Current code checks for "fast-sleep" in hostboot provided "ibm,enabled-idle-states" dt node for adding fast-sleep and checks for presence of SLW for adding winkle to "power-mgt". Hence with this change only nap will be added to "power-mgt" node in mambo on Power8. On Power9, this patch enables all idle states which don't need SLW. Acked-by: Michael Neuling <mikey@neuling.org> Signed-off-by: Shreyas B. Prabhu <shreyas@linux.vnet.ibm.com> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'hw/slw.c')
-rw-r--r--hw/slw.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/hw/slw.c b/hw/slw.c
index 12ef494..748e319 100644
--- a/hw/slw.c
+++ b/hw/slw.c
@@ -594,12 +594,6 @@ void add_cpu_idle_state_properties(void)
return;
}
- /* Mambo currently misbehaves in nap mode vs. timebase, so let's
- * disable idle states
- */
- if (chip_quirk(QUIRK_DISABLE_NAP))
- return;
-
/*
* Chose the right state table for the chip
*