diff options
author | Mike Baiocchi <mbaiocch@us.ibm.com> | 2016-11-04 11:30:17 -0500 |
---|---|---|
committer | William G. Hoffa <wghoffa@us.ibm.com> | 2017-03-08 11:06:34 -0500 |
commit | c3d233bbaf7a2f274147d16edbc080bae0ffd714 (patch) | |
tree | 8058bc8e764135eecc21cdcd1177814dd4e180c8 /src/usr/isteps | |
parent | 1301e43641f7d3f315a0abc8112fa88927c9fa9a (diff) | |
download | talos-hostboot-c3d233bbaf7a2f274147d16edbc080bae0ffd714.tar.gz talos-hostboot-c3d233bbaf7a2f274147d16edbc080bae0ffd714.zip |
Hostboot Base TCE Support
This commit adds the base support for hostboot to enable/disable the
use of TCEs. It allows for the creation and managment of a TCE table
and also initializes the P9 processors to use this table.
Change-Id: Idb40f9df5a90d8b7e87b2f5b745cbe7e66109df2
RTC:145071
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/32562
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Reviewed-by: Stephen M. Cprek <smcprek@us.ibm.com>
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Reviewed-by: Marshall J. Wilks <mjwilks@us.ibm.com>
Reviewed-by: Nicholas E. Bofferding <bofferdn@us.ibm.com>
Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com>
Reviewed-by: William G. Hoffa <wghoffa@us.ibm.com>
Diffstat (limited to 'src/usr/isteps')
-rw-r--r-- | src/usr/isteps/istep16/call_host_ipl_complete.C | 15 | ||||
-rw-r--r-- | src/usr/isteps/istep21/call_host_runtime_setup.C | 29 |
2 files changed, 43 insertions, 1 deletions
diff --git a/src/usr/isteps/istep16/call_host_ipl_complete.C b/src/usr/isteps/istep16/call_host_ipl_complete.C index 30857d73c..1242367ef 100644 --- a/src/usr/isteps/istep16/call_host_ipl_complete.C +++ b/src/usr/isteps/istep16/call_host_ipl_complete.C @@ -44,6 +44,7 @@ #include <targeting/attrrp.H> #include <sys/internode.h> #include <runtime/runtime.H> +#include <util/utiltce.H> using namespace ERRORLOG; using namespace TARGETING; @@ -63,6 +64,20 @@ void* call_host_ipl_complete (void *io_pArgs) "call_host_ipl_complete entry" ); do { + // Setup the TCEs needed for the FSP to DMA the PAYLOAD +/* @TODO RTC 168745 - make this call when FSP is ready for TCE Support + * and add check that we're on a FSP system + * NOTE: add check to do this only on FSP-based systems + * l_err = TCE::utilSetupPayloadTces(); + * + * if( l_err ) + * { + * TRACFCOMP( ISTEPS_TRACE::g_trac_isteps_trace, + * ERR_MRK"TCE::utilSetupPayloadTces failed"); + * break; + * } + */ + // Initialize the RUNTIME DATA attributes // that HDAT needs to allocate memory for us. // ----------------------------------------- diff --git a/src/usr/isteps/istep21/call_host_runtime_setup.C b/src/usr/isteps/istep21/call_host_runtime_setup.C index 4d4a85220..06b606ab2 100644 --- a/src/usr/isteps/istep21/call_host_runtime_setup.C +++ b/src/usr/isteps/istep21/call_host_runtime_setup.C @@ -37,6 +37,7 @@ #include <runtime/customize_attrs_for_payload.H> #include <targeting/common/util.H> #include <vpd/vpd_if.H> +#include <util/utiltce.H> //SBE interfacing #include <sbeio/sbeioif.H> @@ -254,12 +255,38 @@ void* call_host_runtime_setup (void *io_pArgs) } #endif + // Close PAYLOAD TCEs +/* @TODO RTC 168745 - make this call when FSP is ready for TCE Support + * and add check that we're on a FSP system + * NOTE: move this call to the start of this function + * NOTE: add check to do this only on FSP-based systems + * l_err = TCE::utilClosePayloadTces(); + * if ( l_err ) + * { + * TRACFCOMP( ISTEPS_TRACE::g_trac_isteps_trace, + * "Failed TCE::utilClosePayloadTces" ); + * // break from do loop if error occured + * break; + * } + * + * + * // Disable all TCEs + * l_err = TCE::utilDisableTces(); + * if ( l_err ) + * { + * TRACFCOMP( ISTEPS_TRACE::g_trac_isteps_trace, + * "Failed TCE::utilDisableTces" ); + * // break from do loop if error occured + * break; + * } + */ + } while(0); if( l_err ) { TRACFCOMP( ISTEPS_TRACE::g_trac_isteps_trace, - "istep start_payload_failed see plid 0x%x", l_err->plid()); + "istep host_runtime_setup failed see plid 0x%x", l_err->plid()); // Create IStep error log and cross reference error that occurred l_StepError.addErrorDetails( l_err ); |