diff options
author | spashabk-in <shakeebbk@in.ibm.com> | 2018-04-24 06:22:03 -0500 |
---|---|---|
committer | Sachin Gupta <sgupta2m@in.ibm.com> | 2018-04-24 07:24:01 -0400 |
commit | c0db49ee81188dbba099b77bd1247d3f09906a22 (patch) | |
tree | b13fc51a6554dcb9b44a83dc5dcb7c221712413c | |
parent | b2d533e6568aa97a2562afca5638901c93d8730b (diff) | |
download | talos-sbe-c0db49ee81188dbba099b77bd1247d3f09906a22.tar.gz talos-sbe-c0db49ee81188dbba099b77bd1247d3f09906a22.zip |
Revert changes to ipl_table.C
Reverting changes which were mistakenly taken in
https://ralgit01.raleigh.ibm.com/gerrit1/#/c/56203/8
Change-Id: If364908ec493af79e8ab2e5e5c883e85b94a3ecb
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/57731
Reviewed-by: Sachin Gupta <sgupta2m@in.ibm.com>
Tested-by: Sachin Gupta <sgupta2m@in.ibm.com>
-rw-r--r-- | src/sbefw/app/power/ipl_table.C | 53 |
1 files changed, 28 insertions, 25 deletions
diff --git a/src/sbefw/app/power/ipl_table.C b/src/sbefw/app/power/ipl_table.C index da1d3cb2..c282d151 100644 --- a/src/sbefw/app/power/ipl_table.C +++ b/src/sbefw/app/power/ipl_table.C @@ -807,23 +807,24 @@ ReturnCode istepWithExL2Flush( voidfuncptr_t i_hwp) break; } // check the position of EX i.e. Ex0 or Ex1 - if(l2IsScomable[((exTgt.getChipletNumber()) % 2)]) + if(!(l2IsScomable[((exTgt.getChipletNumber()) % 2)])) { - p9core::purgeData_t l_purgeData; - SBE_EXEC_HWP(rc, - reinterpret_cast<sbeIstepHwpExL2Flush_t>(i_hwp), - exTgt, - l_purgeData) - if(rc != FAPI2_RC_SUCCESS) - { - SBE_ERROR(SBE_FUNC " p9_l2_flush failed, RC=[0x%08X]", rc); - break; - } + SBE_INFO(SBE_FUNC "Ex chipletId [%d] not l2 scomable, so no purge", + exTgt.getChipletNumber()); + // TODO via RTC 191254 + // Enable this code back once stop states are enabled + // This is temporary hack to debug SW422447 + // continue; } - else + p9core::purgeData_t l_purgeData; + SBE_EXEC_HWP(rc, + reinterpret_cast<sbeIstepHwpExL2Flush_t>(i_hwp), + exTgt, + l_purgeData) + if(rc != FAPI2_RC_SUCCESS) { - SBE_INFO(SBE_FUNC "Ex chipletId [%d] not l2 scomable, so no purge", - exTgt.getChipletNumber()); + SBE_ERROR(SBE_FUNC " p9_l2_flush failed, RC=[0x%08X]", rc); + break; } } SBE_EXIT(SBE_FUNC); @@ -863,20 +864,22 @@ ReturnCode istepWithExL3Flush( voidfuncptr_t i_hwp) } // check the position of EX i.e. Ex0 or Ex1 - if(l3IsScomable[((exTgt.getChipletNumber()) % 2)]) + if(!(l3IsScomable[((exTgt.getChipletNumber()) % 2)])) { - SBE_EXEC_HWP(rc, reinterpret_cast<sbeIstepHwpExL3Flush_t>(i_hwp), - exTgt, L3_FULL_PURGE, 0x0) - if(rc != FAPI2_RC_SUCCESS) - { - SBE_ERROR(SBE_FUNC " p9_l3_flush failed, RC=[0x%08X]", rc); - break; - } + SBE_INFO(SBE_FUNC "Ex chipletId [%d] not l3 scomable, so no purge", + exTgt.getChipletNumber()); + // TODO via RTC 191254 + // Enable this code back once stop states are enabled + // This is temporary hack to debug SW422447 + // continue; } - else + + SBE_EXEC_HWP(rc, reinterpret_cast<sbeIstepHwpExL3Flush_t>(i_hwp), + exTgt, L3_FULL_PURGE, 0x0) + if(rc != FAPI2_RC_SUCCESS) { - SBE_INFO(SBE_FUNC "Ex chipletId [%d] not l2 scomable, so no purge", - exTgt.getChipletNumber()); + SBE_ERROR(SBE_FUNC " p9_l3_flush failed, RC=[0x%08X]", rc); + break; } } SBE_EXIT(SBE_FUNC); |