soc/amd/stoneyridge: Increment boot_count on non-S3 boots
Increment the boot_count from romstage when not resuming from S3. BUG=b:80266624 TEST=firmware_EventLog TEST=boot, then: mosys eventlog list | grep boot 1 | 2018-05-24 16:51:42 | System boot | 1 reboot mosys eventlog list | grep boot 1 | 2018-05-24 16:51:42 | System boot | 1 6 | 2018-05-24 16:52:34 | System boot | 2 Change-Id: Ideec9da809e494fb0ea073f648540285972f8238 Signed-off-by: Daniel Kurtz <djkurtz@chromium.org> Reviewed-on: https://review.coreboot.org/26525 Reviewed-by: Martin Roth <martinroth@google.com> Reviewed-by: Aaron Durbin <adurbin@chromium.org> Reviewed-by: Simon Glass <sjg@chromium.org> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
committed by
Martin Roth
parent
b6fdd22456
commit
c6c897280e
@@ -28,6 +28,7 @@
|
||||
#include <chip.h>
|
||||
#include <program_loading.h>
|
||||
#include <romstage_handoff.h>
|
||||
#include <elog.h>
|
||||
#include <amdblocks/agesawrapper.h>
|
||||
#include <amdblocks/agesawrapper_call.h>
|
||||
#include <soc/northbridge.h>
|
||||
@@ -94,6 +95,8 @@ asmlinkage void car_stage_entry(void)
|
||||
msr_t sys_cfg = rdmsr(SYSCFG_MSR);
|
||||
sys_cfg.lo &= ~SYSCFG_MSR_TOM2WB;
|
||||
wrmsr(SYSCFG_MSR, sys_cfg);
|
||||
if (IS_ENABLED(CONFIG_ELOG_BOOT_COUNT))
|
||||
boot_count_increment();
|
||||
} else {
|
||||
printk(BIOS_INFO, "S3 detected\n");
|
||||
post_code(0x60);
|
||||
|
Reference in New Issue
Block a user