Skip to content

Commit

Permalink
Verify EQ/EX/Core clock/power states
Browse files Browse the repository at this point in the history
Key_Cronus_Test=PM_REGRESS

Change-Id: Ia284c5e4127eae4616d0f6d5ede1a794f4dc7712
CQ:SW442778
CMVC-Prereq: 1065287
Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/64734
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Tested-by: Hostboot CI <hostboot-ci+hostboot@us.ibm.com>
Tested-by: Cronus HW CI <cronushw-ci+hostboot@us.ibm.com>
Reviewed-by: AMIT J. TENDOLKAR <amit.tendolkar@in.ibm.com>
Reviewed-by: Gregory S. Still <stillgs@us.ibm.com>
Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com>
Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/64736
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
  • Loading branch information
prasrang authored and dcrowell77 committed Aug 30, 2018
1 parent edcc962 commit 1dd6d76
Show file tree
Hide file tree
Showing 3 changed files with 869 additions and 13 deletions.
30 changes: 21 additions & 9 deletions src/import/chips/p9/procedures/hwp/pm/p9_pm_reset.C
Original file line number Diff line number Diff line change
Expand Up @@ -101,22 +101,34 @@ fapi2::ReturnCode p9_pm_reset(
using namespace p9_stop_recov_ffdc;
FAPI_IMP(">> p9_pm_reset");

const fapi2::Target<fapi2::TARGET_TYPE_SYSTEM> FAPI_SYSTEM;
bool l_malfAlert = false;
fapi2::ATTR_PM_MALF_ALERT_ENABLE_Type l_malfEnabled =
fapi2::ENUM_ATTR_PM_MALF_ALERT_ENABLE_FALSE;

fapi2::ReturnCode l_rc;
fapi2::buffer<uint64_t> l_data64;
fapi2::ATTR_PM_RESET_PHASE_Type l_phase = PM_RESET_INIT;

fapi2::ATTR_INITIATED_PM_RESET_Type l_pmResetActive =
fapi2::ENUM_ATTR_INITIATED_PM_RESET_ACTIVE;
fapi2::ATTR_PM_MALF_ALERT_ENABLE_Type l_malfEnabled =
fapi2::ENUM_ATTR_PM_MALF_ALERT_ENABLE_FALSE;
fapi2::ATTR_SKIP_WAKEUP_Type l_skip_wakeup;

const fapi2::Target<fapi2::TARGET_TYPE_SYSTEM> FAPI_SYSTEM;
bool l_malfAlert = false;

fapi2::ATTR_PM_MALF_CYCLE_Type l_pmMalfCycle =
fapi2::ENUM_ATTR_PM_MALF_CYCLE_INACTIVE;
FAPI_TRY (FAPI_ATTR_GET (fapi2::ATTR_PM_MALF_CYCLE, i_target,
l_pmMalfCycle));

// Avoid another PM Reset before we get through the PM Init
// Protect FIR Masks, Special Wakeup States, PM FFDC, etc. from being
// trampled.
if (l_pmMalfCycle == fapi2::ENUM_ATTR_PM_MALF_CYCLE_ACTIVE)
{
FAPI_IMP ("PM Malf Cycle Active: Skip extraneous PM Reset!");
FAPI_IMP( "<< p9_pm_reset");

return fapi2::FAPI2_RC_SUCCESS;
}

fapi2::buffer<uint64_t> l_data64;
fapi2::ReturnCode l_rc;
fapi2::ATTR_SKIP_WAKEUP_Type l_skip_wakeup;
FAPI_TRY(FAPI_ATTR_GET(fapi2::ATTR_SKIP_WAKEUP, FAPI_SYSTEM, l_skip_wakeup),
"fapiGetAttribute of ATTR_SKIP_WAKEUP failed");

Expand Down

0 comments on commit 1dd6d76

Please sign in to comment.