On Mon, May 09, 2016 at 02:26:29PM +0800, Ruiyu Ni wrote:
> The patch serials fix two bugs in PciHostBridgeDxe driver.
> And it adds a new field in PCI_ROOT_BRIDGE structure to support OVMF above
> Xen support.
> 
Hi Ray,

The patches work for OVMF/Xen. The system booted into OS without
problem. However, With OVMF/KVM, I got this:

[...]
Select Item: 0x0
FW CFG Signature: 0x554D4551
Select Item: 0x1
FW CFG Revision: 0x3
QemuFwCfg interface is supported.
Select Item: 0x19
InitRootBridge: populated root bus 0, with room for 255 subordinate bus(es)
RootBridge: PciRoot(0x0)
  Support/Attr: 70069 / 70069
    DmaAbove4G: No
NoExtConfSpace: No
     AllocAttr: 3 (CombineMemPMem Mem64Decode)
           Bus: 0 - FF
            Io: C000 - FFFF
           Mem: 90000000 - FBFFFFFF
    MemAbove4G: 800000000 - FFFFFFFFF
          PMem: 0 - 0
   PMemAbove4G: 0 - 0
ASSERT 
/home/gary/git/edk2/MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciRootBridgeIo.c(116):
 Bridge->PMemAbove4G.Base >= 0x0000000100000000ULL

Would you mind to check it?

Gary Lin

> Ruiyu Ni (6):
>   MdeModulePkg/PciHostBridgeDxe: Don't miss prefetchable MMIO aperture
>   MdeModulePkg/PciHostBridgeDxe: Fix a Base/Limit comparing bug
>   OvmfPkg/PciHostBridgeLib: Set correct Base/Limit for absent resource
>   MdeModulePkg/PciHostBridgeLib: Add ResourceAssigned field
>   MdeModulePkg/PciHostBridgeDxe: Honor ResourceAssigned
>   OvmfPkg/PciHostBridgeLib: Scan for root bridges when running over Xen
> 
>  .../Bus/Pci/PciHostBridgeDxe/PciHostBridge.c       |  96 +++-
>  .../Bus/Pci/PciHostBridgeDxe/PciRootBridge.h       |   4 +-
>  .../Bus/Pci/PciHostBridgeDxe/PciRootBridgeIo.c     | 106 ++--
>  MdeModulePkg/Include/Library/PciHostBridgeLib.h    |   2 +
>  .../Library/PciHostBridgeLib/PciHostBridgeLib.c    | 550 
> +++++++++++++++++++--
>  .../Library/PciHostBridgeLib/PciHostBridgeLib.inf  |   1 +
>  6 files changed, 658 insertions(+), 101 deletions(-)
> 
> -- 
> 2.7.0.windows.1
> 
> _______________________________________________
> edk2-devel mailing list
> [email protected]
> https://lists.01.org/mailman/listinfo/edk2-devel
> 
_______________________________________________
edk2-devel mailing list
[email protected]
https://lists.01.org/mailman/listinfo/edk2-devel

Reply via email to