diff options
author | Bill Hoffa <wghoffa@us.ibm.com> | 2016-05-19 10:50:01 -0500 |
---|---|---|
committer | Daniel M. Crowell <dcrowell@us.ibm.com> | 2016-05-19 18:00:53 -0400 |
commit | 2efebc66da0545476b674d3d7c75750e2bda3351 (patch) | |
tree | 6025ad6348366f72c46b0b64d23a6935628ded37 /src/usr/isteps/istep06 | |
parent | 45c728969d819bad53c3fb7647bfd10fb977cdd5 (diff) | |
download | talos-hostboot-2efebc66da0545476b674d3d7c75750e2bda3351.tar.gz talos-hostboot-2efebc66da0545476b674d3d7c75750e2bda3351.zip |
Final L2 HWP Cleanup for Instruction Start
Change-Id: I92a90617fbb356814740012bb0705ad5ab44a7de
RTC: 134077
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/24808
Tested-by: Jenkins Server
Reviewed-by: Michael Baiocchi <mbaiocch@us.ibm.com>
Tested-by: FSP CI Jenkins
Reviewed-by: Martin Gloff <mgloff@us.ibm.com>
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/usr/isteps/istep06')
-rw-r--r-- | src/usr/isteps/istep06/thread_activate/thread_activate.C | 24 |
1 files changed, 8 insertions, 16 deletions
diff --git a/src/usr/isteps/istep06/thread_activate/thread_activate.C b/src/usr/isteps/istep06/thread_activate/thread_activate.C index 22b90568d..aad3c2f40 100644 --- a/src/usr/isteps/istep06/thread_activate/thread_activate.C +++ b/src/usr/isteps/istep06/thread_activate/thread_activate.C @@ -37,7 +37,7 @@ #include <stdint.h> #include <initservice/taskargs.H> -#include <initservice/initserviceif.H> // @TODO RTC:149103 @TODO RTC:134077 +#include <initservice/initserviceif.H> // @TODO RTC:149103 #include <errl/errlentry.H> #include <devicefw/userif.H> @@ -354,13 +354,6 @@ void activate_threads( errlHndl_t& io_rtaskRetErrl ) max_threads, en_threads ); uint8_t thread_bitset = 0; - // @TODO RTC:134077 Should not need to handle zero case when - // attribute is set by intrrp - if( en_threads ) - { - TRACFCOMP( g_fapiTd, - "Handling special enable threads attribute case" ); - } for( uint64_t thread = 0; thread < max_threads; thread++ ) { // Skip the thread that we're running on @@ -373,9 +366,7 @@ void activate_threads( errlHndl_t& io_rtaskRetErrl ) } // Skip threads that we shouldn't be starting - // @TODO RTC:134077 Should not need to handle zero case when - // attribute is set by intrrp - if( en_threads && !(en_threads & (0x8000000000000000>>thread)) ) + if(!(en_threads & (0x8000000000000000>>thread))) { TRACDCOMP( g_fapiTd, "activate_threads skipping thread=%d", thread ); @@ -410,25 +401,26 @@ void activate_threads( errlHndl_t& io_rtaskRetErrl ) // o_state => N/A - Output state not used for // PTC_CMD_SRESET command // - //TODO RTC 134077 Revisit use of status and threadState - fapi2::buffer<uint64_t> l_status = 0; + fapi2::buffer<uint64_t> l_rasStatus = 0; uint64_t l_threadState = 0; FAPI_INVOKE_HWP( l_errl, p9_thread_control, l_fapiCore, //i_target thread_bitset, //i_threads PTC_CMD_SRESET, //i_command false, //i_warncheck - l_status, //o_rasStatusReg + l_rasStatus, //o_rasStatusReg l_threadState); //o_state if ( l_errl != NULL ) { TRACFCOMP( g_fapiImpTd, "ERROR: 0x%.8X : proc_thread_control HWP" - "( cpu %d, thread_bitset 0x%02X )", + "( cpu %d, thread_bitset 0x%02X, " + "l_rasStatus 0x%lx )", l_errl->reasonCode(), l_masterCoreID, - thread_bitset ); + thread_bitset, + l_rasStatus ); l_errl->collectTrace(FAPI_TRACE_NAME,256); l_errl->collectTrace(FAPI_IMP_TRACE_NAME,256); |