From dad067f2729565eb1adcdf792c4d4dcc48909ad0 Mon Sep 17 00:00:00 2001 From: Kangheui Won Date: Thu, 6 May 2021 15:53:37 +1000 Subject: [PATCH] amd/cezanne: verify transfer buffer in bootblock Verify if transfer buffer is valid before progressing further to catch invalid transfer buffer early. Signed-off-by: Kangheui Won Change-Id: I4c470b156944b50e581dcdee47b196f46b0993f3 Reviewed-on: https://review.coreboot.org/c/coreboot/+/52965 Reviewed-by: Felix Held Reviewed-by: Raul Rangel Tested-by: build bot (Jenkins) --- src/soc/amd/cezanne/bootblock.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/soc/amd/cezanne/bootblock.c b/src/soc/amd/cezanne/bootblock.c index 2447de64fc..21635c9c3c 100644 --- a/src/soc/amd/cezanne/bootblock.c +++ b/src/soc/amd/cezanne/bootblock.c @@ -11,6 +11,7 @@ #include #include #include +#include #include /* @@ -110,5 +111,11 @@ void bootblock_soc_init(void) { u32 val = cpuid_eax(1); printk(BIOS_DEBUG, "Family_Model: %08x\n", val); + + if (CONFIG(VBOOT_STARTS_BEFORE_BOOTBLOCK)) { + verify_psp_transfer_buf(); + show_psp_transfer_info(); + } + fch_early_init(); }