summaryrefslogtreecommitdiffstats
path: root/src/import/chips/p9/procedures/hwp/memory
diff options
context:
space:
mode:
authorStephen Glancy <sglancy@us.ibm.com>2017-03-23 13:12:30 -0500
committerDaniel M. Crowell <dcrowell@us.ibm.com>2017-04-02 14:56:27 -0400
commit3e8219fc02716052fd25528dd4541646bc5078ff (patch)
treecd635c7b2af01d025d4a99cdab02b88965cef5c9 /src/import/chips/p9/procedures/hwp/memory
parent6a1cf7b94857a6b7bdc79482298ea951be849202 (diff)
downloadtalos-hostboot-3e8219fc02716052fd25528dd4541646bc5078ff.tar.gz
talos-hostboot-3e8219fc02716052fd25528dd4541646bc5078ff.zip
Fixed blue waterfall workaround bugs
Bugs fixed: 1) Workaround was not running on DD1.03 2) Workaround was cuing off of number of ranks not rank pairs Change-Id: I704435ce217827a593d39c7c7ea536946bd86e0c Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/38369 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: Hostboot CI <hostboot-ci+hostboot@us.ibm.com> Reviewed-by: JACOB L. HARVEY <jlharvey@us.ibm.com> Reviewed-by: Brian R. Silver <bsilver@us.ibm.com> Reviewed-by: Matt K. Light <mklight@us.ibm.com> Reviewed-by: Louis Stermole <stermole@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Reviewed-by: ANDRE A. MARIN <aamarin@us.ibm.com> Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com> Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/38372 Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Diffstat (limited to 'src/import/chips/p9/procedures/hwp/memory')
-rw-r--r--src/import/chips/p9/procedures/hwp/memory/lib/mss_attribute_accessors_manual.H4
-rw-r--r--src/import/chips/p9/procedures/hwp/memory/lib/workarounds/dp16_workarounds.C6
2 files changed, 4 insertions, 6 deletions
diff --git a/src/import/chips/p9/procedures/hwp/memory/lib/mss_attribute_accessors_manual.H b/src/import/chips/p9/procedures/hwp/memory/lib/mss_attribute_accessors_manual.H
index c6ff97660..b0235fa73 100644
--- a/src/import/chips/p9/procedures/hwp/memory/lib/mss_attribute_accessors_manual.H
+++ b/src/import/chips/p9/procedures/hwp/memory/lib/mss_attribute_accessors_manual.H
@@ -270,12 +270,10 @@ inline bool chip_ec_feature_blue_waterfall_adjust(const fapi2::Target<T>& i_targ
{
const auto l_chip = mss::find_target<fapi2::TARGET_TYPE_PROC_CHIP>(i_target);
uint8_t l_value = 0;
- uint8_t l_do_value = 0;
FAPI_TRY( FAPI_ATTR_GET(fapi2::ATTR_CHIP_EC_FEATURE_MSS_BLUE_WATERFALL_ADJUST, l_chip, l_value) );
- FAPI_TRY( FAPI_ATTR_GET(fapi2::ATTR_DO_BLUE_WATERFALL_ADJUST, l_chip, l_do_value) );
- return (l_value != 0) && (l_do_value == fapi2::ENUM_ATTR_DO_BLUE_WATERFALL_ADJUST_YES);
+ return (l_value != 0);
fapi_try_exit:
FAPI_ERR("failed accessing ATTR_CHIP_EC_FEATURE_MSS_BLUE_WATERFALL_ADJUST or ATTR_DO_BLUE_WATERFALL_ADJUST: 0x%lx (target: %s)",
diff --git a/src/import/chips/p9/procedures/hwp/memory/lib/workarounds/dp16_workarounds.C b/src/import/chips/p9/procedures/hwp/memory/lib/workarounds/dp16_workarounds.C
index 53d19a2ba..16d56cf69 100644
--- a/src/import/chips/p9/procedures/hwp/memory/lib/workarounds/dp16_workarounds.C
+++ b/src/import/chips/p9/procedures/hwp/memory/lib/workarounds/dp16_workarounds.C
@@ -351,11 +351,11 @@ fapi2::ReturnCode fix_blue_waterfall_gate( const fapi2::Target<fapi2::TARGET_TYP
};
// Gets the number of primary ranks to loop through
- std::vector<uint64_t> l_primary_ranks;
- FAPI_TRY(mss::rank::primary_ranks(i_target, l_primary_ranks));
+ std::vector<uint64_t> l_rank_pairs;
+ FAPI_TRY(mss::rank::get_rank_pairs(i_target, l_rank_pairs));
// Loops through all configured rank pairs
- for(uint64_t l_rp = 0; l_rp < l_primary_ranks.size(); ++l_rp)
+ for(const auto& l_rp : l_rank_pairs)
{
// Loops through all DP16s
for(const auto& l_reg : l_dp16_registers[l_rp])
OpenPOWER on IntegriCloud