diff options
Diffstat (limited to 'src/usr/isteps/istep13/call_mem_startclocks.C')
-rw-r--r-- | src/usr/isteps/istep13/call_mem_startclocks.C | 35 |
1 files changed, 19 insertions, 16 deletions
diff --git a/src/usr/isteps/istep13/call_mem_startclocks.C b/src/usr/isteps/istep13/call_mem_startclocks.C index 47ed80a6a..f83dbf192 100644 --- a/src/usr/isteps/istep13/call_mem_startclocks.C +++ b/src/usr/isteps/istep13/call_mem_startclocks.C @@ -5,7 +5,7 @@ /* */ /* OpenPOWER HostBoot Project */ /* */ -/* Contributors Listed Below - COPYRIGHT 2015 */ +/* Contributors Listed Below - COPYRIGHT 2015,2016 */ /* [+] International Business Machines Corp. */ /* */ /* */ @@ -28,10 +28,19 @@ #include <isteps/hwpisteperror.H> #include <initservice/isteps_trace.H> +//HWP Invoker +#include <fapi2/plat_hwp_invoker.H> + + // targeting support #include <targeting/common/commontargeting.H> #include <targeting/common/util.H> #include <targeting/common/utilFilter.H> +#include <fapi2/target.H> + +//From Import Directory (EKB Repository) +#include <p9_mem_startclocks.H> + using namespace ERRORLOG; using namespace ISTEP; @@ -49,28 +58,22 @@ void* call_mem_startclocks (void *io_pArgs) TRACDCOMP(ISTEPS_TRACE::g_trac_isteps_trace,"call_mem_startclocks entry" ); // Get all Centaur targets - TARGETING::TargetHandleList l_membufTargetList; - getAllChips(l_membufTargetList, TYPE_MEMBUF); + TARGETING::TargetHandleList l_procTargetList; + getAllChips(l_procTargetList, TYPE_PROC); - for (TargetHandleList::const_iterator - l_membuf_iter = l_membufTargetList.begin(); - l_membuf_iter != l_membufTargetList.end(); - ++l_membuf_iter) + for (const auto & l_procChip: l_procTargetList) { - // make a local copy of the target for ease of use - const TARGETING::Target* l_pCentaur = *l_membuf_iter; - // Dump current run on target TRACFCOMP( ISTEPS_TRACE::g_trac_isteps_trace, "Running cen_mem_startclocks HWP on " - "target HUID %.8X", TARGETING::get_huid(l_pCentaur)); + "target HUID %.8X", TARGETING::get_huid(l_procChip)); - //@TODO RTC:133831 Cast to a FAPI type of target. - //const fapi::Target l_fapi_centaur( TARGET_TYPE_MEMBUF_CHIP, - // (const_cast<TARGETING::Target*>(l_pCentaur)) ); + const fapi2::Target<fapi2::TARGET_TYPE_PROC_CHIP> + l_fapi2_procChip( l_procChip); +//@TODO RTC:152210 Enable Istep 13 HWPs that are waiting on mirrored files // call the HWP with each fapi::Target - //FAPI_INVOKE_HWP(l_err, cen_mem_startclocks, l_fapi_centaur); +// FAPI_INVOKE_HWP(l_err, p9_mem_startclocks, l_fapi2_procChip); if (l_err) { @@ -79,7 +82,7 @@ void* call_mem_startclocks (void *io_pArgs) l_err->reasonCode()); // capture the target data in the elog - ErrlUserDetailsTarget(l_pCentaur).addToLog(l_err); + ErrlUserDetailsTarget(l_procChip).addToLog(l_err); //Create IStep error log and cross reference to error that occurred l_StepError.addErrorDetails( l_err ); |