UPSTREAM: AGESA: Log if memory training result cannot be stored
A problem around CAR teardown time may result with missing
training results at the time we want to save them.
Record this in the logs for debugging purposes, it will
not be possible to use S3 suspend if this happens.
BUG=none
BRANCH=none
TEST=none
Change-Id: I1be67747db636b92ddc7c38d2d851ce81b7b359d
Signed-off-by: Patrick Georgi <pgeorgi@chromium.org>
Original-Commit-Id: 86690eb0a1
Original-Change-Id: Id2ba8facbd5d90fe3ed9c6900628309c226c2454
Original-Signed-off-by: Kysti Mlkki <kyosti.malkki@gmail.com>
Original-Reviewed-on: https://review.coreboot.org/18534
Original-Tested-by: build bot (Jenkins)
Original-Reviewed-by: Marc Jones <marc@marcjonesconsulting.com>
Reviewed-on: https://chromium-review.googlesource.com/452464
This commit is contained in:
parent
5b96ebc654
commit
afc9a7671d
1 changed files with 5 additions and 0 deletions
|
|
@ -126,6 +126,11 @@ AGESA_STATUS OemS3Save(AMD_S3SAVE_PARAMS *S3SaveParams)
|
|||
if (size && dataBlock->NvStorageSize)
|
||||
spi_SaveS3info(pos, size, dataBlock->NvStorage,
|
||||
dataBlock->NvStorageSize);
|
||||
else
|
||||
printk(BIOS_EMERG,
|
||||
"Error: Cannot store memory training results in SPI.\n"
|
||||
"Error: S3 resume will not be possible.\n"
|
||||
);
|
||||
|
||||
/* To be consumed in AmdS3LateRestore. */
|
||||
char *heap = cbmem_add(CBMEM_ID_RESUME_SCRATCH, HIGH_MEMORY_SCRATCH);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue