diff options
Diffstat (limited to 'src/usr/hwas')
-rw-r--r-- | src/usr/hwas/common/deconfigGard.C | 11 | ||||
-rw-r--r-- | src/usr/hwas/hwasPlat.C | 11 |
2 files changed, 21 insertions, 1 deletions
diff --git a/src/usr/hwas/common/deconfigGard.C b/src/usr/hwas/common/deconfigGard.C index 9c1fe7bb1..a5a042b34 100644 --- a/src/usr/hwas/common/deconfigGard.C +++ b/src/usr/hwas/common/deconfigGard.C @@ -274,13 +274,22 @@ errlHndl_t DeconfigGard::deconfigureTargetsFromGardRecordsForIpl( //****************************************************************************** errlHndl_t DeconfigGard::deconfigureTarget(TARGETING::Target & i_target, - const uint32_t i_errlPlid) + const uint32_t i_errlPlid, + bool i_evenAtRunTime) { HWAS_INF("Usr Request: Deconfigure Target"); errlHndl_t l_pErr = NULL; do { + // Do not deconfig Target if we're NOT being asked to force AND + // the is System is at runtime + if (!i_evenAtRunTime && platSystemIsAtRuntime()) + { + HWAS_INF("Skipping deconfigTarget - System at Runtime"); + break; + } + const uint8_t lDeconfigGardable = i_target.getAttr<TARGETING::ATTR_DECONFIG_GARDABLE>(); const uint8_t lPresent = diff --git a/src/usr/hwas/hwasPlat.C b/src/usr/hwas/hwasPlat.C index a572501e6..864e01551 100644 --- a/src/usr/hwas/hwasPlat.C +++ b/src/usr/hwas/hwasPlat.C @@ -119,6 +119,17 @@ errlHndl_t platReadIDEC(const TargetHandle_t &i_target) } // platReadIDEC //****************************************************************************** +// platSystemIsAtRuntime function +// Description: This function will return false always because when Hostboot +// is running then System cannot be at runtime +//****************************************************************************** +bool platSystemIsAtRuntime() +{ + HWAS_INF("HostBoot is running so system is not at runtime."); + return false; +} + +//****************************************************************************** // platReadPartialGood function //****************************************************************************** errlHndl_t platReadPartialGood(const TargetHandle_t &i_target, |