diff options
author | Van Lee <vanlee@us.ibm.com> | 2012-05-16 19:55:35 -0500 |
---|---|---|
committer | A. Patrick Williams III <iawillia@us.ibm.com> | 2012-06-06 17:05:08 -0500 |
commit | 068764225969bfd45cc47ad1e6f2d00a2d7331f2 (patch) | |
tree | 76a8e24f2846736488c26b61cc3d4243e44675e5 /src/usr/hwpf/hwp/sbe_centaur_init | |
parent | 200c99f2adcf88697a2fce80becee61ef405094d (diff) | |
download | blackbird-hostboot-068764225969bfd45cc47ad1e6f2d00a2d7331f2.tar.gz blackbird-hostboot-068764225969bfd45cc47ad1e6f2d00a2d7331f2.zip |
Pick up latest mss_eff_config HWP
Implemented util functions getAllChips, getAllChiplets, getChildChiplets,
getAffinityChips.
RTC: 41712
Change-Id: I625695a85d768e03365a91fb44b4f9d6525a4276
Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/1073
Tested-by: Jenkins Server
Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/usr/hwpf/hwp/sbe_centaur_init')
-rw-r--r-- | src/usr/hwpf/hwp/sbe_centaur_init/sbe_centaur_init.C | 23 |
1 files changed, 6 insertions, 17 deletions
diff --git a/src/usr/hwpf/hwp/sbe_centaur_init/sbe_centaur_init.C b/src/usr/hwpf/hwp/sbe_centaur_init/sbe_centaur_init.C index 4530cb9c5..dfe64e1ed 100644 --- a/src/usr/hwpf/hwp/sbe_centaur_init/sbe_centaur_init.C +++ b/src/usr/hwpf/hwp/sbe_centaur_init/sbe_centaur_init.C @@ -42,6 +42,7 @@ #include <errl/errlentry.H> #include <initservice/isteps_trace.H> #include <targeting/common/commontargeting.H> +#include <targeting/common/utilFilter.H> #include <fapi.H> #include <fapiPoreVeArg.H> #include <fapiTarget.H> @@ -82,20 +83,8 @@ void call_cen_sbe_tp_chiplet_init1( void *io_pArgs ) TRACDCOMP( ISTEPS_TRACE::g_trac_isteps_trace, "call_cen_sbe_tp_chiplet_init1 entry" ); // Get target list to pass in procedure - - // Use PredicateIsFunctional to filter only functional chips - TARGETING::PredicateIsFunctional l_isFunctional; - // filter for functional Centaur Chips - TARGETING::PredicateCTM l_membufChipFilter(CLASS_CHIP, TYPE_MEMBUF); - // declare a postfix expression widget - TARGETING::PredicatePostfixExpr l_functionalAndMembufChipFilter; - // is-a-membuf-chip is-functional AND - l_functionalAndMembufChipFilter.push(&l_membufChipFilter).push(&l_isFunctional).And(); - // loop through all the targets, applying the filter, and put the results in l_pMemBufs - TARGETING::TargetRangeFilter l_pMemBufs( - TARGETING::targetService().begin(), - TARGETING::targetService().end(), - &l_functionalAndMembufChipFilter ); + TARGETING::TargetHandleList l_membufTargetList; + getAllChips(l_membufTargetList, TYPE_MEMBUF); bool l_unloadSbePnorImg = false; size_t l_sbePnorSize = 0; @@ -165,10 +154,10 @@ void call_cen_sbe_tp_chiplet_init1( void *io_pArgs ) myArgs.push_back(fapiArg); // Loop thru all Centaurs in list - for ( ; l_pMemBufs; ++l_pMemBufs ) + for ( size_t i = 0; i < l_membufTargetList.size(); i++ ) { // Create a FAPI Target - const TARGETING::Target* l_membuf_target = *l_pMemBufs; + const TARGETING::Target* l_membuf_target = l_membufTargetList[i]; const fapi::Target l_fapiTarget( fapi::TARGET_TYPE_MEMBUF_CHIP, reinterpret_cast<void *> @@ -214,7 +203,7 @@ void call_cen_sbe_tp_chiplet_init1( void *io_pArgs ) TRACFCOMP(ISTEPS_TRACE::g_trac_isteps_trace, "call_cen_sbe_tp_chiplet_init1 - VSBE engine runs successfully on this Centaur"); } - } // end for l_pMemBufs + } // end for // Freeing memory if (l_otherArg) |