UPSTREAM: ACPI S3: Remove HIGH_MEMORY_SAVE where possible
Add implementation to use actual requirements of ramstage size for S3 resume backup in CBMEM. The backup covers complete pages of 4 KiB. Only the required amount of low memory is backed up when ACPI_TINY_LOWMEM_BACKUP is selected for the platform. Enable this option for AGESA and binaryPI, other platforms (without RELOCATABLE_RAMSTAGE) currently keep their romstage ramstack in low memory for s3 resume path. BUG=None BRANCH=None TEST=None Signed-off-by: Kysti Mlkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/15255 Reviewed-by: Aaron Durbin <adurbin@chromium.org> Tested-by: build bot (Jenkins) Tested-by: Raptor Engineering Automated Test Stand <noreply@raptorengineeringinc.com> Change-Id: Ide7ce013f3727c2928cdb00fbcc7e7e84e859ff1 Reviewed-on: https://chromium-review.googlesource.com/410076 Commit-Ready: Furquan Shaikh <furquan@chromium.org> Tested-by: Furquan Shaikh <furquan@chromium.org> Reviewed-by: Aaron Durbin <adurbin@chromium.org>
This commit is contained in:
parent
c45546f7cf
commit
fa81f61d39
10 changed files with 175 additions and 26 deletions
|
|
@ -173,6 +173,10 @@ uintptr_t romstage_ram_stack_base(size_t size, int src);
|
|||
uintptr_t romstage_ram_stack_top(void);
|
||||
uintptr_t romstage_ram_stack_bottom(void);
|
||||
|
||||
/* Backup OS memory to CBMEM_ID_RESUME on ACPI S3 resume path,
|
||||
* if ramstage overwrites low memory. */
|
||||
void backup_ramstage_section(uintptr_t base, size_t size);
|
||||
|
||||
/***********************
|
||||
* PAYLOAD LOADING *
|
||||
***********************/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue