From 574346780f244fc333f4fcc407214eac3c10b9f8 Mon Sep 17 00:00:00 2001 From: Caleb Palmer Date: Thu, 14 Nov 2019 15:04:58 -0600 Subject: PRD: Update CE/UE flood threshold to reset on new ranks Change-Id: I89dce691642ebf4d753812bfae111d14c52753e3 CQ: SW480922 Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/87032 Tested-by: Jenkins Server Reviewed-by: Zane C Shelley Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/88203 Tested-by: Jenkins OP Build CI Tested-by: Jenkins OP HW Tested-by: FSP CI Jenkins --- src/usr/diag/prdf/common/plat/mem/prdfOcmbDataBundle.H | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'src/usr/diag/prdf/common/plat/mem/prdfOcmbDataBundle.H') diff --git a/src/usr/diag/prdf/common/plat/mem/prdfOcmbDataBundle.H b/src/usr/diag/prdf/common/plat/mem/prdfOcmbDataBundle.H index 499baf00c..75d7dd53e 100644 --- a/src/usr/diag/prdf/common/plat/mem/prdfOcmbDataBundle.H +++ b/src/usr/diag/prdf/common/plat/mem/prdfOcmbDataBundle.H @@ -210,8 +210,15 @@ class OcmbDataBundle : public DataBundle // These are used to limit the number of times a scrub command will stop // on a UE or CE on a rank. This is to prevent potential flooding of // maintenance UEs or CEs. The threshold will be 16 per rank for each. - ScrubResumeCounter iv_ueScrubStopCounter; - ScrubResumeCounter iv_ceScrubStopCounter; + TimeBasedThreshold iv_ueStopCounter = + TimeBasedThreshold( 16, ThresholdResolution::TEN_HOURS ); + TimeBasedThreshold iv_ceStopCounter = + TimeBasedThreshold( 16, ThresholdResolution::TEN_HOURS );; + + // If we stop on a UE or a CE, we will need to store the rank that the + // error is on so that we can clear our respective thresholds if the + // next error we stop on is on a different rank. + MemRank iv_ceUeRank; #else // IPL only -- cgit v1.2.1