diff options
| author | Marty Gloff <mgloff@us.ibm.com> | 2017-01-23 16:39:41 -0600 |
|---|---|---|
| committer | Daniel M. Crowell <dcrowell@us.ibm.com> | 2017-01-30 11:48:41 -0500 |
| commit | b3134ac27b470acb519ca2c9af2a01c8e4cdb5a3 (patch) | |
| tree | 89f2b3480fa89d6b0affa3ba29df8834ecb36fb4 /src/usr/sbe | |
| parent | 7f40e1f4f007c153c97ca90840e0dbd9bc25e014 (diff) | |
| download | blackbird-hostboot-b3134ac27b470acb519ca2c9af2a01c8e4cdb5a3.tar.gz blackbird-hostboot-b3134ac27b470acb519ca2c9af2a01c8e4cdb5a3.zip | |
Enable updates of SBE SEEPROMs
Unset NO_SBE_UPDATES in fsprelease.config.
Create ATTR_SBE_UPDATE_DISABLE to allow disabling updates.
Change-Id: Ic57d4e7a28d3778f6959d7665052ac7e9c9f73c7
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/35288
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com>
Reviewed-by: Corey V. Swenson <cswenson@us.ibm.com>
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/usr/sbe')
| -rw-r--r-- | src/usr/sbe/sbe_update.C | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/usr/sbe/sbe_update.C b/src/usr/sbe/sbe_update.C index c8f2849e5..13c225c34 100644 --- a/src/usr/sbe/sbe_update.C +++ b/src/usr/sbe/sbe_update.C @@ -133,6 +133,16 @@ namespace SBE assert(sys, "updateProcessorSbeSeeproms() system target is NULL"); /*****************************************************************/ + /* Skip Update if ATTR_SBE_UPDATE_DISABLE is set */ + /*****************************************************************/ + if ( sys->getAttr<ATTR_SBE_UPDATE_DISABLE>() ) // true => disable + { + TRACFCOMP( g_trac_sbe, INFO_MRK"SBE Update skipped due to " + "system attribute SBE_UPDATE_DISABLE being set"); + break; + } + + /*****************************************************************/ /* Skip Update if MNFG_FLAG_FSP_UPDATE_SBE_IMAGE is set */ /* AND there is a FSP present */ /*****************************************************************/ @@ -277,6 +287,15 @@ namespace SBE else { sbeState.target_is_master = false; + + // If running in simics, don't do the update + if ( Util::isSimicsRunning() ) + { + // Push this sbeState onto the vector + sbeStates_vector.push_back(sbeState); + + break; + } } err = getSbeInfoState(sbeState); |

