diff options
author | Brad Bishop <bradleyb@us.ibm.com> | 2013-02-07 15:14:06 -0500 |
---|---|---|
committer | A. Patrick Williams III <iawillia@us.ibm.com> | 2013-02-13 08:53:33 -0600 |
commit | 35d10a9e476379f5a69c29cda752e0639abcef05 (patch) | |
tree | 6df6396bc148be70c46bb0c845e3bb2ae8abb484 /src | |
parent | 0ace043e6f4df6ce20d32524923e732a185853bf (diff) | |
download | talos-hostboot-35d10a9e476379f5a69c29cda752e0639abcef05.tar.gz talos-hostboot-35d10a9e476379f5a69c29cda752e0639abcef05.zip |
MDIA: Support for MFG specified number of patterns
Change-Id: Ifa9c6f738942f0cbfdc04478bf3bc027715339cc
RTC: 38363
Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/3123
Reviewed-by: Zane Shelley <zshelle@us.ibm.com>
Tested-by: Jenkins Server
Reviewed-by: Christopher T. Phan <cphan@us.ibm.com>
Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/usr/diag/mdia/mdia.C | 54 | ||||
-rw-r--r-- | src/usr/diag/mdia/mdiamba.C | 22 |
2 files changed, 48 insertions, 28 deletions
diff --git a/src/usr/diag/mdia/mdia.C b/src/usr/diag/mdia/mdia.C index 4c356c60d..026cd72cc 100644 --- a/src/usr/diag/mdia/mdia.C +++ b/src/usr/diag/mdia/mdia.C @@ -1,26 +1,25 @@ -/* IBM_PROLOG_BEGIN_TAG - * This is an automatically generated prolog. - * - * $Source: src/usr/diag/mdia/mdia.C $ - * - * IBM CONFIDENTIAL - * - * COPYRIGHT International Business Machines Corp. 2012 - * - * p1 - * - * Object Code Only (OCO) source materials - * Licensed Internal Code Source Materials - * IBM HostBoot Licensed Internal Code - * - * The source code for this program is not published or other- - * wise divested of its trade secrets, irrespective of what has - * been deposited with the U.S. Copyright Office. - * - * Origin: 30 - * - * IBM_PROLOG_END_TAG - */ +/* IBM_PROLOG_BEGIN_TAG */ +/* This is an automatically generated prolog. */ +/* */ +/* $Source: src/usr/diag/mdia/mdia.C $ */ +/* */ +/* IBM CONFIDENTIAL */ +/* */ +/* COPYRIGHT International Business Machines Corp. 2012,2013 */ +/* */ +/* p1 */ +/* */ +/* Object Code Only (OCO) source materials */ +/* Licensed Internal Code Source Materials */ +/* IBM HostBoot Licensed Internal Code */ +/* */ +/* The source code for this program is not published or otherwise */ +/* divested of its trade secrets, irrespective of what has been */ +/* deposited with the U.S. Copyright Office. */ +/* */ +/* Origin: 30 */ +/* */ +/* IBM_PROLOG_END_TAG */ /** * @file mdia.C * @brief mdia entry points, utility function implementations @@ -32,6 +31,7 @@ #include "mdiasm.H" #include "mdiasmimpl.H" #include <util/singleton.H> +#include <targeting/common/targetservice.H> using namespace TARGETING; using namespace Util; @@ -50,6 +50,14 @@ errlHndl_t runStep(const TargetHandleList & i_targetList) Globals globals; + TargetHandle_t top = 0; + targetService().getTopLevelTarget(top); + + if(top) + { + globals.mfgPolicy = top->getAttr<ATTR_MNFG_FLAGS>(); + } + // get the workflow for each target mba passed in. // associate each workflow with the target handle. diff --git a/src/usr/diag/mdia/mdiamba.C b/src/usr/diag/mdia/mdiamba.C index 0b41ec7cf..fdac9f11d 100644 --- a/src/usr/diag/mdia/mdiamba.C +++ b/src/usr/diag/mdia/mdiamba.C @@ -5,7 +5,7 @@ /* */ /* IBM CONFIDENTIAL */ /* */ -/* COPYRIGHT International Business Machines Corp. 2012 */ +/* COPYRIGHT International Business Machines Corp. 2012,2013 */ /* */ /* p1 */ /* */ @@ -39,13 +39,25 @@ errlHndl_t getMbaDiagnosticMode( TargetHandle_t i_mba, DiagMode & o_mode) { - // TODO ... stubbed + o_mode = INIT_ONLY; - // make hardware changed service queries here... + if(MNFG_FLAG_BIT_MNFG_ENABLE_EXHAUSTIVE_PATTERN_TEST + & i_globals.mfgPolicy) + { + o_mode = NINE_PATTERNS; + } - // check mfg / user / system policy here... + else if(MNFG_FLAG_BIT_MNFG_ENABLE_STANDARD_PATTERN_TEST + & i_globals.mfgPolicy) + { + o_mode = FOUR_PATTERNS; + } - o_mode = INIT_ONLY; + else if(MNFG_FLAG_BIT_MNFG_ENABLE_MINIMUM_PATTERN_TEST + & i_globals.mfgPolicy) + { + o_mode = ONE_PATTERN; + } return 0; } |