summaryrefslogtreecommitdiffstats
path: root/src/include/usr
diff options
context:
space:
mode:
authorMike Baiocchi <mbaiocch@us.ibm.com>2018-03-21 09:27:49 -0500
committerDaniel M. Crowell <dcrowell@us.ibm.com>2018-03-26 13:10:16 -0400
commitfe61cf0701e0208c6fd32e328a90b1061654372c (patch)
treecfc6cb2d86d69e4c82bd8f797fbfcef7a290faa6 /src/include/usr
parenta7decd2eeff585cf534c2aeb1293a1ac02e3f049 (diff)
downloadtalos-hostboot-fe61cf0701e0208c6fd32e328a90b1061654372c.tar.gz
talos-hostboot-fe61cf0701e0208c6fd32e328a90b1061654372c.zip
Setup Node-Level Attributes for Multinode TCE Support
This commit establishes a TCE Table and allocates the necessary TCEs for each node in a multinode (ie, Fleetwood) system. It then sets the corresponding node-level TCE attributes such that the FSP can use these TCEs for PSI Diagnostics and DMAing-via-TCEs the PAYLOAD and HDAT content. Change-Id: Ibd06675ea68a9c630987765b51fdd9db631f6425 RTC:187335 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/56129 CI-Ready: Michael Baiocchi <mbaiocch@us.ibm.com> Reviewed-by: ILYA SMIRNOV <ismirno@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: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Nicholas E. Bofferding <bofferdn@us.ibm.com> Reviewed-by: Marshall J. Wilks <mjwilks@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/include/usr')
-rw-r--r--src/include/usr/targeting/targplatutil.H28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/include/usr/targeting/targplatutil.H b/src/include/usr/targeting/targplatutil.H
index fd9bf9d90..531ac014a 100644
--- a/src/include/usr/targeting/targplatutil.H
+++ b/src/include/usr/targeting/targplatutil.H
@@ -198,6 +198,34 @@ inline bool isThisMasterNodeTarget(const Target* const i_pTarget)
*/
bool isCurrentMasterNode();
+#ifndef __HOSTBOOT_RUNTIME
+/* @brief - returns the Target of the current Node
+ *
+ * @par Detailed Description:
+ * Hostboot only runs on one node at a time and this interface returns
+ * the target of this node.
+ *
+ * NOTE: Assert if more or less than 1 node is found in targeting information.
+ * NOTE: Assert if Node Target is nullptr.
+ *
+ * @return Pointer to Target of current Node
+ */
+Target* getCurrentNodeTarget(void);
+
+/* @brief - returns the physical Node Id of the current Node
+ *
+ * @par Detailed Description:
+ * Hostboot only runs on one node at a time and this interface returns
+ * the Node Id of this node as defined in its entity path.
+ *
+ * NOTE: Assert if more or less than 1 node is found in targeting information.
+ * NOTE: Assert if Node Target is nullptr.
+ *
+ * @return unit8_t indicating the Node Id of the current Node
+ */
+uint8_t getCurrentNodePhysId(void);
+#endif
+
/* @brief - Syncs the master system target's attribute with non-master system
* targets.
*
OpenPOWER on IntegriCloud