x86/mmcfg/drhd: Move acpi_mmcfg_init() call before calling acpi_parse_dmar()
PATCH v3 2/2 x86/mmcfg/drhd: Move acpi_mmcfg_init() call before calling acpi_parse_dmar()
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
@@ -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 -5
@@ -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 )
@@ -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 ();
@@ -1598,8 +1598,6 @@ void __init noreturn __start_xen(unsigned long mbi_p)vesa_mtrr_init (); -acpi_mmcfg_init (); -early_msi_init ();iommu_setup ();/* setup iommu if available */
Signature · 6 lines
1.7.3 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xenproject.org/mailman/listinfo/xen-devel
Quoted 12 lines · Zhenzhong Duan
pci_conf_read8()needs pci mmcfg mapping to work on multiple pci segments system such as HPE Superdome-Flex.Move
acpi_mmcfg_init()call inacpi_boot_init()before callingacpi_parse_dmar()so that whenpci_conf_read8()is called inacpi_parse_dev_scope(), we already have the mapping set up.
mmio_ro_rangesinitialization is also moved ahead as it's the only dependency ofpci_mmcfg_arch_enable()need to be moved. Also checked codes between the old and new call sites to ensure we don't break anything.
Quoted 6 lines
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.
Signed-off-by Zhenzhong Duan <[email protected]>Tested-by Gopalasetty, Manoj <[email protected]>
LGTM:
I'm however failing to find patch 1/2 in this series. Could you please make sure threading is setup correctly?
Thanks, Roger.
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Quoted 17 lines · Roger Pau Monné
Quoted 16 lines · Zhenzhong Duan
pci_conf_read8()needs pci mmcfg mapping to work on multiple pci segments system such as HPE Superdome-Flex.Move
acpi_mmcfg_init()call inacpi_boot_init()before callingacpi_parse_dmar()so that whenpci_conf_read8()is called inacpi_parse_dev_scope(), we already have the mapping set up.
mmio_ro_rangesinitialization is also moved ahead as it's the only dependency ofpci_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.
Quoted 6 lines
Quoted 2 lines
Signed-off-by Zhenzhong Duan <[email protected]>Tested-by Gopalasetty, Manoj <[email protected]>LGTM:
Reviewed-by Roger Pau Monné <[email protected]>
Thanks for reviewing.
Quoted 3 lines
I'm however failing to find patch 1/2 in this series. Could you please make sure threading is setup correctly?
Hmm, how to make that happen, do you mean sending the two patches in a bunch? patch 1/2 is '[PATCH v2 1/2] x86/mmcfg: Rename pt_pci_init() and call it in acpi_mmcfg_init()"
It's acked in v2, so there is no v3 for patch 1/2.
Thanks
Zhenzhong
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Quoted 26 lines · Zhenzhong Duan
Quoted 17 lines · Roger Pau Monné
Quoted 16 lines · Zhenzhong Duan
pci_conf_read8()needs pci mmcfg mapping to work on multiple pci segments system such as HPE Superdome-Flex.Move
acpi_mmcfg_init()call inacpi_boot_init()before callingacpi_parse_dmar()so that whenpci_conf_read8()is called inacpi_parse_dev_scope(), we already have the mapping set up.
mmio_ro_rangesinitialization is also moved ahead as it's the only dependency ofpci_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.
Quoted 6 lines
Quoted 2 lines
Signed-off-by Zhenzhong Duan <[email protected]>Tested-by Gopalasetty, Manoj <[email protected]>LGTM:
Reviewed-by Roger Pau Monné <[email protected]>Thanks for reviewing.
Quoted 1 line
Quoted 8 lines
Quoted 2 lines
I'm however failing to find patch 1/2 in this series. Could you please make sure threading is setup correctly?
Hmm, how to make that happen, do you mean sending the two patches in a bunch?
patch 1/2 is '[PATCH v2 1/2] x86/mmcfg: Renamept_pci_init()and call it inacpi_mmcfg_init()"It's acked in v2, so there is no v3 for patch 1/2.
Oh, I see. So you have two choices here: either send patch 1/2 with the Ack together with patch 2/2, or just drop the 2/2 prefix and send the patch alone. But sending v3 2/2 without v3 1/2 makes people think there's a v3 1/2 lost somewhere IMO.
Thanks, Roger.
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Quoted 34 lines · Roger Pau Monné
Quoted 33 lines · Zhenzhong Duan
Quoted 17 lines · Roger Pau Monné
Quoted 16 lines · Zhenzhong Duan
pci_conf_read8()needs pci mmcfg mapping to work on multiple pci segments system such as HPE Superdome-Flex.Move
acpi_mmcfg_init()call inacpi_boot_init()before callingacpi_parse_dmar()so that whenpci_conf_read8()is called inacpi_parse_dev_scope(), we already have the mapping set up.
mmio_ro_rangesinitialization is also moved ahead as it's the only dependency ofpci_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.
Quoted 6 lines
Quoted 2 lines
Signed-off-by Zhenzhong Duan <[email protected]>Tested-by Gopalasetty, Manoj <[email protected]>LGTM:
Reviewed-by Roger Pau Monné <[email protected]>Thanks for reviewing.
Quoted 3 lines
I'm however failing to find patch 1/2 in this series. Could you please make sure threading is setup correctly?
Hmm, how to make that happen, do you mean sending the two patches in a bunch?
patch 1/2 is '[PATCH v2 1/2] x86/mmcfg: Renamept_pci_init()and call it inacpi_mmcfg_init()"
Quoted 6 lines
Quoted 1 line
It's acked in v2, so there is no v3 for patch 1/2.
Oh, I see. So you have two choices here: either send patch 1/2 with the Ack together with patch 2/2, or just drop the 2/2 prefix and send the patch alone. But sending v3 2/2 without v3 1/2 makes people think there's a v3 1/2 lost somewhere IMO.
Understand, I'll resend the two again.
Thanks
Zhenzhong
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel