summaryrefslogtreecommitdiffstats
path: root/src/usr/hwas
diff options
context:
space:
mode:
authorElizabeth Liner <eliner@us.ibm.com>2016-07-27 15:13:03 -0500
committerDaniel M. Crowell <dcrowell@us.ibm.com>2016-09-26 14:41:38 -0400
commit9b2a0194995ebfdd070cf5facb0743fb08fdc38e (patch)
treebc08dd6d1a00b5350325a531b7e96bbac2d644d6 /src/usr/hwas
parent1f8764f7c1673eb85a40ab36be14888f84e57545 (diff)
downloadtalos-hostboot-9b2a0194995ebfdd070cf5facb0743fb08fdc38e.tar.gz
talos-hostboot-9b2a0194995ebfdd070cf5facb0743fb08fdc38e.zip
Porting non-hdat from powervm-p8 into master-p8
Change-Id: I49d20a8c64bd5702aeceeff77bc5119f52996d21 RTC:156618 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/29810 Tested-by: Jenkins Server <pfd-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')
-rw-r--r--src/usr/hwas/common/hwas.C28
1 files changed, 21 insertions, 7 deletions
diff --git a/src/usr/hwas/common/hwas.C b/src/usr/hwas/common/hwas.C
index 78864f6e5..1d11cbfc9 100644
--- a/src/usr/hwas/common/hwas.C
+++ b/src/usr/hwas/common/hwas.C
@@ -166,13 +166,27 @@ errlHndl_t discoverTargets()
target != targetService().end();
++target)
{
- HwasState hwasState = target->getAttr<ATTR_HWAS_STATE>();
- hwasState.deconfiguredByEid = 0;
- hwasState.poweredOn = false;
- hwasState.present = false;
- hwasState.functional = false;
- hwasState.dumpfunctional = false;
- target->setAttr<ATTR_HWAS_STATE>(hwasState);
+ // TODO:RTC:151617 Need to find a better way
+ // to initialize the target
+ if(target->getAttr<ATTR_TYPE>() == TYPE_SP)
+ {
+ HwasState hwasState = target->getAttr<ATTR_HWAS_STATE>();
+ hwasState.deconfiguredByEid = 0;
+ hwasState.poweredOn = true;
+ hwasState.present = true;
+ hwasState.functional = true;
+ hwasState.dumpfunctional = false;
+ target->setAttr<ATTR_HWAS_STATE>(hwasState);
+ }else
+ {
+ HwasState hwasState = target->getAttr<ATTR_HWAS_STATE>();
+ hwasState.deconfiguredByEid = 0;
+ hwasState.poweredOn = false;
+ hwasState.present = false;
+ hwasState.functional = false;
+ hwasState.dumpfunctional = false;
+ target->setAttr<ATTR_HWAS_STATE>(hwasState);
+ }
}
// Assumptions and actions:
OpenPOWER on IntegriCloud