summaryrefslogtreecommitdiffstats
path: root/src/include
diff options
context:
space:
mode:
authorMike Baiocchi <mbaiocch@us.ibm.com>2018-05-16 10:42:04 -0500
committerDaniel M. Crowell <dcrowell@us.ibm.com>2018-05-18 10:05:18 -0400
commit8e8b74fdbd588872c346a6b1038f07e9c561406d (patch)
tree0b8f1ce657398601c6bafec5bd7df5a0f593ead4 /src/include
parent79e4184e41b7d2e92bcc6bc6155007d85310406b (diff)
downloadtalos-hostboot-8e8b74fdbd588872c346a6b1038f07e9c561406d.tar.gz
talos-hostboot-8e8b74fdbd588872c346a6b1038f07e9c561406d.zip
Add option to masterProcChipTargetHandle() to return functional chip
This commit adds an option to the two masterProcChipTargetHandle() functions to only look for and return a functional master proc chip as necessary with the issue in Defect SW424528. The default behavior of these functions - where the functionality is not checked - remains the same. Once use of these functions has also been updated to use this new option. Change-Id: I37049d2cb9299a9404b57d85031a364bdb257c82 CQ:SW424528 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/58920 Reviewed-by: Nicholas E. Bofferding <bofferdn@us.ibm.com> Reviewed-by: Marshall J. Wilks <mjwilks@us.ibm.com> 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: Sachin Gupta <sgupta2m@in.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/include')
-rw-r--r--src/include/usr/targeting/common/targetservice.H17
1 files changed, 15 insertions, 2 deletions
diff --git a/src/include/usr/targeting/common/targetservice.H b/src/include/usr/targeting/common/targetservice.H
index 82001c0ae..4fee83b92 100644
--- a/src/include/usr/targeting/common/targetservice.H
+++ b/src/include/usr/targeting/common/targetservice.H
@@ -421,6 +421,12 @@ class TargetService
* processor. If NULL, HB will search whatever node it's
* running on, and FSP will search the physical drawer containing
* the lowest ordered fabric node ID. *
+ * @param[in] i_onlyFunctional
+ * Specifies whether to limit the search to only functional chips.
+ * If true, will only return a functional chip. If false, which
+ * is the default, the functional state of the chips are not
+ * checked.
+ *
* @pre Target Service must be initialized
*
* @post Master processor chip target returned or NULL is returned if
@@ -429,7 +435,8 @@ class TargetService
*/
void masterProcChipTargetHandle(
Target*& o_masterProcChipTargetHandle,
- const Target* i_pNodeTarget = NULL) const;
+ const Target* i_pNodeTarget = NULL,
+ const bool i_onlyFunctional = false) const;
/**
* @brief Returns the master processor chip target handle
@@ -450,6 +457,11 @@ class TargetService
* Target handle of node to search. If NULL, HB will search
* whatver node it's running on, andFSP will search the physical
* drawer containing the lowest orderd fabric node ID
+ * @param[in] i_onlyFunctional
+ * Specifies whether to limit the search to only functional chips.
+ * If true, will only return a functional chip. If false, which
+ * is the default, the functional state of the chips are not
+ * checked.
*
* @pre Target Service must be initialized
*
@@ -465,7 +477,8 @@ class TargetService
*/
errlHndl_t queryMasterProcChipTargetHandle(
Target*& o_masterProcChipTargetHandle,
- const Target* i_pNodeTarget = NULL) const;
+ const Target* i_pNodeTarget = NULL,
+ const bool i_onlyFunctional = false) const;
/**
* @brief Returns whether the specified entity path attribute exists
OpenPOWER on IntegriCloud