From b0a9a93e45dd2338935e64c6604d41f18984b0bc Mon Sep 17 00:00:00 2001 From: Mike Baiocchi Date: Thu, 5 Oct 2017 14:19:07 -0500 Subject: 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 Reviewed-by: Nicholas E. Bofferding Tested-by: Jenkins Server Tested-by: Jenkins OP Build CI Tested-by: Jenkins OP HW Tested-by: FSP CI Jenkins Reviewed-by: William G. Hoffa --- src/include/usr/util/utiltce.H | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'src/include') 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 -- cgit v1.2.1