coreboot/payloads/external
Patrick Rudolph 1044f03878 payloads/external/edk2: Set StatusD register to work around failing AMD boot
On recent AMD platforms the VRT bit in the StatusD register is
read-writeable and set every 1024msec when RTC power is good.
This leads to a timeout in RtcWaitToUpdate() waiting for the bit
to be set and the gEfiRealTimeClockArchProtocolGuid won't be installed.
The protocol is critical to boot.

Adjust the code to not clear the VRT bit, as RtcWaitToUpdate() will
return an error, as it assumes the VRT bit is read-only and hardwired
to one as on Intel ICHs. While the timeout could be increased it
would also increase boot time by up to a second.

On platforms where the VRT bit is read-only the introduced code
does the same as before.

Change-Id: I8bc432114c83fa5f5fb35a144e3a35c38ee8a3de
Signed-off-by: Patrick Rudolph <patrick.rudolph@9elements.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/87415
Reviewed-by: Matt DeVillier <matt.devillier@gmail.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Paul Menzel <paulepanter@mailbox.org>
2025-04-27 21:32:00 +00:00
..
BOOTBOOT treewide: Move stdlib.h to commonlib 2024-03-15 10:09:43 +00:00
coreDOOM payloads: Add SPDX headers to Kconfig 2024-02-18 01:57:39 +00:00
depthcharge payloads/depthcharge: Add DEPTHCHARGE_REPO and DEPTHCHARGE_BRANCH 2024-03-04 22:47:08 +00:00
edk2 payloads/external/edk2: Set StatusD register to work around failing AMD boot 2025-04-27 21:32:00 +00:00
FILO payloads: Add SPDX headers to Kconfig 2024-02-18 01:57:39 +00:00
GRUB2 payloads: Add SPDX headers to Kconfig 2024-02-18 01:57:39 +00:00
iPXE payloads/ipxe/kconfig: Fix option name prefix 2024-07-09 01:59:08 +00:00
leanefi payloads/external/leanefi: Add missing license 2024-06-05 19:56:23 +00:00
linux payloads: Add SPDX headers to Kconfig 2024-02-18 01:57:39 +00:00
LinuxBoot payloads/Linuxboot: Fix u-root build 2024-12-19 07:14:01 +00:00
Memtest86Plus payloads: Add SPDX headers to Kconfig 2024-02-18 01:57:39 +00:00
SeaBIOS payloads: Add SPDX headers to Kconfig 2024-02-18 01:57:39 +00:00
skiboot payloads/external/skiboot/Makefile: fix output on make clean 2022-09-28 17:35:37 +00:00
tint tint: upgrade the tint payload to 0.07 version 2023-08-08 16:03:38 +00:00
U-Boot payloads/external/U-Boot: Upgrade from 2024.04 to 2024.07 2024-08-27 01:11:42 +00:00
.gitignore payloads/edk2: Move building to directory called workspace 2022-08-24 21:27:24 +00:00
Makefile.mk payloads/external/edk2: Set StatusD register to work around failing AMD boot 2025-04-27 21:32:00 +00:00