coreboot-kgpe-d16/src/drivers
Duncan Laurie f4d362339f 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@chromium.org>
Reviewed-on: http://review.coreboot.org/1315
Tested-by: build bot (Jenkins)
Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
2012-07-25 00:47:10 +02:00
..
ati Clean up #ifs 2012-05-08 00:34:34 +02:00
dec remove trailing whitespace 2011-11-01 19:07:45 +01:00
elog ELOG: Add support for a monotonic boot counter in CMOS 2012-07-25 00:47:10 +02:00
emulation Handle drivers/ equally to any other sub directory. 2011-04-15 03:30:03 +00:00
generic IOAPIC: hook up driver in Kconfig 2012-07-13 08:38:08 +02:00
i2c Add Nuvoton W83793 hardware monitor driver 2012-07-04 07:22:48 +02:00
ics Add driver for ICS954309 clock generator 2011-10-25 19:22:22 +02:00
ipmi Add basic ipmi support 2012-07-09 10:41:05 +02:00
oxford Add BAR address debug information to Oxford PCIe serial driver 2012-07-24 22:48:07 +02:00
pc80 Fix TPM driver to work with multiple vendor TPMs 2012-05-01 20:06:32 +02:00
sil Handle drivers/ equally to any other sub directory. 2011-04-15 03:30:03 +00:00
spi SMM: Add option for SPI driver to be available in SMM 2012-07-24 23:44:40 +02:00
trident Handle drivers/ equally to any other sub directory. 2011-04-15 03:30:03 +00:00
Kconfig ELOG: Add support for flash based event log 2012-07-24 23:43:39 +02:00
Makefile.inc ELOG: Add support for flash based event log 2012-07-24 23:43:39 +02:00