coreboot-kgpe-d16/src
Michał Żygowski b5e729c129 drivers/mrc_cache: Do not verify TPM MRC hash if secdata is mocked
Having PTT means mocking secdata, so saving/reading the hash always
succeeds, but there is no data stored/read from/to TPM. The code
comparing MRC hashes did not care if secdata mocking was enabled
and failed during hash comparison with invalid data. This broke the
fastboot even if the MRC cache data was filled and correctly
checksummed. If mocking is enabled simply fallback to checksum
computing to proceed with fastboot.

TEST=Boot MSI PRO Z690-A WIFI DDR4 in fastboot mode with PTT and vboot
enabled.

Signed-off-by: Michał Żygowski <michal.zygowski@3mdeb.com>
Change-Id: Ic0cf04b129fe1c5e94cd8a803bb21aa350c3f8da
Reviewed-on: https://review.coreboot.org/c/coreboot/+/64221
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Julius Werner <jwerner@chromium.org>
2022-06-24 21:56:01 +00:00
..
acpi
arch arch/x86/acpi: Replace ShiftLeft() with ASL 2.0 syntax 2022-06-09 09:07:18 +00:00
commonlib soc/mediatek: pass access mode to the payload 2022-06-12 22:28:37 +00:00
console
cpu microcode: Add error msg in case `intel_microcode_find()` return NULL 2022-06-22 12:50:56 +00:00
device device/resource: Add _kb postfix for resource allocators 2022-06-22 12:30:15 +00:00
drivers drivers/mrc_cache: Do not verify TPM MRC hash if secdata is mocked 2022-06-24 21:56:01 +00:00
ec ec/google/chromeec: Remove google_chromeec_vbnv_context() 2022-06-24 21:55:06 +00:00
include soc/intel: Add Meteor Lake SA device ID 2022-06-22 17:31:42 +00:00
lib Replace some ENV_ROMSTAGE with ENV_RAMINIT 2022-06-07 12:53:19 +00:00
mainboard mb/google/brya/{var/agah,acpi}: Update GPU GCOFF sequence for power down 2022-06-24 21:54:37 +00:00
northbridge device/resource: Modify some resource allocation instances 2022-06-24 19:51:12 +00:00
security security/vboot: Deprecate VBOOT_VBNV_EC 2022-06-22 18:08:53 +00:00
soc device/resource: Modify some resource allocation instances 2022-06-24 19:51:12 +00:00
southbridge device/resource: Add _kb postfix for resource allocators 2022-06-22 12:30:15 +00:00
superio superio/winbond/w83667hg-a: Replace LEqual(a,b) with ASL 2.0 syntax 2022-06-09 09:05:56 +00:00
vendorcode vc/intel/fsp/mtl: Update header files from 2173_00 to 2222_01 for MTL 2022-06-23 05:00:35 +00:00
Kconfig src/Kconfig: src/soc/*/Kconfig files are gone, remove the include 2022-06-24 04:00:15 +00:00