summaryrefslogtreecommitdiffstats
path: root/src/include/usr/hwas/common
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/usr/hwas/common')
-rw-r--r--src/include/usr/hwas/common/hwas.H11
-rw-r--r--src/include/usr/hwas/common/hwasCommon.H11
-rw-r--r--src/include/usr/hwas/common/hwas_reasoncodes.H3
3 files changed, 25 insertions, 0 deletions
diff --git a/src/include/usr/hwas/common/hwas.H b/src/include/usr/hwas/common/hwas.H
index 138a51887..7289b8ecb 100644
--- a/src/include/usr/hwas/common/hwas.H
+++ b/src/include/usr/hwas/common/hwas.H
@@ -138,6 +138,17 @@ errlHndl_t checkMinimumHardware(
bool *o_bootable = NULL);
/**
+* @brief Loop through processors, make sure all have the same EC level
+* create an error log for any slave processor that does not match
+* the master's EC level
+*
+*
+* @return errlHndl_t Error returned will be a summary of all errors that
+* occurred during the procedure, all PLIDs should match
+*/
+errlHndl_t validateProcessorEcLevels();
+
+/**
* @brief Struct representing a particular target. Used by
* invokePresentByAssoc to populate a vector of TargetInfo's for subsequent
* use by deconfigPresentByAssoc
diff --git a/src/include/usr/hwas/common/hwasCommon.H b/src/include/usr/hwas/common/hwasCommon.H
index 7462571b4..946d2c7a8 100644
--- a/src/include/usr/hwas/common/hwasCommon.H
+++ b/src/include/usr/hwas/common/hwasCommon.H
@@ -348,6 +348,17 @@ void hwasErrorAddProcedureCallout(errlHndl_t & io_errl,
const HWAS::callOutPriority i_priority);
/**
+ * @brief wrapper function to add a procedure callout to an error log in a
+ * platform-specific manner.
+ *
+ */
+void platHwasErrorAddHWCallout(errlHndl_t & io_errl,
+ const TARGETING::ConstTargetHandle_t i_target,
+ const HWAS::callOutPriority i_priority,
+ const HWAS::DeconfigEnum i_deconfigState,
+ const HWAS::GARD_ErrorType i_gardErrorType);
+
+/**
* @brief wrapper function to update the plid in a platform-specific manner.
*
* If io_plid is non-zero then io_errl is updated with io_plid
diff --git a/src/include/usr/hwas/common/hwas_reasoncodes.H b/src/include/usr/hwas/common/hwas_reasoncodes.H
index 729743162..09d90a796 100644
--- a/src/include/usr/hwas/common/hwas_reasoncodes.H
+++ b/src/include/usr/hwas/common/hwas_reasoncodes.H
@@ -33,6 +33,7 @@ namespace HWAS
MOD_PROCESS_CALLOUT = 0x02,
MOD_CHECK_MIN_HW = 0x03,
MOD_DECONFIG_TARGETS_FROM_GARD = 0x04,
+ MOD_VALIDATE_EC_LEVELS = 0x05,
};
enum HwasReasonCode
@@ -55,6 +56,8 @@ namespace HWAS
RC_SYSAVAIL_MISSING_CRITICAL_RESOURCE = HWAS_COMP_ID | 0x0B,
RC_SYSAVAIL_NO_MCAS_FUNC = HWAS_COMP_ID | 0x0C,
RC_SYSAVAIL_NO_NX_FUNC = HWAS_COMP_ID | 0x0E,
+ RC_EC_MISMATCH = HWAS_COMP_ID | 0x0F,
+ RC_FAILED_EC_VALIDATION = HWAS_COMP_ID | 0x10,
};
};
OpenPOWER on IntegriCloud