summaryrefslogtreecommitdiffstats
path: root/src/usr/diag/mdia/mdia.C
diff options
context:
space:
mode:
authorChris Phan <cphan@us.ibm.com>2013-07-24 10:44:25 -0500
committerA. Patrick Williams III <iawillia@us.ibm.com>2013-08-09 13:35:51 -0500
commit7b0dcb2cc3a80cb09aa2af5d4cd2f2673c7146a6 (patch)
tree6b0c9593073229e92bf0d716086095ea446133ee /src/usr/diag/mdia/mdia.C
parent5b6ce29d510f5393728ab8bdfdf6d90a26bf1d0c (diff)
downloadtalos-hostboot-7b0dcb2cc3a80cb09aa2af5d4cd2f2673c7146a6.tar.gz
talos-hostboot-7b0dcb2cc3a80cb09aa2af5d4cd2f2673c7146a6.zip
MDIA: add hcdb/HWAS_CHANGED_BIT_MEMDIAG support
Also add check for the new ATTR_RUN_MAX_MEM_PATTERNS Change-Id: I343f1054cf657e06cea688f0a87340bdd32f01f2 RTC: 38367 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/5548 Tested-by: Jenkins Server Reviewed-by: Zane Shelley <zshelle@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/usr/diag/mdia/mdia.C')
-rw-r--r--src/usr/diag/mdia/mdia.C11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/usr/diag/mdia/mdia.C b/src/usr/diag/mdia/mdia.C
index c14bec331..cafc276fb 100644
--- a/src/usr/diag/mdia/mdia.C
+++ b/src/usr/diag/mdia/mdia.C
@@ -56,6 +56,17 @@ errlHndl_t runStep(const TargetHandleList & i_targetList)
if(top)
{
globals.mfgPolicy = top->getAttr<ATTR_MNFG_FLAGS>();
+
+ uint8_t maxMemPatterns =
+ top->getAttr<ATTR_RUN_MAX_MEM_PATTERNS>();
+
+ // This registry / attr is the same as the
+ // exhaustive mnfg one
+ if(maxMemPatterns)
+ {
+ globals.mfgPolicy |=
+ MNFG_FLAG_BIT_MNFG_ENABLE_EXHAUSTIVE_PATTERN_TEST;
+ }
}
// get the workflow for each target mba passed in.
OpenPOWER on IntegriCloud