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 <kramasub@google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/69827
Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Eric Lai <eric_lai@quanta.corp-partner.google.com>
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
This commit is contained in:
Karthikeyan Ramasubramanian 2022-11-17 23:07:28 -07:00 committed by Arthur Heymans
parent 9aea4ec9a5
commit 4763a5a470
1 changed files with 2 additions and 2 deletions

View File

@ -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