coreboot-kgpe-d16/src
Yu-Ping Wu 4f30539b47 drivers/mrc_cache: Prevent printing errors in expected use cases
The following are considered "expected" situations, where we shouldn't
print error messages as in other unexpected errors:

1. When the previous boot is in recovery mode, under certain config
   combination the normal MRC cache would have been invalidated.
   Therefore the "couldn't read metadata" error is expected to show in
   the current normal boot. Special-case this situation by printing a
   different message.
2. If the platform doesn't have recovery cache (!HAS_RECOVERY_MRC_CACHE)
   and vboot starts before romstage (!VBOOT_STARTS_IN_ROMSTAGE), then
   there should be no region for recovery cache. In this case, "failed
   to locate region type 0" will be shown. Since it's pretty clear from
   the code that this is the only case for the error to happen, simply
   change it to BIOS_DEBUG. Also remove a duplicate message when
   mrc_header_valid() fails.

BUG=b:257401937
TEST=emerge-corsola coreboot
TEST=Ran `cbmem -1 | grep ERROR` in recovery boot
TEST=Ran `cbmem -1 | grep ERROR` in normal boot following recovery boot
BRANCH=corsola

Change-Id: Ia942eeecaca3f6b2b90bac725279d2dc6174e0fd
Signed-off-by: Yu-Ping Wu <yupingso@chromium.org>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/69542
Reviewed-by: Julius Werner <jwerner@chromium.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
2022-12-12 00:50:20 +00:00
..
acpi acpi/acpi.c: Add a method to generate IOAPIC DMAR entries from hw 2022-12-06 17:44:20 +00:00
arch cpu/cpu.h: Change the function signature 2022-12-10 17:54:53 +00:00
commonlib mem_chip_info: Update to new format 2022-12-09 00:48:57 +00:00
console console/post.c: Sort includes 2022-10-27 15:46:39 +00:00
cpu cpu/cpu.h: Change the function signature 2022-12-10 17:54:53 +00:00
device treewide: Include <device/mmio.h> instead of <arch/mmio.h> 2022-12-10 05:07:14 +00:00
drivers drivers/mrc_cache: Prevent printing errors in expected use cases 2022-12-12 00:50:20 +00:00
ec mb/intel/mtlrvp: Add MTL-P RVP board ids 2022-12-09 23:57:03 +00:00
include cpu/cpu.h: Change the function signature 2022-12-10 17:54:53 +00:00
lib lib/ramtest.c: Use {read,write}32p() 2022-12-10 00:01:05 +00:00
mainboard mb/google/brya/var/agah: Correct dGPU Power GPIOs 2022-12-11 17:15:03 +00:00
northbridge treewide: Include <device/mmio.h> instead of <arch/mmio.h> 2022-12-10 05:07:14 +00:00
sbom
security treewide: Include <device/mmio.h> instead of <arch/mmio.h> 2022-12-10 05:07:14 +00:00
soc soc/intel: Move TCSS FW latency macros to IA common tcss.h 2022-12-10 08:02:42 +00:00
southbridge sb/intel/common: Move definition of TRAP 2022-12-11 12:43:55 +00:00
superio superio/ite/it8772f/chip.h: Use 'bool' when appropriate 2022-12-05 14:28:02 +00:00
vendorcode vc/intel/fsp: Update ADL N FSP headers from v3343.04 to v3343.05 2022-12-09 20:45:46 +00:00
Kconfig build: List all Kconfigs in CBFS `config` file, compress it 2022-11-18 17:19:44 +00:00