[PATCH] UefiPayloadPkg: Fix PciLib dependency on BlSupportDxe


Patrick Rudolph
 

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 useable 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>
---
UefiPayloadPkg/UefiPayloadPkg.fdf | 5 +++++
1 file changed, 5 insertions(+)

diff --git a/UefiPayloadPkg/UefiPayloadPkg.fdf b/UefiPayloadPkg/UefiPayload=
Pkg.fdf
index a97ace7395..1ae260c13a 100644
--- a/UefiPayloadPkg/UefiPayloadPkg.fdf
+++ b/UefiPayloadPkg/UefiPayloadPkg.fdf
@@ -80,6 +80,11 @@ READ_STATUS =3D TRUE
READ_LOCK_CAP =3D TRUE=0D
READ_LOCK_STATUS =3D TRUE=0D
=0D
+APRIORI DXE {=0D
+ INF MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf=0D
+ INF MdeModulePkg/Universal/PCD/Dxe/Pcd.inf=0D
+ INF UefiPayloadPkg/BlSupportDxe/BlSupportDxe.inf=0D
+}=0D
=0D
#=0D
# DXE Phase modules=0D
--=20
2.26.2

Join devel@edk2.groups.io to automatically receive all group messages.