summaryrefslogtreecommitdiffstats
path: root/src/import/chips/p9/procedures/hwp/pm/p9_quad_power_off.C
diff options
context:
space:
mode:
authorcrgeddes <crgeddes@us.ibm.com>2017-02-21 21:55:59 -0600
committerDaniel M. Crowell <dcrowell@us.ibm.com>2017-03-06 16:27:43 -0500
commit28770d118338068e29724156fa99d789c91f5ed6 (patch)
tree21d686a0c6643af032894cd9734c0674b38aa440 /src/import/chips/p9/procedures/hwp/pm/p9_quad_power_off.C
parent944307712e672c504af1c707e2857281811fc4e6 (diff)
downloadtalos-hostboot-28770d118338068e29724156fa99d789c91f5ed6.tar.gz
talos-hostboot-28770d118338068e29724156fa99d789c91f5ed6.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/36841 Reviewed-by: Hostboot Team <hostboot@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/import/chips/p9/procedures/hwp/pm/p9_quad_power_off.C')
-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 5fe22ade9..73246bbb0 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