summaryrefslogtreecommitdiffstats
path: root/src/usr/hwpf/hwp/sbe_centaur_init
diff options
context:
space:
mode:
authorayma <ayma@us.ibm.com>2014-03-04 16:19:49 -0600
committerA. Patrick Williams III <iawillia@us.ibm.com>2014-03-15 12:25:22 -0500
commit9ef3e1b8cd5d2ee02984478b1882677331da08fa (patch)
tree7cb7804214eedc70826242dadd78c1e117fde854 /src/usr/hwpf/hwp/sbe_centaur_init
parentd05eda21bf62fe34d0dcbdd786794707c5c9f048 (diff)
downloadtalos-hostboot-9ef3e1b8cd5d2ee02984478b1882677331da08fa.tar.gz
talos-hostboot-9ef3e1b8cd5d2ee02984478b1882677331da08fa.zip
change to check all present MBA and MCS in host_prd_hwreconfig
need to change host_prd_hwreconfig to use all present targets instead of only functional targets. This allows the HWP to mask FIRS appropriately Change-Id: I795adf302ff4da5c731d2356433fd775b5f1ba45 CQ: SW245901 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/9297 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.C21
1 files changed, 20 insertions, 1 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 8e6bbd1d1..89812e42a 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
@@ -104,9 +104,28 @@ void* call_sbe_centaur_init( void *io_pArgs )
l_membuf_iter != l_membufTargetList.end();
++l_membuf_iter)
{
- //find SBE image in PNOR
+
TARGETING::Target* l_membuf_target = *l_membuf_iter;
+ HwasState l_hwasState = l_membuf_target->getAttr<ATTR_HWAS_STATE>();
+
+ TARGETING::ATTR_MSS_INIT_STATE_type l_attr_mss_init_state=
+ l_membuf_target->getAttr<TARGETING::ATTR_MSS_INIT_STATE>();
+ //run SBE init on functional OR previously functional centaurs
+ if ( l_hwasState.functional ||
+ (l_hwasState.present &&
+ (l_attr_mss_init_state != ENUM_ATTR_MSS_INIT_STATE_COLD)) )
+ {
+ l_membuf_target->setAttr<TARGETING::ATTR_MSS_INIT_STATE>(
+ ENUM_ATTR_MSS_INIT_STATE_COLD);
+ }
+ else
+ {
+ //go to the next membuf in the list because this present membuf is
+ //not functional or has not gone through an IPL once
+ continue;
+ }
+ //find SBE image in PNOR
uint8_t cur_ec = (*l_membuf_iter)->getAttr<TARGETING::ATTR_EC>();
OpenPOWER on IntegriCloud