diff options
author | Yue Du <daviddu@us.ibm.com> | 2018-05-24 00:12:14 -0500 |
---|---|---|
committer | Daniel M. Crowell <dcrowell@us.ibm.com> | 2018-05-31 13:23:23 -0400 |
commit | 0d6bce9b7a0fb104dadef4d0ce668dfcdf9e8c03 (patch) | |
tree | dc5e1b4a82cdcfc3bada833a6687a6e66689373f /src/import/chips/p9 | |
parent | 8a3c6293dff79b925856325e9f04f38716fe0912 (diff) | |
download | talos-hostboot-0d6bce9b7a0fb104dadef4d0ce668dfcdf9e8c03.tar.gz talos-hostboot-0d6bce9b7a0fb104dadef4d0ce668dfcdf9e8c03.zip |
STOP: Handle Quad Special Wakeup Done while pm_reset
Key_Cronus_Test=PM_REGRESS
Change-Id: I89c9a3b8a80a58653be60f5e84e42e89b301ce72
CQ: SW416547
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/59293
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Tested-by: Hostboot CI <hostboot-ci+hostboot@us.ibm.com>
Reviewed-by: Prem Shanker Jha <premjha2@in.ibm.com>
Reviewed-by: RANGANATHPRASAD G. BRAHMASAMUDRA <prasadbgr@in.ibm.com>
Tested-by: Cronus HW CI <cronushw-ci+hostboot@us.ibm.com>
Reviewed-by: Gregory S. Still <stillgs@us.ibm.com>
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/59301
Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com>
Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com>
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/import/chips/p9')
-rw-r--r-- | src/import/chips/p9/procedures/hwp/pm/p9_pm_reset.C | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/import/chips/p9/procedures/hwp/pm/p9_pm_reset.C b/src/import/chips/p9/procedures/hwp/pm/p9_pm_reset.C index c2a6d8593..cbe5e4c24 100644 --- a/src/import/chips/p9/procedures/hwp/pm/p9_pm_reset.C +++ b/src/import/chips/p9/procedures/hwp/pm/p9_pm_reset.C @@ -183,6 +183,21 @@ fapi2::ReturnCode p9_pm_reset( FAPI_TRY(special_wakeup_all(i_target, true),//Enable splwkup "ERROR: Failed to remove EX chiplets from special wakeup"); + + // To prevent unnecessary Quad Special Wakeup request timeout, + // Upon upcoming reset(ppe down, thus cannot service quad special wakeup), + // Assert Quad Special Wakeup Done as Core Special Wakeup Done is asserted + // Note: This Done will be reset by SGPE code upon reboot + FAPI_DBG("Assert Quad Special Wakeup Done upon upcoming PPE reset"); + std::vector<fapi2::Target<fapi2::TARGET_TYPE_EQ>> l_eqChiplets = + i_target.getChildren<fapi2::TARGET_TYPE_EQ>(fapi2::TARGET_STATE_FUNCTIONAL); + + for ( auto l_itr = l_eqChiplets.begin(); l_itr != l_eqChiplets.end(); ++l_itr) + { + FAPI_TRY(fapi2::putScom(*l_itr, EQ_PPM_GPMMR_SCOM2, l_data64.flush<0>().setBit<0>()), + "ERROR: Failed to write EQ_PPM_GPMMR_SCOM2"); + } + FAPI_TRY(p9_pm_glob_fir_trace(i_target, "After EX in special wakeup")); } else |