diff options
Diffstat (limited to 'src/usr/isteps/istep13/call_mss_draminit_mc.C')
-rw-r--r-- | src/usr/isteps/istep13/call_mss_draminit_mc.C | 46 |
1 files changed, 21 insertions, 25 deletions
diff --git a/src/usr/isteps/istep13/call_mss_draminit_mc.C b/src/usr/isteps/istep13/call_mss_draminit_mc.C index 68d6efd6c..45a4607b6 100644 --- a/src/usr/isteps/istep13/call_mss_draminit_mc.C +++ b/src/usr/isteps/istep13/call_mss_draminit_mc.C @@ -5,7 +5,7 @@ /* */ /* OpenPOWER HostBoot Project */ /* */ -/* Contributors Listed Below - COPYRIGHT 2015 */ +/* Contributors Listed Below - COPYRIGHT 2015,2016 */ /* [+] International Business Machines Corp. */ /* */ /* */ @@ -34,6 +34,13 @@ #include <targeting/common/utilFilter.H> #include "istep13consts.H" +#include <config.h> +#include <fapi2.H> +#include <fapi2/plat_hwp_invoker.H> +//TODO RTC:152209 Implement std::enable_if in HB +// #include <p9_mss_draminit_mc.H> + + using namespace ERRORLOG; using namespace ISTEP; using namespace ISTEP_ERROR; @@ -49,41 +56,30 @@ void* call_mss_draminit_mc (void *io_pArgs) TRACDCOMP( ISTEPS_TRACE::g_trac_isteps_trace,"call_mss_draminit_mc entry" ); - // Get all centaur targets - TARGETING::TargetHandleList l_mBufTargetList; - getAllChips(l_mBufTargetList, TYPE_MEMBUF); - - // Limit the number of MBAs to run in VPO environment to save time. - uint8_t l_memBufLimit = l_mBufTargetList.size(); - if (TARGETING::is_vpo() && (VPO_NUM_OF_MEMBUF_TO_RUN < l_memBufLimit)) - { - l_memBufLimit = VPO_NUM_OF_MEMBUF_TO_RUN; - } + // Get all MCBIST + TARGETING::TargetHandleList l_mcbistTargetList; + getAllChiplets(l_mcbistTargetList, TYPE_MCBIST); - for ( uint8_t l_mBufNum=0; l_mBufNum < l_memBufLimit; l_mBufNum++ ) + for (const auto & l_mcbist_target : l_mcbistTargetList) { - const TARGETING::Target* l_membuf_target = l_mBufTargetList[l_mBufNum]; - // Dump current run on target TRACFCOMP( ISTEPS_TRACE::g_trac_isteps_trace, - "Running mss_draminit_mc HWP on " - "target HUID %.8X", TARGETING::get_huid(l_membuf_target)); - - //@TODO RTC:133831 Cast to a fapi target - //fapi::Target l_fapi_membuf_target( TARGET_TYPE_MEMBUF_CHIP, - // (const_cast<TARGETING::Target*>(l_membuf_target)) ); + "Running p9_mss_draminit_mc HWP on " + "target HUID %.8X", TARGETING::get_huid(l_mcbist_target)); - // call the HWP with each fapi::Target - //FAPI_INVOKE_HWP(l_err, mss_draminit_mc, l_fapi_membuf_target); + fapi2::Target<fapi2::TARGET_TYPE_MCBIST> l_fapi_mcbist_target + (l_mcbist_target); +//TODO RTC:152209 Implement std::enable_if in HB +// FAPI_INVOKE_HWP(l_err, p9_mss_draminit_mc, l_fapi_mcbist_target); if (l_err) { TRACFCOMP(ISTEPS_TRACE::g_trac_isteps_trace, - "ERROR 0x%.8X : mss_draminit_mc HWP returns error", + "ERROR 0x%.8X : p9_mss_draminit_mc HWP returns error", l_err->reasonCode()); // capture the target data in the elog - ErrlUserDetailsTarget(l_membuf_target).addToLog( l_err ); + ErrlUserDetailsTarget(l_mcbist_target).addToLog( l_err ); // Create IStep error log and cross reference to error that occurred l_stepError.addErrorDetails( l_err ); @@ -94,7 +90,7 @@ void* call_mss_draminit_mc (void *io_pArgs) else { TRACFCOMP( ISTEPS_TRACE::g_trac_isteps_trace, - "SUCCESS : mss_draminit_mc HWP( )" ); + "SUCCESS : p9_mss_draminit_mc HWP( )" ); } } // End; memBuf loop |