Skip to content

Commit

Permalink
IPL/STOP: Disable LCO when only two EXes are configured
Browse files Browse the repository at this point in the history
Key_Cronus_Test=PM_REGRESS

Change-Id: I168f03dbd45da9da1c7f80e37ea508d7b56deec4
CQ: HW463903
Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/66112
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Tested-by: PPE CI <ppe-ci+hostboot@us.ibm.com>
Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com>
Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/66114
Reviewed-by: Sachin Gupta <sgupta2m@in.ibm.com>
  • Loading branch information
davidduyue authored and sgupta2m committed Sep 19, 2018
1 parent 47d4455 commit 0c77051
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions src/import/chips/p9/procedures/hwp/cache/p9_hcd_cache_scominit.C
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/* */
/* OpenPOWER sbe Project */
/* */
/* Contributors Listed Below - COPYRIGHT 2015,2017 */
/* Contributors Listed Below - COPYRIGHT 2015,2018 */
/* [+] International Business Machines Corp. */
/* */
/* */
Expand Down Expand Up @@ -224,25 +224,13 @@ p9_hcd_cache_scominit(
FAPI_TRY(getScom(*l_iter, EX_L3_MODE_REG1, l_data64));
l_data64.insertFromRight<2, 4>(l_exid).insertFromRight<6, 16>(l_exlist);

if (l_excount > 1)
if (l_attr_sys_force_all_cores && (l_excount > 2))
{
l_data64.setBit<0>();
}

FAPI_TRY(putScom(*l_iter, EX_L3_MODE_REG1, l_data64));

FAPI_TRY(getScom(*l_iter, EX_L3_MODE_REG0, l_data64));

if (l_excount == 2)
{
FAPI_DBG("Assert L3_DYN_LCO_BLK_DIS_CFG on TARGET_ID[%d] via EX_L3_MODE_REG0[9]", l_exid);
FAPI_TRY(putScom(*l_iter, EX_L3_MODE_REG0, DATA_SET(9)));
}
else
{
FAPI_DBG("Drop L3_DYN_LCO_BLK_DIS_CFG on TARGET_ID[%d] via EX_L3_MODE_REG0[9]", l_exid);
FAPI_TRY(putScom(*l_iter, EX_L3_MODE_REG0, DATA_UNSET(9)));
}
}

FAPI_DBG("Enable DTS via THERM_MODE_REG[5,6-9,20-21]");
Expand Down

0 comments on commit 0c77051

Please sign in to comment.