]> git.proxmox.com Git - mirror_edk2.git/commitdiff
UefiPayloadPkg: Fix PciLib dependency on BlSupportDxe
authorGuo Dong <guo.dong@intel.com>
Fri, 12 Feb 2021 04:22:45 +0000 (21:22 -0700)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Fri, 12 Feb 2021 04:44:12 +0000 (04:44 +0000)
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 <patrick.rudolph@9elements.com>
Reviewed-by: Maurice Ma <maurice.ma@intel.com>
UefiPayloadPkg/UefiPayloadPkg.fdf

index 05c60ee955af0a765cee626f990b205bb7c35885..8fc509024b250f42df2f3ad5798b730febaa1500 100644 (file)
@@ -80,6 +80,11 @@ READ_STATUS        = TRUE
 READ_LOCK_CAP      = TRUE\r
 READ_LOCK_STATUS   = TRUE\r
 \r
+APRIORI DXE {\r
+  INF  MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf\r
+  INF  MdeModulePkg/Universal/PCD/Dxe/Pcd.inf\r
+  INF  UefiPayloadPkg/BlSupportDxe/BlSupportDxe.inf\r
+}\r
 \r
 #\r
 # DXE Phase modules\r