summaryrefslogtreecommitdiffstats
path: root/src/include
diff options
context:
space:
mode:
authorMike Baiocchi <mbaiocch@us.ibm.com>2017-10-05 14:19:07 -0500
committerWilliam G. Hoffa <wghoffa@us.ibm.com>2017-11-06 09:36:00 -0500
commitb0a9a93e45dd2338935e64c6604d41f18984b0bc (patch)
tree713e91eafc971dcec85ec07e19e341ad243f26d2 /src/include
parent276c45cf2da6e6e4a6b1fe1d4765dd222578b4ff (diff)
downloadtalos-hostboot-b0a9a93e45dd2338935e64c6604d41f18984b0bc.tar.gz
talos-hostboot-b0a9a93e45dd2338935e64c6604d41f18984b0bc.zip
Add Functionality To Allow FSP to Enable TCEs For Testing
This commit adds an attribute that the FSP team can use to tell Hostboot to enable the TCE path for DMAs. When the FSP sets this attribute, the hostboot code will initialize the TCE settings. Change-Id: I24c71f31264645cac5840caad1b59b90fe465fb4 RTC:168745 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/48036 Reviewed-by: Stephen M. Cprek <smcprek@us.ibm.com> Reviewed-by: Nicholas E. Bofferding <bofferdn@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: William G. Hoffa <wghoffa@us.ibm.com>
Diffstat (limited to 'src/include')
-rw-r--r--src/include/usr/util/utiltce.H22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/include/usr/util/utiltce.H b/src/include/usr/util/utiltce.H
index bcaeecbca..f71946fee 100644
--- a/src/include/usr/util/utiltce.H
+++ b/src/include/usr/util/utiltce.H
@@ -106,6 +106,28 @@ errlHndl_t utilSetupPayloadTces(void);
*/
errlHndl_t utilClosePayloadTces(void);
+/******************************************************/
+/* Miscellaneous Functions */
+/******************************************************/
+
+/**
+ * @brief Indicates if TCEs should be used for DMA path on the system
+ *
+ * @return bool - TRUE if TCEs should be used; False, if not
+ *
+ */
+bool utilUseTcesForDmas(void);
+
+/**
+ * @brief Enables the System to use TCEs without setting up a TCE Table.
+ * This prevents the FSP from using unsecure DMAs during the IPL until
+ * Hostboot sets up the TCE Table with proper TCEs.
+ *
+ * @return errlHndl_t - Return Error Handle if failed
+ *
+ */
+errlHndl_t utilEnableTcesWithoutTceTable(void);
+
};
#endif
OpenPOWER on IntegriCloud