diff options
author | Andrew Geissler <andrewg@us.ibm.com> | 2017-08-17 15:59:25 -0500 |
---|---|---|
committer | Andrew Geissler <andrewg@us.ibm.com> | 2017-08-18 08:49:55 -0500 |
commit | d1df1e2755d7d943d1a5519ed86ec6291a7feaa5 (patch) | |
tree | 626e4109cc3373c563780316b47bcf02884d0f78 | |
parent | bc7cdf488c20271f4137b111d93bca649310d022 (diff) | |
download | openpower-proc-control-d1df1e2755d7d943d1a5519ed86ec6291a7feaa5.tar.gz openpower-proc-control-d1df1e2755d7d943d1a5519ed86ec6291a7feaa5.zip |
Boot from sbe side 0 when boot count is greater than 0
Recent code changes now decrement the boot count at
the start of every boot. The sbe side select design
is to boot from side 0 twice, then side 1 on the
last attempt. Now that the boot count is decremented
at the start of the boot (and the total boot count is 3),
the software needs to use side 0 when the boot count
is greater than or equal to 1.
Resolves openbmc/openbmc#2169
Change-Id: Ic08bed34d58de3d40b742ce52ca83627976d8fee
Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
-rw-r--r-- | procedures/p9/start_host.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/procedures/p9/start_host.cpp b/procedures/p9/start_host.cpp index 3049eac..541252e 100644 --- a/procedures/p9/start_host.cpp +++ b/procedures/p9/start_host.cpp @@ -68,7 +68,7 @@ void startHost() // Choose seeprom side to boot from cfam_data_t sbeSide = 0; - if(getBootCount() > 1) + if(getBootCount() > 0) { sbeSide = 0; log<level::INFO>("Setting SBE seeprom side to 0", |