[coreboot] Patch merged into coreboot/master: 4f4dda8 ELOG: Add support for a monotonic boot counter in CMOS

gerrit at coreboot.org gerrit at coreboot.org
Wed Jul 25 00:47:11 CEST 2012


the following patch was just integrated into master:
commit 4f4dda816d74613c463838fde8a4abb1da19c4e8
Author: Duncan Laurie <dlaurie at chromium.org>
Date:   Sat Jun 23 16:37:45 2012 -0700

    ELOG: Add support for a monotonic boot counter in CMOS
    
    This maintains a 32bit monotonically increasing boot counter
    that is stored in CMOS and logged on every non-S3 boot when
    the event log is initialized.
    
    In CMOS the count is prefixed with a 16bit signature and
    appended with a 16bit checksum.
    
    This counter is incremented in sandybridge early_init which is
    called by romstage.  It is incremented early in order notice
    when reboots happen after memory init.
    
    The counter is then logged when ELOG is initialized and will
    store the boot count as part of a 'System boot; event.
    
    Reboot a few times and look for 'System boot' events in the
    event log and check that they are increasing.  Also verify
    that the counter does NOT increase when resuming from S3.
    
    171 | 2012-06-23 16:02:55 | System boot | 285
    176 | 2012-06-23 16:26:00 | System boot | 286
    182 | 2012-06-23 16:27:04 | System boot | 287
    189 | 2012-06-23 16:31:10 | System boot | 288
    
    Change-Id: I23faeafcf155edfd10aa6882598b3883575f8a33
    Signed-off-by: Duncan Laurie <dlaurie at chromium.org>

Build-Tested: build bot (Jenkins) at Tue Jul 24 17:01:03 2012, giving +1
Reviewed-By: Ronald G. Minnich <rminnich at gmail.com> at Wed Jul 25 00:47:08 2012, giving +2
See http://review.coreboot.org/1315 for details.

-gerrit




More information about the coreboot mailing list