<p>Daniel Kurtz would like Daniel Kurtz to <strong>review</strong> this change.</p><p><a href="https://review.coreboot.org/26525">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">soc/amd/stoneyridge: Increment boot_count on non-S3 boots.<br><br>Increment the boot_count from romstage when not resuming from S3.<br><br>BUG=b:80266624<br>TEST=firmware_EventLog<br>TEST=boot, then:<br>   mosys eventlog list | grep boot<br>1 | 2018-05-24 16:51:42 | System boot | 1<br>   reboot<br>   mosys eventlog list | grep boot<br>1 | 2018-05-24 16:51:42 | System boot | 1<br>6 | 2018-05-24 16:52:34 | System boot | 2<br><br>Change-Id: Ideec9da809e494fb0ea073f648540285972f8238<br>Signed-off-by: Daniel Kurtz <djkurtz@chromium.org><br>---<br>M src/soc/amd/stoneyridge/romstage.c<br>1 file changed, 3 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://review.coreboot.org:29418/coreboot refs/changes/25/26525/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/soc/amd/stoneyridge/romstage.c b/src/soc/amd/stoneyridge/romstage.c</span><br><span>index 0e019f7..179168b 100644</span><br><span>--- a/src/soc/amd/stoneyridge/romstage.c</span><br><span>+++ b/src/soc/amd/stoneyridge/romstage.c</span><br><span>@@ -28,6 +28,7 @@</span><br><span> #include <chip.h></span><br><span> #include <program_loading.h></span><br><span> #include <romstage_handoff.h></span><br><span style="color: hsl(120, 100%, 40%);">+#include <elog.h></span><br><span> #include <amdblocks/agesawrapper.h></span><br><span> #include <amdblocks/agesawrapper_call.h></span><br><span> #include <soc/northbridge.h></span><br><span>@@ -94,6 +95,8 @@</span><br><span>              msr_t sys_cfg = rdmsr(SYSCFG_MSR);</span><br><span>           sys_cfg.lo &= ~SYSCFG_MSR_TOM2WB;</span><br><span>                wrmsr(SYSCFG_MSR, sys_cfg);</span><br><span style="color: hsl(120, 100%, 40%);">+           if (IS_ENABLED(CONFIG_ELOG_BOOT_COUNT))</span><br><span style="color: hsl(120, 100%, 40%);">+                       boot_count_increment();</span><br><span>      } else {</span><br><span>             printk(BIOS_INFO, "S3 detected\n");</span><br><span>                post_code(0x60);</span><br><span></span><br></pre><p>To view, visit <a href="https://review.coreboot.org/26525">change 26525</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://review.coreboot.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://review.coreboot.org/26525"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: coreboot </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: Ideec9da809e494fb0ea073f648540285972f8238 </div>
<div style="display:none"> Gerrit-Change-Number: 26525 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Daniel Kurtz <djkurtz@google.com> </div>
<div style="display:none"> Gerrit-Reviewer: Daniel Kurtz <djkurtz@chromium.org> </div>