[coreboot-gerrit] Patch set updated for coreboot: drivers/fsp2_0: Increment boot count for non-S3 boot

Furquan Shaikh (furquan@google.com) gerrit at coreboot.org
Sun Jul 31 03:29:01 CEST 2016


Furquan Shaikh (furquan at google.com) just uploaded a new patch set to gerrit, which you can find at https://review.coreboot.org/15948

-gerrit

commit dc44ab5db7aa4d2b46116d0f65b041e9163d4ec1
Author: Furquan Shaikh <furquan at google.com>
Date:   Sat Jul 30 18:10:05 2016 -0700

    drivers/fsp2_0: Increment boot count for non-S3 boot
    
    If ELOG_BOOT_COUNT is enabled and the boot is not s3 resume, then
    increment boot count.
    
    BUG=chrome-os-partner:55473
    
    Change-Id: Ib3e77180bd640ec0424978e73034d7c99cdcba95
    Signed-off-by: Furquan Shaikh <furquan at google.com>
---
 src/drivers/intel/fsp2_0/memory_init.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/drivers/intel/fsp2_0/memory_init.c b/src/drivers/intel/fsp2_0/memory_init.c
index 8e3eb68..f07975e 100644
--- a/src/drivers/intel/fsp2_0/memory_init.c
+++ b/src/drivers/intel/fsp2_0/memory_init.c
@@ -17,6 +17,7 @@
 #include <cbfs.h>
 #include <cbmem.h>
 #include <console/console.h>
+#include <elog.h>
 #include <fsp/api.h>
 #include <fsp/util.h>
 #include <memrange.h>
@@ -300,6 +301,9 @@ enum fsp_status fsp_memory_init(bool s3wake)
 	struct memranges memmap;
 	struct range_entry freeranges[2];
 
+	if (IS_ENABLED(CONFIG_ELOG_BOOT_COUNT) && !s3wake)
+		boot_count_increment();
+
 	if (cbfs_boot_locate(&file_desc, name, NULL)) {
 		printk(BIOS_ERR, "Could not locate %s in CBFS\n", name);
 		return FSP_NOT_FOUND;



More information about the coreboot-gerrit mailing list