Branch: refs/heads/master
  Home:   https://github.com/tianocore/edk2
  Commit: bfefdc2c49ca9487b7aa0df196b2aca6c0c170a2
      
https://github.com/tianocore/edk2/commit/bfefdc2c49ca9487b7aa0df196b2aca6c0c170a2
  Author: Lean Sheng Tan <[email protected]>
  Date:   2022-04-10 (Sun, 10 Apr 2022)

  Changed paths:
    M UefiPayloadPkg/Library/PciHostBridgeLib/PciHostBridgeSupport.c

  Log Message:
  -----------
  UefiPayloadPkg: Fix PciHostBridgeLib

Don't assume a 64bit register always holds an address greater than 4GB.
Check the value in the register and decide which Aperature it should be
assigned to.

Fixes assertion
"ASSERT [PciHostBridgeDxe] Bridge->MemAbove4G.Base >= 0x0000000100000000ULL".

Tested with coreboot as bootloader on platforms that have PCI resource
above 4GiB and on platforms that don't have resource above 4GiB.

Cc: Guo Dong <[email protected]>
Cc: Ray Ni <[email protected]>
Cc: Maurice Ma <[email protected]>
Cc: Benjamin You <[email protected]>
Cc: Sean Rhodes <[email protected]>
Signed-off-by: Patrick Rudolph <[email protected]>
Reviewed-by Sean Rhodes <[email protected]>
Reviewed-by: Guo Dong <[email protected]>




_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to