From 409e5cb0f6c4c2374d88713deec8e39a1ce776f4 Mon Sep 17 00:00:00 2001 From: Raul E Rangel Date: Thu, 24 Feb 2022 11:54:32 -0700 Subject: [PATCH] soc/amd/common/psp_verstage: Save transfer buffer during S0i3 resume We need to save the transfer buffer so we can transfer the cbmem console and timestamps into x86 DRAM. BUG=b:221231786 TEST=Boot guybrush and verify S0i3 resume works. Also dumped the transfer buffer from the OS and verified the console contents got transferred. Signed-off-by: Raul E Rangel Change-Id: I1d3b34c90e0e18609b0c6a0cdedab35aeefbd84b Reviewed-on: https://review.coreboot.org/c/coreboot/+/62347 Tested-by: build bot (Jenkins) Reviewed-by: Karthik Ramasubramanian --- src/soc/amd/common/psp_verstage/psp_verstage.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/soc/amd/common/psp_verstage/psp_verstage.c b/src/soc/amd/common/psp_verstage/psp_verstage.c index 05f0cdac39..9d0fb2259a 100644 --- a/src/soc/amd/common/psp_verstage/psp_verstage.c +++ b/src/soc/amd/common/psp_verstage/psp_verstage.c @@ -252,6 +252,11 @@ void Main(void) if (bootmode == PSP_BOOT_MODE_S0i3_RESUME) { psp_verstage_s0i3_resume(); + post_code(POSTCODE_SAVE_BUFFERS); + retval = save_buffers(); + if (retval) + post_code(retval); + post_code(POSTCODE_UNMAP_FCH_DEVICES); unmap_fch_devices();