diff options
author | Roland Veloz <rveloz@us.ibm.com> | 2018-03-06 16:41:52 -0600 |
---|---|---|
committer | William G. Hoffa <wghoffa@us.ibm.com> | 2018-03-12 14:22:13 -0400 |
commit | 5a9355062b71a808cb5e1190348933f3bf98e973 (patch) | |
tree | fb9da15c6df32c95ff0ef8624ad154ffab2e6fb4 /src/usr/sbe | |
parent | 0b02cc8314bebe97354a57614fa5464ec931363e (diff) | |
download | blackbird-hostboot-5a9355062b71a808cb5e1190348933f3bf98e973.tar.gz blackbird-hostboot-5a9355062b71a808cb5e1190348933f3bf98e973.zip |
Created individual update flags for both SEEPROM 0 and SEEPROM 1
I created individual update flags for both SEEPROM 0 and SEEPROM 1
to better target which seeprom to update. Now SEEPROM 0 or SEEPROM
1 or both can be singled out for update(s).
Change-Id: I91f1b66f6a1f2e42d37173fb9e21f87e440d3a21
RTC: 189218
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/55173
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com>
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com>
Reviewed-by: Martin Gloff <mgloff@us.ibm.com>
CI-Ready: Daniel M. Crowell <dcrowell@us.ibm.com>
Reviewed-by: Christian R. Geddes <crgeddes@us.ibm.com>
Reviewed-by: William G. Hoffa <wghoffa@us.ibm.com>
Diffstat (limited to 'src/usr/sbe')
-rw-r--r-- | src/usr/sbe/sbe_update.C | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/src/usr/sbe/sbe_update.C b/src/usr/sbe/sbe_update.C index cb76a1cc5..fc1708edf 100644 --- a/src/usr/sbe/sbe_update.C +++ b/src/usr/sbe/sbe_update.C @@ -240,7 +240,6 @@ namespace SBE break; } - // Get the Master Proc Chip Target for comparisons later TARGETING::Target* masterProcChipTargetHandle = NULL; err = tS.queryMasterProcChipTargetHandle( @@ -355,11 +354,18 @@ namespace SBE /**********************************************/ /* Perform Update Actions For This Target */ /**********************************************/ - // Force an update if necessary - if (sbeState.mvpdSbKeyword.flags & FORCE_UPDATE_FLAG_MASK) + // Force an update of SEEPROM 0 or SEEPROM 1 if SB keyword + // flags is requesting an update for that particular seeprom + if (((sbeState.seeprom_side_to_update == EEPROM::SBE_PRIMARY) && + (sbeState.mvpdSbKeyword.flags & SEEPROM_0_FORCE_UPDATE_MASK)) || + ((sbeState.seeprom_side_to_update == EEPROM::SBE_BACKUP) && + (sbeState.mvpdSbKeyword.flags & SEEPROM_1_FORCE_UPDATE_MASK))) { + // The DO_UPDATE flag alone might not be enough to + // force an update, setting UPDATE_SBE flag as well + // because I know that performUpdateActions checks that flag sbeState.update_actions = static_cast<sbeUpdateActions_t> - (sbeState.update_actions | DO_UPDATE); + (sbeState.update_actions | DO_UPDATE | UPDATE_SBE); } if ((err == NULL) && (sbeState.update_actions & DO_UPDATE)) |