From: Zhenzhong Duan <zhenzhong.duan@oracle.com>
To: Xen-Devel <xen-devel@lists.xen.org>
Cc: david.westwood@hpe.com,
Andrew Cooper3 <andrew.cooper3@citrix.com>,
manoj.gopalasetty@hpe.com, JBeulich <JBeulich@suse.com>,
Srinivas REDDY Eeda <srinivas.eeda@oracle.com>
Subject: [PATCH] x86/mmcfg/drhd: Move acpi_mmcfg_init() before calling acpi_parse_dmar()
Date: Wed, 15 Aug 2018 22:10:11 -0700 (PDT) [thread overview]
Message-ID: <5fd7cd01-d55b-4fba-b57b-41560dc99cf2@default> (raw)
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.duan@oracle.com>
Tested-by: Gopalasetty, Manoj <manoj.gopalasetty@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
next reply other threads:[~2018-08-16 5:10 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-08-16 5:10 Zhenzhong Duan [this message]
2018-08-16 7:10 ` [PATCH] x86/mmcfg/drhd: Move acpi_mmcfg_init() before calling acpi_parse_dmar() Jan Beulich
2018-08-16 9:13 ` Zhenzhong Duan
2018-08-16 9:30 ` Zhenzhong Duan
2018-08-16 10:42 ` Jan Beulich
2018-08-16 23:50 ` Zhenzhong Duan
2018-08-16 10:37 ` Jan Beulich
2018-08-17 0:12 ` Zhenzhong Duan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5fd7cd01-d55b-4fba-b57b-41560dc99cf2@default \
--to=zhenzhong.duan@oracle.com \
--cc=JBeulich@suse.com \
--cc=andrew.cooper3@citrix.com \
--cc=david.westwood@hpe.com \
--cc=manoj.gopalasetty@hpe.com \
--cc=srinivas.eeda@oracle.com \
--cc=xen-devel@lists.xen.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).