summaryrefslogtreecommitdiffstats
path: root/src/include/usr
diff options
context:
space:
mode:
authorDean Sanner <dsanner@us.ibm.com>2018-08-16 17:40:52 -0500
committerDaniel M. Crowell <dcrowell@us.ibm.com>2018-08-21 14:29:46 -0500
commit437807d50d4a3681af9d751a567d689f831b0903 (patch)
tree2f9cf5171f490aa1a1ef5714f8eab12c9b01dc7a /src/include/usr
parent15641e1a1fae0e60f9d74a5ef9ddf6f1fb6d5efc (diff)
downloadtalos-hostboot-437807d50d4a3681af9d751a567d689f831b0903.tar.gz
talos-hostboot-437807d50d4a3681af9d751a567d689f831b0903.zip
Account for mixed procs in compatibility mode
Current code enforces the same EC level for all processors in the system. However, this breaks compatibility mode for P9C 1.2/1.3 and P9N 2.2/2.3. Added code to allow these to pass the EC check when mixing parts Change-Id: Ie013d94dfdee3627911f4afbec5f65d5ce984227 CQ:SW442691 Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/64823 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/include/usr')
-rw-r--r--src/include/usr/hwas/common/hwas.H17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/include/usr/hwas/common/hwas.H b/src/include/usr/hwas/common/hwas.H
index 120ba0b7d..007eb4ffe 100644
--- a/src/include/usr/hwas/common/hwas.H
+++ b/src/include/usr/hwas/common/hwas.H
@@ -149,6 +149,23 @@ errlHndl_t checkMinimumHardware(
errlHndl_t validateProcessorEcLevels();
/**
+ * @brief Determines if passed in ECs are allowed to be mixed without error
+ *
+ * Called by validateProcessorEcLevels()
+ *
+ * @param[in] i_model: Cumulus or Nimbus
+ * @param[in] i_baseEC: EC level of primary chip
+ * @param[in] i_compareEC: EC level of to check against mixing allowed
+ *
+ * @return bool -- true if mixing allowed, otherwise false
+ * note that same EC is not mixed, thus returns false
+ */
+bool mixedECsAllowed(TARGETING::ATTR_MODEL_type i_model,
+ TARGETING::ATTR_EC_type i_baseEC,
+ TARGETING::ATTR_EC_type i_compareEC);
+
+
+/**
* @brief Struct representing a particular target. Used by
* invokePresentByAssoc to populate a vector of TargetInfo's for subsequent
* use by deconfigPresentByAssoc
OpenPOWER on IntegriCloud