Skip to content

Commit

Permalink
PM: Clean up PM Reset and PM Complex Suspend
Browse files Browse the repository at this point in the history
    - 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/57559
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: Jennifer A. Stofer <stofer@us.ibm.com>
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/57573
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
crgeddes authored and dcrowell77 committed Apr 21, 2018
1 parent 6ff6218 commit 4b25a2b
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/import/chips/p9/procedures/hwp/pm/p9_pm_pstate_gpe_init.C
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
#include <p9_ppe_utils.H>
#include <p9_quad_scom_addresses.H>
#include <p9_quad_scom_addresses_fld.H>
#include <p9n2_misc_scom_addresses.H>
#include <vector>

// -----------------------------------------------------------------------------
Expand Down Expand Up @@ -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_TYPE_EQ>
(fapi2::TARGET_STATE_FUNCTIONAL);

// For each functional EQ chiplet
for (auto l_quad_chplt : l_eqChiplets)
{
l_data64.flush<0>()
.setBit<EQ_QPPM_QPMMR_ENABLE_PCB_INTR_UPON_HEARTBEAT_LOSS>();

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);
Expand Down

0 comments on commit 4b25a2b

Please sign in to comment.