From mboxrd@z Thu Jan 1 00:00:00 1970 Subject: UefiPayloadPkg: assert error in PciHostBridgeDxe To: devel@edk2.groups.io From: "King Sumo" X-Originating-Location: Curitiba, Parana, BR (187.95.106.19) X-Originating-Platform: Windows Chrome 83 User-Agent: GROUPS.IO Web Poster MIME-Version: 1.0 Date: Thu, 02 Jul 2020 15:54:36 -0700 Message-ID: Content-Type: multipart/alternative; boundary="y50v4IHpMHvVRVnEf172" --y50v4IHpMHvVRVnEf172 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hi, When booting=C2=A0UefiPayloadPkg in my system (x86 Denverton SoC, coreboot= ) an assert error is generated in the=C2=A0PciHostBridgeDxe driver. In the InitializePciHostBridge() function if all ASSERT's are ignored (by = commenting out the code) the boot can move further on until it reaches the = UEFI Shell. Any clues? Loading driver at 0x0007EE61000 EntryPoint=3D0x0007EE6CF52 PciHostBridgeDx= e.efi InstallProtocolInterface: BC62157E-3E33-4FEC-9920-2D3B36D750DF 7EF1F698 ProtectUefiImageCommon - 0x7EF1F140 - 0x000000007EE61000 - 0x0000000000013000 SetUefiImageMemoryAttributes - 0x000000007EE61000 - 0x0000000000001000 (0x= 0000000000004008) SetUefiImageMemoryAttributes - 0x000000007EE62000 - 0x0000000000010000 (0x= 0000000000020008) SetUefiImageMemoryAttributes - 0x000000007EE72000 - 0x0000000000002000 (0x= 0000000000004008) PROGRESS CODE: V03040002 I0 InitRootBridge: populated root bus 0, with room for 7 subordinate bus(es) RootBridge: PciRoot(0x0) Support/Attr: 10003 / 10003 DmaAbove4G: No NoExtConfSpace: No AllocAttr: 0 () Bus: 0 - 7 Translation=3D0 Io: 0 - 4FFF Translation=3D0 Mem: D4000000 - FE0FFFFF Translation=3D0 MemAbove4G: FFFFFFFFFFFFFFFF - 0 Translation=3D0 PMem: FFFFFFFFFFFFFFFF - 0 Translation=3D0 PMemAbove4G: FFFFFFFFFFFFFFFF - 0 Translation=3D0 PciHostBridgeDxe: IntersectMemoryDescriptor: desc [E0000000, F0000000) typ= e 1 cap 870000000002600F conflicts with aperture [D4000000, FE100000) cap 1 ASSERT_EFI_ERROR (Status =3D Invalid Parameter) ASSERT [PciHostBridgeDxe] /home/lxuser/occ/edk2/MdeModulePkg/Bus/Pci/PciHo= stBridgeDxe/PciHostBridge.c(488): !EFI_ERROR (Status) Thanks, Sumo --y50v4IHpMHvVRVnEf172 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hi,

When booting UefiPayloadPkg in my system (x86 Denverton= SoC, coreboot) an assert error is generated in the PciHostBridgeDxe d= river.
In the InitializePciHostBridge() function if all ASSERT's are i= gnored (by commenting out the code) the boot can move further on until it r= eaches the UEFI Shell.
Any clues?

Loading driver at 0x0007EE61000 EntryPoint=3D0x0007EE6CF52 PciHostBri= dgeDxe.efi
InstallProtocolInterface: BC62157E-3E33-4FEC-9920-2D3B36D750DF 7EF1F6= 98
ProtectUefiImageCommon - 0x7EF1F140
  - 0x000000007EE61000 - 0x0000000000013000
SetUefiImageMemoryAttributes - 0x000000007EE61000 - 0x000000000000100= 0 (0x0000000000004008)
SetUefiImageMemoryAttributes - 0x000000007EE62000 - 0x000000000001000= 0 (0x0000000000020008)
SetUefiImageMemoryAttributes - 0x000000007EE72000 - 0x000000000000200= 0 (0x0000000000004008)
PROGRESS CODE: V03040002 I0
InitRootBridge: populated root bus 0, with room for 7 subordinate bus= (es)
RootBridge: PciRoot(0x0)
  Support/Attr: 10003 / 10003
    DmaAbove4G: No
NoExtConfSpace: No
     AllocAttr: 0 ()
           Bus: 0 - 7 Translation=3D0
            Io: 0 - 4FFF Translation=3D= 0
           Mem: D4000000 - FE0FFFFF Tra= nslation=3D0
    MemAbove4G: FFFFFFFFFFFFFFFF - 0 Translation=3D0
          PMem: FFFFFFFFFFFFFFFF - 0 Transla= tion=3D0
   PMemAbove4G: FFFFFFFFFFFFFFFF - 0 Translation=3D0
PciHostBridgeDxe: IntersectMemoryDescriptor: desc [E0000000, F0000000= ) type 1 cap 870000000002600F conflicts with aperture [D4000000, FE100000) = cap 1
 
ASSERT_EFI_ERROR (Status =3D Invalid Parameter)
ASSERT [PciHostBridgeDxe] /home/lxuser/occ/edk2/MdeModulePkg/Bus/Pci/= PciHostBridgeDxe/PciHostBridge.c(488): !EFI_ERROR (Status)

Thank= s,
Sumo

--y50v4IHpMHvVRVnEf172--