diff options
author | Zane Shelley <zshelle@us.ibm.com> | 2018-06-12 11:17:58 -0500 |
---|---|---|
committer | Zane C. Shelley <zshelle@us.ibm.com> | 2018-06-14 10:25:56 -0400 |
commit | 27bf34b7fa6edcc72e20d746558d178e72134b29 (patch) | |
tree | d169d296158648f13588b03fee44c6d0528aa756 | |
parent | 9e5283c651ba6fe16de6f418db4cdf80f285a551 (diff) | |
download | talos-hostboot-27bf34b7fa6edcc72e20d746558d178e72134b29.tar.gz talos-hostboot-27bf34b7fa6edcc72e20d746558d178e72134b29.zip |
PRD: add CE table traces for MNFG mode thresholds
Change-Id: Ie0ee365b0eb9bc63cc782490eb433b2e8bb9260d
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/60408
Reviewed-by: Zane C. Shelley <zshelle@us.ibm.com>
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/60520
Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com>
Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com>
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
-rw-r--r-- | src/usr/diag/prdf/common/plat/mem/prdfMemCeTable.C | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/usr/diag/prdf/common/plat/mem/prdfMemCeTable.C b/src/usr/diag/prdf/common/plat/mem/prdfMemCeTable.C index 07d2dff96..fee4f1ff6 100644 --- a/src/usr/diag/prdf/common/plat/mem/prdfMemCeTable.C +++ b/src/usr/diag/prdf/common/plat/mem/prdfMemCeTable.C @@ -108,6 +108,9 @@ uint32_t MemCeTable<T>::addEntry( const MemAddr & i_addr, uint32_t dramTh, rankTh, dimmTh; getMnfgMemCeTh<T>( iv_chip, thisRank, dramTh, rankTh, dimmTh ); + // The returned values are the number allowed. Add 1 to get threshold. + dramTh++; rankTh++; dimmTh++; + // Get MNFG counts from CE table. uint32_t dramCount = 0, rankCount = 0, dimmCount = 0; for ( auto & entry : iv_table ) @@ -132,9 +135,13 @@ uint32_t MemCeTable<T>::addEntry( const MemAddr & i_addr, // Check thresholds. Note that the thresholds are the number allowed. // So we have to compare if the counts have exceeded the thresholds. - if ( dramTh < dramCount ) o_rc |= MNFG_TH_DRAM; - if ( rankTh < rankCount ) o_rc |= MNFG_TH_RANK; - if ( dimmTh < dimmCount ) o_rc |= MNFG_TH_DIMM; + if ( dramTh <= dramCount ) o_rc |= MNFG_TH_DRAM; + if ( rankTh <= rankCount ) o_rc |= MNFG_TH_RANK; + if ( dimmTh <= dimmCount ) o_rc |= MNFG_TH_DIMM; + + PRDF_INF( "MNFG CEs per DRAM TH=%d, count=%d", dramTh, dramCount ); + PRDF_INF( "MNFG CEs per rank TH=%d, count=%d", rankTh, rankCount ); + PRDF_INF( "MNFG CEs per DIMM TH=%d, count=%d", dimmTh, dimmCount ); } // If the table is full, remove the oldest inactive entry |