From b6271f37908f731fd1721e4457d187b2124e9317 Mon Sep 17 00:00:00 2001 From: Christian Geddes Date: Fri, 6 Apr 2018 13:31:38 -0500 Subject: PM: Clean up PM Reset and PM Complex Suspend - Increase timeout in PM Complex Suspend from 10ms -> 500ms - Disable CME monitoring of PGPE heart beat loss before halting PGPE Key_Cronus_Test=PM_REGRESS Change-Id: I3fbb435ce694e7590e9e9570107347a621828402 CQ: SW424102 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/56884 Tested-by: FSP CI Jenkins Tested-by: Jenkins Server Tested-by: PPE CI Tested-by: Hostboot CI Reviewed-by: Gregory S. Still Tested-by: Cronus HW CI Reviewed-by: Sachin Gupta Reviewed-by: Jennifer A. Stofer Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/56904 Tested-by: Jenkins OP Build CI Tested-by: Jenkins OP HW Reviewed-by: Christian R. Geddes --- .../chips/p9/procedures/hwp/pm/p9_pm_pstate_gpe_init.C | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'src/import') diff --git a/src/import/chips/p9/procedures/hwp/pm/p9_pm_pstate_gpe_init.C b/src/import/chips/p9/procedures/hwp/pm/p9_pm_pstate_gpe_init.C index d1c2342ea..59904d7c3 100644 --- a/src/import/chips/p9/procedures/hwp/pm/p9_pm_pstate_gpe_init.C +++ b/src/import/chips/p9/procedures/hwp/pm/p9_pm_pstate_gpe_init.C @@ -42,6 +42,7 @@ #include #include #include +#include #include // ----------------------------------------------------------------------------- @@ -303,6 +304,22 @@ fapi2::ReturnCode pstate_gpe_reset( FAPI_IMP(">> pstate_gpe_reset..."); + + //Disable CME monitoring of PGPE heart beat loss before halting PGPE + auto l_eqChiplets = i_target.getChildren + (fapi2::TARGET_STATE_FUNCTIONAL); + + // For each functional EQ chiplet + for (auto l_quad_chplt : l_eqChiplets) + { + l_data64.flush<0>() + .setBit(); + + FAPI_TRY(fapi2::putScom(l_quad_chplt, EQ_QPPM_QPMMR_CLEAR, l_data64), + "ERROR: Failed to setup Quad PPM register"); + + } + // Program XCR to HALT PGPE FAPI_INF(" Send HALT command via XCR..."); l_data64.flush<0>().insertFromRight(p9hcd::HALT, 1, 3); -- cgit v1.2.1