From: Stefan Bader <stefan.bader@canonical.com>
To: "xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>
Subject: Xen 4.3/AMD: setup ssss:bb:dd.f for d0 failed (-ENODEV)
Date: Mon, 22 Jul 2013 14:55:15 +0200 [thread overview]
Message-ID: <51ED2BB3.4050806@canonical.com> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 2331 bytes --]
While testing Xen 4.3 on my AMD testbox I noticed the following output from the
hypervisor (this has no visible effect on at least simple operation):
(XEN) setup 0000:00:18.0 for d0 failed (-19)
(XEN) setup 0000:00:18.1 for d0 failed (-19)
(XEN) setup 0000:00:18.2 for d0 failed (-19)
(XEN) setup 0000:00:18.3 for d0 failed (-19)
(XEN) setup 0000:00:18.4 for d0 failed (-19)
(XEN) setup 0000:00:19.0 for d0 failed (-19)
(XEN) setup 0000:00:19.1 for d0 failed (-19)
(XEN) setup 0000:00:19.2 for d0 failed (-19)
(XEN) setup 0000:00:19.3 for d0 failed (-19)
(XEN) setup 0000:00:19.4 for d0 failed (-19)
The PCI devices related to the output are all PCI host bridges:
00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD]
Family 10h Processor HyperTransport Configuration
00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD]
Family 10h Processor Address Map
00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD]
Family 10h Processor DRAM Controller
00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD]
Family 10h Processor Miscellaneous Control
00:18.4 Host bridge: Advanced Micro Devices, Inc. [AMD]
Family 10h Processor Link Control
00:19.0 Host bridge: Advanced Micro Devices, Inc. [AMD]
Family 10h Processor HyperTransport Configuration
00:19.1 Host bridge: Advanced Micro Devices, Inc. [AMD]
Family 10h Processor Address Map
00:19.2 Host bridge: Advanced Micro Devices, Inc. [AMD]
Family 10h Processor DRAM Controller
00:19.3 Host bridge: Advanced Micro Devices, Inc. [AMD]
Family 10h Processor Miscellaneous Control
00:19.4 Host bridge: Advanced Micro Devices, Inc. [AMD]
Family 10h Processor Link Control
This all seems to be related to PCI passthrough setup started from
xen/drivers/passthrough/vtd/iommu.c:intel_iommu_dom0_init() or
xen/drivers/passthrough/amd/pci_amd_iommu.c:amd_iommu_dom0_init()
While the Intel code skips over bridge type entries, the AMD code has no such
exception and will fail the handler with -ENODEV when find_iommu_for_device
fails. But I am not sure one can just compare implementations here.
Would someone have more insight to decide whether skipping host bridges in
amd_iommu_setup_dom0_device would make sense? I do not see any bad effects
caused by this but it does not look good and did not happen before.
-Stefan
[-- Attachment #1.2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 899 bytes --]
[-- Attachment #2: Type: text/plain, Size: 126 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel
next reply other threads:[~2013-07-22 12:55 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-22 12:55 Stefan Bader [this message]
2013-08-05 12:58 ` Xen 4.3/AMD: setup ssss:bb:dd.f for d0 failed (-ENODEV) Jan Beulich
2013-08-06 2:02 ` Suravee Suthikulanit
2013-08-06 6:55 ` Jan Beulich
2013-08-06 14:11 ` Suravee Suthikulanit
2013-08-06 14:53 ` Jan Beulich
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=51ED2BB3.4050806@canonical.com \
--to=stefan.bader@canonical.com \
--cc=xen-devel@lists.xensource.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.