diff options
author | Nick Bofferding <bofferdn@us.ibm.com> | 2019-03-07 07:29:46 -0600 |
---|---|---|
committer | Daniel M. Crowell <dcrowell@us.ibm.com> | 2019-03-15 10:39:43 -0500 |
commit | 642a5f63c61bb590b654d2abd15820dc4d1b014d (patch) | |
tree | 4b9bf8d1ffb3ec4807b26039210b9fa28ef1264f /src/usr/hwas/common/hwas.C | |
parent | c4031acbfb0525325bc61cbb353e91acd5f3cc60 (diff) | |
download | talos-hostboot-642a5f63c61bb590b654d2abd15820dc4d1b014d.tar.gz talos-hostboot-642a5f63c61bb590b654d2abd15820dc4d1b014d.zip |
Support UCD discovery
- Added new attribute to indicate if target should be assumed present
- Added that attribute to SP/BMC/UCD targets
- Check for assumed present UCDs in discover targets
- Iterate through every UCD for data flash update
RTC: 201991
Change-Id: Ia535a58ea0355582621a23d3c1b50b2417ad362f
Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/73047
Reviewed-by: Matthew Raybuck <matthew.raybuck@ibm.com>
Reviewed-by: Michael Baiocchi <mbaiocch@us.ibm.com>
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com>
Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com>
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/usr/hwas/common/hwas.C')
-rw-r--r-- | src/usr/hwas/common/hwas.C | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/usr/hwas/common/hwas.C b/src/usr/hwas/common/hwas.C index eaeaef5a5..5dd7240de 100644 --- a/src/usr/hwas/common/hwas.C +++ b/src/usr/hwas/common/hwas.C @@ -647,8 +647,10 @@ errlHndl_t discoverTargets() { // TODO:RTC:151617 Need to find a better way // to initialize the target - if((target->getAttr<ATTR_TYPE>() == TYPE_SP) || - (target->getAttr<ATTR_TYPE>() == TYPE_BMC)) + TARGETING::ATTR_INIT_TO_AVAILABLE_type initToAvailable = false; + if( (target->tryGetAttr<TARGETING::ATTR_INIT_TO_AVAILABLE>( + initToAvailable)) + && (initToAvailable)) { HwasState hwasState = target->getAttr<ATTR_HWAS_STATE>(); hwasState.deconfiguredByEid = 0; @@ -657,7 +659,8 @@ errlHndl_t discoverTargets() hwasState.functional = true; hwasState.dumpfunctional = false; target->setAttr<ATTR_HWAS_STATE>(hwasState); - }else + } + else { HwasState hwasState = target->getAttr<ATTR_HWAS_STATE>(); hwasState.deconfiguredByEid = 0; |