From a48f950445f16417996399d0630b485b84c1203c Mon Sep 17 00:00:00 2001 From: Rick Ward Date: Tue, 6 Mar 2018 09:46:52 -0600 Subject: 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 Tested-by: Jenkins OP Build CI Tested-by: Jenkins OP HW Tested-by: FSP CI Jenkins Reviewed-by: Prachi Gupta Reviewed-by: Michael Baiocchi Reviewed-by: Daniel M. Crowell --- src/include/usr/targeting/targplatutil.H | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'src/include') 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. * -- cgit v1.2.1