coreboot-kgpe-d16/src/vboot
Aaron Durbin 0990fbf2d9 vboot: reset vbnv in cmos when cmos failure occurs
There's an occasional issue on machines which use CMOS for their
vbnv storage. The machine that just powers up from complete G3
would have had their RTC rail not held up. The contents of vbnv
in CMOS could pass the crc8 though the values could be bad. In
order to fix this introduce two functions:

1. vbnv_init_cmos()
2. vbnv_cmos_failed()

At the start of vboot the CMOS is queried for failure. If there
is a failure indicated then the vbnv data is restored from flash
backup or reset to known values when there is no flash backup.

BUG=b:63054105

Change-Id: I8bd6f28f64a116b84a08ce4779cd4dc73c0f2f3d
Signed-off-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-on: https://review.coreboot.org/21560
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Julius Werner <jwerner@chromium.org>
Reviewed-by: Furquan Shaikh <furquan@google.com>
2017-09-20 23:54:42 +00:00
..
Kconfig vboot: Add config to enable EC EFS support 2017-09-13 02:24:47 +00:00
Makefile.inc Remove libverstage as separate library and source file class 2017-03-28 22:18:53 +02:00
bootmode.c vboot: Remove get_sw_write_protect_state callback 2017-07-18 23:24:01 +00:00
common.c vboot: Remove VBOOT_DYNAMIC_WORK_BUFFER Kconfig option 2017-03-28 22:14:43 +02:00
misc.h
secdata_mock.c vboot: Select CONFIG_{TPM,TPM2} only if MOCK_SECDATA is not selected 2017-04-28 17:15:46 +02:00
secdata_tpm.c src/vboot: Add valid license headers to all files 2017-03-23 19:11:04 +01:00
symbols.h
vbnv.c vboot: reset vbnv in cmos when cmos failure occurs 2017-09-20 23:54:42 +00:00
vbnv.h vboot: reset vbnv in cmos when cmos failure occurs 2017-09-20 23:54:42 +00:00
vbnv_cmos.c vboot: reset vbnv in cmos when cmos failure occurs 2017-09-20 23:54:42 +00:00
vbnv_ec.c
vbnv_flash.c vboot/vbnv_flash: Binary search to find last used entry 2016-09-20 21:50:27 +02:00
vbnv_layout.h vboot: Clear battery cutoff flags when vbnv_cmos loads backup VBNV. 2017-01-03 22:14:42 +01:00
vboot_common.c vboot/vboot_common: actually provide a writable region_device 2016-08-24 00:09:16 +02:00
vboot_common.h Rename __attribute__((packed)) --> __packed 2017-07-13 19:45:59 +00:00
vboot_handoff.c vboot: Add config to enable EC EFS support 2017-09-13 02:24:47 +00:00
vboot_loader.c vboot: Move remaining features out of vendorcode/google/chromeos 2017-03-28 22:18:13 +02:00
vboot_logic.c vboot: introduce vbnv_init() 2017-09-20 23:53:30 +00:00
verstage.c vboot: Move remaining features out of vendorcode/google/chromeos 2017-03-28 22:18:13 +02:00