Skip to contentSkip to conversation

x86/mmcfg/drhd: Move acpi_mmcfg_init() call before calling acpi_parse_dmar()

PATCH RESEND Zhenzhong Duan 2 participants 2 messages Aug 30, 2018

lore
Share & tools
lore
#0 lore raw

Hi Maintainers,

May I ask if this patch will be merged upstream or not? Our customer is pushing us urgently with timeline for errata release and we are waiting for official version from upstream.

Thanks
Zhenzhong

Quoted 72 lines · ----- [email protected] 写道:

pci_conf_read8() needs pci mmcfg mapping to work on multiple pci segments system such as HPE Superdome-Flex.

Move acpi_mmcfg_init() call in acpi_boot_init() before calling acpi_parse_dmar() so that when pci_conf_read8() is called in acpi_parse_dev_scope(), we already have the mapping set up.

mmio_ro_ranges initialization is also moved ahead as it's the only dependency of pci_mmcfg_arch_enable() need to be moved. Also checked codes between the old and new call sites to ensure we don't break anything.

Furthermore MMCFG will continue to not work this early (or more precisely not at all until Dom0 boot has progressed far enough) if the range(s) isn't/aren't marked reserved in E820.

---
 xen/arch/x86/acpi/boot.c |    2 ++
 xen/arch/x86/setup.c     |    8 +++-----
 2 files changed, 5 insertions(+), 5 deletions(-)
xen/arch/x86/acpi/boot.c +2 -0
index 8e6c96d..e89c2e9 100644
@@ -724,6 +724,8 @@ int __init acpi_boot_init(void)
 
 	acpi_table_parse(ACPI_SIG_HPET, acpi_parse_hpet);
 
+	acpi_mmcfg_init();
+
 	acpi_dmar_init();
 
 	erst_init();
xen/arch/x86/setup.c +3 -0
index d5cc584..eabb011 100644
@@ -1493,6 +1493,9 @@ void __init noreturn __start_xen(unsigned long
 mbi_p)
 
     generic_apic_probe();
 
+    mmio_ro_ranges = rangeset_new(NULL, "r/o mmio ranges",
+                                  RANGESETF_prettyprint_hex);
+
     acpi_boot_init();
 

if ( smp_found_config )

xen/arch/x86/setup.c +0 -3
@@ -1525,9 +1528,6 @@ void __init noreturn __start_xen(unsigned long
 mbi_p)
     /* Low mappings were only needed for some BIOS table parsing. */
     zap_low_mappings();
 
-    mmio_ro_ranges = rangeset_new(NULL, "r/o mmio ranges",
-                                  RANGESETF_prettyprint_hex);
-
     init_apic_mappings();
 
     normalise_cpu_order();
xen/arch/x86/setup.c +0 -2
@@ -1598,8 +1598,6 @@ void __init noreturn __start_xen(unsigned long
 mbi_p)
 
     vesa_mtrr_init();
 
-    acpi_mmcfg_init();
-
     early_msi_init();
 
Quoted 3 lines
     iommu_setup();    /* setup iommu if available */
Signature · 1 line
1.7.3

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel

#1 lore raw
Quoted 4 lines
Quoted 1 line
Quoted 1 line · On 30.08.18 at 02:49, <[email protected]> wrote:

May I ask if this patch will be merged upstream or not? Our customer is pushing us urgently with timeline for errata release and we are waiting for official version from upstream.

Would you mind checking what has gone in before sending such inquiries? Or was there a many hour delay in delivery of this mail?

Also with a patch were initially basic duties were not fulfilled, a larger delay before committing would have to be accepted, for people to have a chance to spot perhaps still present brokenness.

Jan

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel