From 649a59bf83f71c06056b25f4e12cad2a8d137d6c Mon Sep 17 00:00:00 2001 From: Guo Dong Date: Thu, 11 Feb 2021 21:22:45 -0700 Subject: UefiPayloadPkg: Fix PciLib dependency on BlSupportDxe The PciLib depends on PCDs - PcdPciExpressBaseAddress - PcdPciExpressBaseSize being updated by BlSupportDxe before MMCONF accesses are working. Add BlSupportDxe to APRIORI to start it first and get the system into an usable state where at least PCI accesses work reliable. Fixes a bug where BlSupportDxe is scheduled too late and other DXEs fail to load due to broken PCI access. Signed-off-by: Patrick Rudolph Reviewed-by: Maurice Ma --- UefiPayloadPkg/UefiPayloadPkg.fdf | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/UefiPayloadPkg/UefiPayloadPkg.fdf b/UefiPayloadPkg/UefiPayloadPkg.fdf index 05c60ee955..8fc509024b 100644 --- a/UefiPayloadPkg/UefiPayloadPkg.fdf +++ b/UefiPayloadPkg/UefiPayloadPkg.fdf @@ -80,6 +80,11 @@ READ_STATUS = TRUE READ_LOCK_CAP = TRUE READ_LOCK_STATUS = TRUE +APRIORI DXE { + INF MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf + INF MdeModulePkg/Universal/PCD/Dxe/Pcd.inf + INF UefiPayloadPkg/BlSupportDxe/BlSupportDxe.inf +} # # DXE Phase modules -- cgit v1.2.3