On a multiple pci segment system such as HPE Superdome-Flex, pci config space from nonzero segment is accessed with mmcfg during acpi parsing DMAR region.
We need to setup mmcfg mapping before that or else drhd isn't correctly setup and devices under it fail to load in dom0. Signed-off-by: Zhenzhong Duan <zhenzhong.d...@oracle.com> Tested-by: Gopalasetty, Manoj <manoj.gopalase...@hpe.com> --- xen/arch/x86/setup.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/xen/arch/x86/setup.c b/xen/arch/x86/setup.c index 8301de8..9af7426 100644 --- a/xen/arch/x86/setup.c +++ b/xen/arch/x86/setup.c @@ -1493,6 +1493,10 @@ void __init noreturn __start_xen(unsigned long mbi_p) generic_apic_probe(); + pt_pci_init(); + + acpi_mmcfg_init(); + acpi_boot_init(); if ( smp_found_config ) @@ -1596,12 +1600,8 @@ void __init noreturn __start_xen(unsigned long mbi_p) local_irq_enable(); - pt_pci_init(); - vesa_mtrr_init(); - acpi_mmcfg_init(); - early_msi_init(); iommu_setup(); /* setup iommu if available */ -- 1.7.3 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel