summaryrefslogtreecommitdiffstats
path: root/src/include
diff options
context:
space:
mode:
authorRick Ward <rward15@us.ibm.com>2018-03-06 09:46:52 -0600
committerDaniel M. Crowell <dcrowell@us.ibm.com>2018-03-22 14:12:09 -0400
commita48f950445f16417996399d0630b485b84c1203c (patch)
treeec56124075f66fc901559b5d5ae3a4c3c54e5b5e /src/include
parentbbe9dd41d809fa8c9c02b318ca4b0f315c4680ac (diff)
downloadtalos-hostboot-a48f950445f16417996399d0630b485b84c1203c.tar.gz
talos-hostboot-a48f950445f16417996399d0630b485b84c1203c.zip
Dump collection should only be run on the master node and skipped on slaves.
Added an attribute, IS_MASTER_DRAWER, and a utility function, isCurrentMasterNode(). The attribute is set in host_sys_fab_iovalid_processing which is called during istep 18.9. isCurrentMasterNode() is called by call_host_mpipl_service() to ensure that memory dump collection is only performed on the master node during a MPIPL. Change-Id: I7fd48476c3cd7cf4697eafed6705d158a9c54dcf RTC: 116089 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/55162 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Prachi Gupta <pragupta@us.ibm.com> Reviewed-by: Michael Baiocchi <mbaiocch@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/include')
-rw-r--r--src/include/usr/targeting/targplatutil.H16
1 files changed, 15 insertions, 1 deletions
diff --git a/src/include/usr/targeting/targplatutil.H b/src/include/usr/targeting/targplatutil.H
index 198be1423..fd9bf9d90 100644
--- a/src/include/usr/targeting/targplatutil.H
+++ b/src/include/usr/targeting/targplatutil.H
@@ -5,7 +5,7 @@
/* */
/* OpenPOWER HostBoot Project */
/* */
-/* Contributors Listed Below - COPYRIGHT 2013,2017 */
+/* Contributors Listed Below - COPYRIGHT 2013,2018 */
/* [+] International Business Machines Corp. */
/* */
/* */
@@ -184,6 +184,20 @@ inline bool isThisMasterNodeTarget(const Target* const i_pTarget)
return true;
}
+/* @brief - returns whether the current node is the master node
+ *
+ * @par Detailed Description:
+ * Checks whether the current node is the master node. If yes, returns
+ * true to the user, else false. Master node is not determined until
+ * istep 18.9, so this function will return false before then except
+ * in the case of a MPIPL (second pass).
+ *
+ * @return boolean indicating whether request was successful or not
+ * @retval, Returns true if the current node is the master node
+ * @retval, Returns false if the current node is not the master node
+ */
+bool isCurrentMasterNode();
+
/* @brief - Syncs the master system target's attribute with non-master system
* targets.
*
OpenPOWER on IntegriCloud