coreboot/src/cpu
Jeremy Compostella 052fb7c451 x86: Add pre-memory stages CBFS cache scratchpad support
Having a CBFS cache scratchpad offers a generic way to decompress CBFS
files through the cbfs_map() function without having to reserve a
per-file specific memory region.

This commit introduces the x86 `PRERAM_CBFS_CACHE_SIZE' Kconfig to set
the pre-memory stages CBFS cache size.  A cache size of zero disables
the CBFS cache feature.  The default value is 16 KB which seems a
reasonable minimal value enough to satisfy basic needs such as the
decompression of a small configuration file. This setting can be
adjusted depending on the platform needs and capabilities.

We have set this size to zero for all the platforms without enough
space in Cache-As-RAM to accommodate the default size.

TEST=Decompression of vbt.bin in romstage on rex using cbfs_map()

Change-Id: Iee493f9947fddcc57576f04c3d6a2d58c7368e09
Signed-off-by: Jeremy Compostella <jeremy.compostella@intel.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/77290
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
2023-10-20 14:32:44 +00:00
..
amd cpu/amd/pi/00730F01: Use common code for mp_init 2023-08-08 20:27:50 +00:00
armltd cpu: Add SPDX license headers to Makefiles 2023-08-06 19:26:55 +00:00
intel x86: Add pre-memory stages CBFS cache scratchpad support 2023-10-20 14:32:44 +00:00
power9 src/cpu/power9: move part of scom.h to scom.c 2023-04-18 13:05:56 +00:00
qemu-power8 src: Remove leading blank lines from SPDX header 2020-05-18 07:00:27 +00:00
qemu-x86 Kconfig: Bring HEAP_SIZE to a common, large value 2023-10-11 12:09:01 +00:00
x86 cpu/x86/mtrr/debug: rename variables in display_variable_mtrr 2023-09-20 18:18:59 +00:00
Kconfig cpu: Enable per-CPUID microcode loading in CBFS 2023-07-08 12:06:00 +00:00
Makefile.inc cpu: Add SPDX license headers to Makefiles 2023-08-06 19:26:55 +00:00