coreboot-kgpe-d16/src/include/console
Raul E Rangel 1e1aa0ca4d lib/cbmem_console: Add cbmemc_copy_in function
When running in verstage before bootblock, the PSP (ARM co-processor) is
running with limited SRAM. It needs to stash the verstage console data
internally until DRAM is brought up. Once DRAM is brought up the data is
stashed in a "transfer buffer" region. In the current design, we are
using the same region for the transfer buffer and the
preram_cbmem_console region. This has the following downsides:

1) The pre-x86 buffer needs to be large enough to hold all the
   verstage, bootblock and romstage console logs.
2) On AMD platforms, the PSP verstage is signed. Changing the size of
   preram_cbmem_console after the fact will result in a mismatch of the
   transfer buffer between verstage and bootblock.

This CL adds a new method that allows SoC specific code to copy the
CBMEM console in the transfer buffer to the active CBMEM console.

BUG=b:213828947
TEST=Boot guybrush and no longer see
   *** Pre-CBMEM romstage console overflowed, log truncated!

Signed-off-by: Raul E Rangel <rrangel@chromium.org>
Change-Id: Idc0ab8090db740e0d1b3d21d8968f26471f2e930
Reviewed-on: https://review.coreboot.org/c/coreboot/+/61099
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Kangheui Won <khwon@chromium.org>
Reviewed-by: Julius Werner <jwerner@chromium.org>
2022-01-23 16:42:38 +00:00
..
cbmem_console.h lib/cbmem_console: Add cbmemc_copy_in function 2022-01-23 16:42:38 +00:00
console.h console: Make get_log_level a public function 2022-01-03 15:06:52 +00:00
debug.h soc/intel/xeon_sp: Move function debug macros 2020-10-29 16:44:19 +00:00
flash.h src/include: Drop unneeded empty lines 2020-09-14 07:09:41 +00:00
ne2k.h treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
qemu_debugcon.h
spi.h src: Rename EM100Pro-specific SPI console Kconfig option 2020-10-13 08:40:52 +00:00
spkmodem.h
streams.h treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
system76_ec.h ec/system76: Add console support 2020-09-07 21:46:34 +00:00
uart.h console: Override uart base address 2020-11-09 07:46:10 +00:00
usb.h include/console/usb.h: Drop dead code 2020-07-09 23:51:09 +00:00
vtxprintf.h treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00