summaryrefslogtreecommitdiffstats
path: root/src/import/chips
diff options
context:
space:
mode:
authorcrgeddes <crgeddes@us.ibm.com>2017-02-21 21:55:59 -0600
committerSachin Gupta <sgupta2m@in.ibm.com>2017-03-07 06:26:23 -0500
commit67e2a81104c4aba1451b146da460a27bac427b55 (patch)
tree8199129e7dac72d544c0ab2d17bd50e18d296b88 /src/import/chips
parentfa287293c9bd0cc7d5371a943c0288cc3af228a7 (diff)
downloadtalos-sbe-67e2a81104c4aba1451b146da460a27bac427b55.tar.gz
talos-sbe-67e2a81104c4aba1451b146da460a27bac427b55.zip
Enable regular wakeup after a quad is powered off
We disabled regular wakeup on the way down but we need to turn it back on. After discussion with power managment team we decided this was a good place to re-enable regular wakeup Change-Id: I2c70ac80f78a39542b7e154b92b5946d1dfef8b5 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/36838 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: PPE CI <ppe-ci+hostboot@us.ibm.com> Tested-by: Hostboot CI <hostboot-ci+hostboot@us.ibm.com> Reviewed-by: Michael S. Floyd <mfloyd@us.ibm.com> Reviewed-by: RAJA DAS <rajadas2@in.ibm.com> Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com> Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/36840 Reviewed-by: Hostboot Team <hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Sachin Gupta <sgupta2m@in.ibm.com>
Diffstat (limited to 'src/import/chips')
-rw-r--r--src/import/chips/p9/procedures/hwp/pm/p9_quad_power_off.C8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/import/chips/p9/procedures/hwp/pm/p9_quad_power_off.C b/src/import/chips/p9/procedures/hwp/pm/p9_quad_power_off.C
index c374a23d..8939f7bb 100644
--- a/src/import/chips/p9/procedures/hwp/pm/p9_quad_power_off.C
+++ b/src/import/chips/p9/procedures/hwp/pm/p9_quad_power_off.C
@@ -47,11 +47,13 @@
// Includes
// ----------------------------------------------------------------------
#include <p9_quad_power_off.H>
+#include <p9_block_wakeup_intr.H>
// ----------------------------------------------------------------------
// Function definitions
// ----------------------------------------------------------------------
+
#ifdef __PPE__
uint64_t G_ring_save[8] = {0, 0, 0, 0, 0, 0, 0, 0};
@@ -197,6 +199,12 @@ fapi2::ReturnCode p9_quad_power_off(
PM_PFET_TYPE_C::BOTH, PM_PFET_TYPE_C::OFF);
FAPI_TRY(rc);
+ //Enable regular wakeup for each core after the quad has been powered off
+ for (const auto& l_core : i_target.getChildren<fapi2::TARGET_TYPE_CORE>())
+ {
+ FAPI_EXEC_HWP(rc, p9_block_wakeup_intr, l_core, p9pmblockwkup::CLEAR);
+ }
+
fapi_try_exit:
FAPI_INF("p9_quad_power_off: ...Exiting");
return fapi2::current_err;
OpenPOWER on IntegriCloud