diff options
author | Brian Bakke <bbakke@us.ibm.com> | 2018-01-30 14:52:28 -0600 |
---|---|---|
committer | Daniel M. Crowell <dcrowell@us.ibm.com> | 2018-02-06 10:16:00 -0500 |
commit | 59c8ce01244bcdb635735773fa81d417c0b9c710 (patch) | |
tree | 14ad18e4c773a81e37be73e477eff23bb692a7c2 /src/usr/hwas/common/deconfigGard.C | |
parent | 39157523786b6d297d41f42a641bf758b4293733 (diff) | |
download | talos-hostboot-59c8ce01244bcdb635735773fa81d417c0b9c710.tar.gz talos-hostboot-59c8ce01244bcdb635735773fa81d417c0b9c710.zip |
CAPP GARD Records cleared on Witherspoon
CAPP GARD Records were being cleared after being applied on
Witherspoon machines. Witherspoon xml was overriding
HWAS_STATE_CHANGED_SUBSCRIPTION_MASK default for CAPP targets.
Change-Id: Ic47f94901e193f2cf0ca448ea181742bacd4371f
CQ: SW414002
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/53162
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: Roland Veloz <rveloz@us.ibm.com>
Reviewed-by: Christian R. Geddes <crgeddes@us.ibm.com>
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/usr/hwas/common/deconfigGard.C')
-rw-r--r-- | src/usr/hwas/common/deconfigGard.C | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/usr/hwas/common/deconfigGard.C b/src/usr/hwas/common/deconfigGard.C index ed16a805b..656847599 100644 --- a/src/usr/hwas/common/deconfigGard.C +++ b/src/usr/hwas/common/deconfigGard.C @@ -259,6 +259,33 @@ errlHndl_t DeconfigGard::clearGardRecordsForReplacedTargets() // we have made it this far so we know the target has changed // requiring its gard record to be cleared and eid stored // Clear the gard record + + ATTR_HWAS_STATE_CHANGED_FLAG_type l_actual = + l_pTarget->getAttr<ATTR_HWAS_STATE_CHANGED_FLAG>(); + + ATTR_HWAS_STATE_CHANGED_SUBSCRIPTION_MASK_type l_subscriptionMask = + l_pTarget->getAttr<ATTR_HWAS_STATE_CHANGED_SUBSCRIPTION_MASK>(); + + uint64_t * l_pPred = + reinterpret_cast<uint64_t *>(&l_predicateHwasChanged); + uint64_t * l_pPred_iv_desired = l_pPred + 1; + uint64_t * l_pPred_iv_valid = l_pPred + 2; + + HWAS_INF( "clearGardRecordsForReplacedTargets() " + "HUID :0x%08x " + "\npredicate ATTR_HWAS_STATE_CHANGED_FLAG " + "iv_valid : 0x%08x%08x " + "predicate ATTR_HWAS_STATE_CHANGED_FLAG " + "iv_desired : 0x%08x%08x " + "\nTarget ATTR_HWAS_STATE_CHANGED_FLAG : 0x%08x%08x " + "Target ATTR_HWAS_STATE_CHANGED_SUBSCRIPTION_MASK " + ": 0x%08x%08x ", + get_huid(l_pTarget), + (*l_pPred_iv_valid) >> 32, (*l_pPred_iv_valid), + (*l_pPred_iv_desired) >> 32, (*l_pPred_iv_desired), + l_actual >> 32, l_actual, + l_subscriptionMask >> 32, l_subscriptionMask ); + HWAS_INF("clearing GARD for %.8X, recordId %d", get_huid(l_pTarget), l_gardRecord.iv_recordId); |