vboot: Fix S3 resume with stage_cache
commit6739a6a89f5b7526bddc63b16ffc519c39d788dd
authorKyösti Mälkki <kyosti.malkki@gmail.com>
Tue, 4 Jul 2023 07:09:59 +0000 (4 10:09 +0300)
committerKyösti Mälkki <kyosti.malkki@gmail.com>
Mon, 10 Jul 2023 04:43:05 +0000 (10 04:43 +0000)
treeae1375f5a837ea10c90dca063f0f5369ea34311a
parent72d7181e4f80fb7c344337364fd665fc4c49132a
vboot: Fix S3 resume with stage_cache

In VBOOT_STARTS_IN_ROMSTAGE=y case, vboot_run_logic() did not
get called when postcar was loaded from TSEG stage cache on
ACPI S3 resume path. Resume failed as MP init attempts to
access microcode update from unverified FW_MAIN_A/B section.

In a similar fashion, for POSTCAR=n, loading ramstage from
TSEG stage cache would bypass the call to vboot_run_logic().

TEST=samsung/lumpy with VBOOT_STARTS_IN_ROMSTAGE=y is able
to complete S3 resume.

Change-Id: I77fe86d5fd89d22b5ef6f43e65a85a4ccd3259d9
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/76209
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
Reviewed-by: Julius Werner <jwerner@chromium.org>
src/arch/x86/postcar_loader.c
src/lib/prog_loaders.c