diff options
author | Greg Still <stillgs@us.ibm.com> | 2017-09-25 17:45:36 -0500 |
---|---|---|
committer | Daniel M. Crowell <dcrowell@us.ibm.com> | 2017-10-03 00:05:38 -0400 |
commit | e26a4e0173c8cf6413f8c6d2a46bdb68095004e7 (patch) | |
tree | 937e9dd091793a5dfe02dfa7e4ab0485b9af5def /src/import/chips/p9/procedures/hwp/pm/p9_pm_init.C | |
parent | e20d02c02db91f1452990aa9706b2873f52825de (diff) | |
download | talos-hostboot-e26a4e0173c8cf6413f8c6d2a46bdb68095004e7.tar.gz talos-hostboot-e26a4e0173c8cf6413f8c6d2a46bdb68095004e7.zip |
PM: p9_pm_init, p9_pm_utils clean-up
- Clarify OCC special wake-up clearing
- Use unit_pos for traces vs target addresses
- Add ATTR_PM_GLOBAL_FIR_TRACE_EN as an override attribute to control tracing
- Enable p9_pm_glob_fir_trace unit above attribute control
- Use EXTRALIBS to ensure .so is built
Change-Id: I1ea4764ca15862e82acb0751fe867d281cf00c12
RTC: 174349
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/46715
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Tested-by: HWSV CI <hwsv-ci+hostboot@us.ibm.com>
Tested-by: Hostboot CI <hostboot-ci+hostboot@us.ibm.com>
Tested-by: PPE CI <ppe-ci+hostboot@us.ibm.com>
Reviewed-by: AMIT J. TENDOLKAR <amit.tendolkar@in.ibm.com>
Reviewed-by: RANGANATHPRASAD G. BRAHMASAMUDRA <prasadbgr@in.ibm.com>
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Reviewed-by: Matt K. Light <mklight@us.ibm.com>
Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com>
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/46718
Reviewed-by: Hostboot Team <hostboot@us.ibm.com>
Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com>
Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com>
Diffstat (limited to 'src/import/chips/p9/procedures/hwp/pm/p9_pm_init.C')
-rw-r--r-- | src/import/chips/p9/procedures/hwp/pm/p9_pm_init.C | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/src/import/chips/p9/procedures/hwp/pm/p9_pm_init.C b/src/import/chips/p9/procedures/hwp/pm/p9_pm_init.C index f8c29e45f..44f921347 100644 --- a/src/import/chips/p9/procedures/hwp/pm/p9_pm_init.C +++ b/src/import/chips/p9/procedures/hwp/pm/p9_pm_init.C @@ -207,10 +207,10 @@ fapi2::ReturnCode pm_init( // ************************************************************************ // Switch off OCC initiated special wakeup on EX to allowSTOP functionality // ************************************************************************ - FAPI_DBG("Clear off the wakeup"); + FAPI_DBG("Clearing OCC special wake-up to be sure"); FAPI_TRY(clear_occ_special_wakeups(i_target), "ERROR: Failed to clear off the wakeup"); - FAPI_TRY(p9_pm_glob_fir_trace(i_target, "EX targets off special wakeup")); + FAPI_TRY(p9_pm_glob_fir_trace(i_target, "EX targets OCC clear special wakeup")); // ************************************************************************ // Take all EX chiplets out of special wakeup @@ -242,7 +242,7 @@ fapi_try_exit: fapi2::ReturnCode clear_occ_special_wakeups( const fapi2::Target<fapi2::TARGET_TYPE_PROC_CHIP>& i_target) { - FAPI_INF("Entering clear_occ_special_wakeups..."); + FAPI_DBG(">> clear_occ_special_wakeups..."); fapi2::buffer<uint64_t> l_data64; auto l_exChiplets = i_target.getChildren<fapi2::TARGET_TYPE_EX> @@ -253,15 +253,21 @@ fapi2::ReturnCode clear_occ_special_wakeups( // Iterate through the EX chiplets for (auto l_ex_chplt : l_exChiplets) { - FAPI_DBG("Clear OCC special wakeup on ex chiplet 0x%08X", l_ex_chplt); + fapi2::ATTR_CHIP_UNIT_POS_Type l_ex_num; + FAPI_TRY(FAPI_ATTR_GET( fapi2::ATTR_CHIP_UNIT_POS, + l_ex_chplt, + l_ex_num)); + + FAPI_DBG("Clear OCC special wakeup on ex chiplet 0x%08X", l_ex_num); FAPI_TRY(fapi2::getScom(i_target, EX_PPM_SPWKUP_OCC, l_data64), - "ERROR: Failed to read OCC Spl wkup on EX 0x%08X", l_ex_chplt); + "ERROR: Failed to read OCC Spl wkup on EX 0x%08X", l_ex_num); l_data64.clearBit<0>(); FAPI_TRY(fapi2::putScom(i_target, EX_PPM_SPWKUP_OCC, l_data64), - "ERROR: Failed to clear OCC Spl wkup on EX 0x%08X", l_ex_chplt); + "ERROR: Failed to clear OCC Spl wkup on EX 0x%08X", l_ex_num); } fapi_try_exit: + FAPI_DBG("<< clear_occ_special_wakeups..."); return fapi2::current_err; } |