diff options
author | Marty Gloff <mgloff@us.ibm.com> | 2018-04-23 12:01:45 -0500 |
---|---|---|
committer | Daniel M. Crowell <dcrowell@us.ibm.com> | 2018-05-15 18:08:42 -0400 |
commit | d7355b73ce6b9b6b2a8634a4f349d3ca2c25104c (patch) | |
tree | 20d045a74925c387f773fe39896270e36f48faee /src/include/usr/hwas | |
parent | a5982dd2d6a9e5169b9563e89b45f09d487b7856 (diff) | |
download | talos-hostboot-d7355b73ce6b9b6b2a8634a4f349d3ca2c25104c.tar.gz talos-hostboot-d7355b73ce6b9b6b2a8634a4f349d3ca2c25104c.zip |
Improve resource recovery path to handle memory plugging rules
Resource recovery is a RAS feature wherein we do not apply certain gard records
if those records would result in a boot fail due to a lack of hardware. Change
the logic from applying speculative deconfiguration one by one to applying all
predictive gard records and then removing those records if minimal hardware is
not available. Also add BLOCK_SPEC_DECONFIG attribute to flag when speculative
deconfiguration is not allowed. This flag is set if minimum hardware is not
available and is cleared after a hardware change.
Change-Id: Ia065de3a44ab29fbf33ad4ce98bc42ea5144463f
RTC: 191414
CQ: SW424137
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/58041
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: Christian R. Geddes <crgeddes@us.ibm.com>
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/include/usr/hwas')
-rw-r--r-- | src/include/usr/hwas/common/deconfigGard.H | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/include/usr/hwas/common/deconfigGard.H b/src/include/usr/hwas/common/deconfigGard.H index e27836522..90aa61822 100644 --- a/src/include/usr/hwas/common/deconfigGard.H +++ b/src/include/usr/hwas/common/deconfigGard.H @@ -513,6 +513,16 @@ public: const errlHndl_t i_deconfigErrl); #endif + /** + * @brief Clears attribute which blocks speculative deconfiguration + * (ATTR_BLOCK_SPEC_DECONFIG) so that resource recovery is allowed to + * apply speculative deconfigurations / predictive gards. Attribute + * is cleared only if a target has been replaced. + * + * @return ATTR_BLOCK_SPEC_DECONFIG. + */ + uint8_t clearBlockSpecDeconfigForReplacedTargets(); + protected: /** |