Skip to content

Commit

Permalink
STOP: Handle Quad Special Wakeup Done while pm_reset
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
davidduyue authored and dcrowell77 committed May 31, 2018
1 parent 8a3c629 commit 0d6bce9
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/import/chips/p9/procedures/hwp/pm/p9_pm_reset.C
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0d6bce9

Please sign in to comment.