From 4763a5a4700f200a0f779d60536077d08316a3b7 Mon Sep 17 00:00:00 2001 From: Karthikeyan Ramasubramanian Date: Thu, 17 Nov 2022 23:07:28 -0700 Subject: [PATCH] soc/amd/mendocino: Increase CBFS_MCACHE size CBFS_MCACHE is currently experiencing overflow with CBFS verification enabled. Reduce the pre-x86 cbmem console size from ~5.5 KiB to 4 KiB. This reduction along with the available free space in PSP shared buffer (32 KiB) helps to increase the CBFS_MCACHE size from 8 KiB to required 14 KiB. BUG=b:259342909 TEST=Build and boot to OS in Skyrim. Ensure that there are no CBFS mcache overflows. FMAP: area COREBOOT found @ 80a000 (8347648 bytes) VB2:vb2_digest_init() 0 bytes, hash algo 2, HW acceleration unsupported CBFS: mcache @0x00019a40 built for 67 files, used 0x19a0 of 0x1c00 bytes CBFS: Found 'apu/amdfw_a' @0x0 size 0x3ff80 in mcache @0x0001b640 VB2:vb2_digest_init() 262016 bytes, hash algo 2, HW acceleration enabled Ensure that firmware_CbfsMcache FAFT test is successful. Change-Id: I35e1a8c6d73e0870b6a43aac604f83a0b6c3aabe Signed-off-by: Karthikeyan Ramasubramanian Reviewed-on: https://review.coreboot.org/c/coreboot/+/69827 Reviewed-by: Felix Held Tested-by: build bot (Jenkins) Reviewed-by: Eric Lai Reviewed-by: Arthur Heymans --- src/soc/amd/mendocino/Kconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/soc/amd/mendocino/Kconfig b/src/soc/amd/mendocino/Kconfig index 05c349f165..5dd21641ee 100644 --- a/src/soc/amd/mendocino/Kconfig +++ b/src/soc/amd/mendocino/Kconfig @@ -155,7 +155,7 @@ config PSP_SHAREDMEM_SIZE config PRE_X86_CBMEM_CONSOLE_SIZE hex - default 0x1600 + default 0x1000 help Size of the CBMEM console used in PSP verstage. @@ -167,7 +167,7 @@ config PRERAM_CBMEM_CONSOLE_SIZE config CBFS_MCACHE_SIZE hex - default 0x2000 if VBOOT_STARTS_BEFORE_BOOTBLOCK + default 0x3800 if VBOOT_STARTS_BEFORE_BOOTBLOCK config C_ENV_BOOTBLOCK_SIZE hex