From: Joerg Roedel <joro@8bytes.org>
To: "Jens Krehbiel-Gräther" <xen@jkg-it-services.de>
Cc: Leonardo Prosperi <leo.prosperi@gmail.com>,
"xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>,
Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>,
"Przywara, Andre" <Andre.Przywara@amd.com>,
Wei Huang <wei.huang2@amd.com>,
Sander Eikelenboom <linux@eikelenboom.it>,
Joop Boonen <joop_boonen@web.de>,
Oakley <andrew@ado.is-a-geek.net>
Subject: Re: IOMMU and AMD 890fx
Date: Mon, 21 Jun 2010 17:39:00 +0200 [thread overview]
Message-ID: <20100621153900.GC20761@8bytes.org> (raw)
In-Reply-To: <4C1F7E7A.7030301@jkg-it-services.de>
Hi Jens,
great to know. Thanks for your testing.
Joerg
On Mon, Jun 21, 2010 at 05:00:10PM +0200, Jens Krehbiel-Gräther wrote:
> Another board with working AMD IOMMU: Asus M4A89TD Pro/USB3
>
> Just got it in hands and testet successful!
>
> Jens
>
>
>
> Am 18.06.2010 16:24, schrieb Sander Eikelenboom:
>> Hi Jens,
>>
>> Thx for reporting your successful pci passthrough with an AMD IOMMU, i have put this motherboard in the xen vt-d/iommu wiki as a motherboard with the BIOS supporting the IOMMU.
>> http://wiki.xensource.com/xenwiki/VTdHowTo
>>
>> --
>> Sander
>>
>>> Hi!
>>
>>> Thanks for the tips!
>>
>>> With xen-4.0-testing.hg tree + 2.6.32-bpo.5-xen-amd64 (from debian lenny
>>> backports) it works. So the 4.0.0 release could be buggy?
>>> When I compile and install xen-4.0-testing.hg tree it works as you
>>> described.
>>> With 4.0.0 it did not work with any pci device, with xen-4.0-testing.hg
>>> tree it works with the two I tested for the moment:
>>
>>> 00:14.2 Audio device: ATI Technologies Inc SBx00 Azalia (Intel HDA) (rev 40)
>>> 03:00.0 Ethernet controller: Marvell Technology Group Ltd. Device 4381
>>> (rev 11)
>>
>>> (I just randomly take two devices).
>>> They appear in the hvm virtual machine and they are working.
>>
>>> Great, thank you very much!
>>
>>> Jens
>>
>>
>>> Am 17.06.2010 19:16, schrieb Wei Huang:
>>>> Hi Jens,
>>>>
>>>> Thanks for testing it out. I tested Xen 4.0 on my machine this morning.
>>>> The passthru did work. Here are the details:
>>>>
>>>> 1. I used Xen 4.0 (xen-4.0-testing.hg tree) + 2.6.18.8 Dom0
>>>> 2. My system is a workstation; so it doesn't have a HDA device. Here is
>>>> what I get from lspci (I skipped some of un-related devices):
>>>> ==========
>>>> ...
>>>> 00:14.0 SMBus: ATI Technologies Inc SBx00 SMBus Controller (rev 3b)
>>>> 00:14.1 IDE interface: ATI Technologies Inc SB700/SB800 IDE Controller
>>>> 00:14.3 ISA bridge: ATI Technologies Inc SB700/SB800 LPC host controller
>>>> 00:14.4 PCI bridge: ATI Technologies Inc SBx00 PCI to PCI Bridge
>>>> 00:14.5 USB Controller: ATI Technologies Inc SB700/SB800 USB OHCI2
>>>> Controller
>>>> ...
>>>> 01:00.0 VGA compatible controller: ATI Technologies Inc Device 949e
>>>> 01:00.1 Audio device: ATI Technologies Inc RV730XT Audio device [Radeon
>>>> HD 4670]
>>>> 02:00.0 Ethernet controller: Intel Corporation 82571EB Gigabit Ethernet
>>>> Controller (rev 06)
>>>> 02:00.1 Ethernet controller: Intel Corporation 82571EB Gigabit Ethernet
>>>> Controller (rev 06)
>>>> 03:00.0 Ethernet controller: Intel Corporation 82572EI Gigabit Ethernet
>>>> Controller (Copper) (rev 06)
>>>> ==========
>>>> As you can see, I have two NICs (a two-port Intel 82571EB NIC and a
>>>> single-port 82572EI NIC). I am going to passthru 82571EB NIC to a Linux
>>>> guest VM.
>>>>
>>>> 3. Here is the output from "xm dmesg". Because you also see a similar
>>>> message, I think your IOMMU is working.
>>>> (XEN) AMD-Vi: IOMMU 0 Enabled.
>>>> (XEN) I/O virtualisation enabled
>>>> (XEN) I/O virtualisation for PV guests disabled
>>>>
>>>> FYI, here is my grub entry:
>>>> ==================
>>>> title 64bit Xen-unstable on SLES11
>>>> root (hd0,5)
>>>> kernel /boot/xen.gz dom0_mem=512M console=com2 com2=115200,8n1 iommu=1
>>>> module /boot/vmlinuz-2.6.18.8 root=/dev/hdb6 resume=/dev/hdb3
>>>> module /boot/initrd-2.6.18.8
>>>> ==================
>>>>
>>>> 4. After login, I removed 82571EB from dom0
>>>>
>>>> > echo -n "0000:02:00.0"> /sys/bus/pci/drivers/e1000e/unbind
>>>> > echo -n "0000:02:00.1"> /sys/bus/pci/drivers/e1000e/unbind
>>>> > echo -n "0000:02:00.0"> /sys/bus/pci/drivers/pciback/new_slot
>>>> > echo -n "0000:02:00.1"> /sys/bus/pci/drivers/pciback/new_slot
>>>> > echo -n "0000:02:00.0"> /sys/bus/pci/drivers/pciback/bind
>>>> > echo -n "0000:02:00.1"> /sys/bus/pci/drivers/pciback/bind
>>>>
>>>> 5. In guest (ttylinux) configure file, I use the following setting.
>>>> ...
>>>> pci=[ '02:00.0', '02:00.1' ]
>>>> ...
>>>>
>>>> 6. After ttylinux booted, I saw two Intel NICs. The IP address was
>>>> obtained automatically. See the attached image file.
>>>>
>>>> Same as what Konrad has mentioned, I would recommend two things: i)
>>>> instead of passthru HDA, try other independent PCIe devices first (such
>>>> as NICs); ii) configure the passthru devices in guest configure file,
>>>> instead of use it a hot-plug device. I can send you my guest configure
>>>> file if you need it.
>>>>
>>>> PS: I am pretty confident HDA passthru work because I tested it on an
>>>> desktop system before. Here is the list of devices I have passthru to a
>>>> Win7 guest VM on that system: (1) USB keyboard and mouse; (2) HDA audio;
>>>> (3) ATI graphics.
>>>>
>>>> Thanks,
>>>> -Wei
>>>>
>>>>
>>>>
>>>> Konrad Rzeszutek Wilk wrote:
>>>>> On Thu, Jun 17, 2010 at 12:09:31AM +0200, Jens Krehbiel-Gräther wrote:
>>>>>> Hi!
>>>>>>
>>>>>> I now have a Asus Crosshair IV for testing and this board (as I
>>>>>> postet earlier) supports iommu. Now I have installed Debian lenny
>>>>>> (5.0) and compiled xen 4.0.0.
>>>>>> Xen is running now and I have installed a hvm debian lenny to which
>>>>>> I would like to bind a pci device but that doesn't work.
>>>>>> Perhaps I am doing something wrong and you could help me?
>>>>>
>>>>> Is that the _only_ PCI device you have tried to assign? Did you try to
>>>>> assign other PCI devices which have the function number being zero?
>>>>>> and xm dmesg this:
>>>>>>
>>>>>> (XEN) domctl.c:853:d0 XEN_DOMCTL_assign_device: assign device
>>>>>> (0:14.2) failed
>>>>>
>>>>> That is not very useful. Wish it gave you the return code at least.
>>>>> If you are comfortable with adding printks in the Xen hypervisor I
>>>>> would modify it a bit to see what was the 'ret' value and why
>>>>> 'intel_iommu_assign_device' function failed.
>>>>>
>>>>>> So can anyone tell me what I am doing wrong??
>>>>>
>>>>> Please also attach the full serial long, including the Xen one - and run
>>>>> it with 'loglvl=all iommu=verbose'.
>>>>>
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> Xen-devel mailing list
>>>> Xen-devel@lists.xensource.com
>>>> http://lists.xensource.com/xen-devel
>>
>>
>>
next prev parent reply other threads:[~2010-06-21 15:39 UTC|newest]
Thread overview: 48+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <z2n56ae3d9b1005081631sf3c31fafsb24b018c70b11b1a@mail.gmail.com>
2010-05-09 18:01 ` IOMMU and AMD 890fx Leonardo Prosperi
2010-05-10 4:43 ` Huang2, Wei
2010-05-10 6:16 ` Pasi Kärkkäinen
2010-05-10 6:38 ` Sander Eikelenboom
2010-06-03 4:07 ` Leonardo Prosperi
2010-06-03 8:19 ` Sander Eikelenboom
2010-06-03 8:53 ` Joop Boonen
2010-06-03 9:23 ` Sander Eikelenboom
2010-06-03 10:51 ` Jens Krehbiel-Gräther
2010-06-03 11:11 ` Sander Eikelenboom
2010-06-04 6:14 ` Huang2, Wei
2010-06-06 9:08 ` Jens Krehbiel-Gräther
[not found] ` <4C0FF901.6090708@amd.com>
2010-06-10 7:12 ` Jens Krehbiel-Gräther
2010-06-10 7:23 ` Sander Eikelenboom
2010-06-10 10:21 ` Jens Krehbiel-Gräther
2010-06-10 18:01 ` Jens Krehbiel-Gräther
2010-06-03 11:26 ` Joerg Roedel
2010-06-03 11:50 ` Sander Eikelenboom
2010-06-03 11:51 ` Andre Przywara
2010-06-03 13:41 ` Jens Krehbiel-Gräther
2010-06-03 15:05 ` Joerg Roedel
2010-06-10 18:49 ` Andrew Oakley
2010-06-10 19:12 ` Wei Huang
2010-06-10 19:15 ` Andrew Oakley
2010-06-14 11:08 ` Jens Krehbiel-Gräther
2010-06-14 11:30 ` Joerg Roedel
2010-06-14 13:49 ` Andre Przywara
2010-06-15 21:37 ` Joop Boonen
2010-06-15 22:40 ` Huang2, Wei
2010-06-16 22:09 ` Jens Krehbiel-Gräther
2010-06-17 13:14 ` Konrad Rzeszutek Wilk
2010-06-17 17:16 ` Wei Huang
2010-06-17 23:35 ` Jens Krehbiel-Gräther
2010-06-18 14:24 ` Sander Eikelenboom
2010-06-19 7:48 ` Jens Krehbiel-Gräther
2010-06-21 15:00 ` Jens Krehbiel-Gräther
2010-06-21 15:39 ` Joerg Roedel [this message]
2010-06-18 17:36 ` Huang2, Wei
2010-06-19 7:46 ` Jens Krehbiel-Gräther
[not found] ` <4C1A5882 <4C20E51D.1000406@jkg-it-services.de>
[not found] ` <EE335F95F28A664DB4A21289D2AA053B42F7C382@SAUSEXMBP01.amd.com>
2010-06-23 12:45 ` Jens Krehbiel-Gräther
2010-06-17 8:20 ` Jens Krehbiel-Gräther
2010-06-26 20:49 ` Joop Boonen
2010-07-06 14:54 ` Andrew Oakley
2010-07-06 15:03 ` Sander Eikelenboom
2010-07-07 7:47 ` Sander Eikelenboom
2010-07-07 10:37 ` Jens Krehbiel-Gräther
2010-07-07 13:53 ` Sander Eikelenboom
2010-07-07 18:28 ` Sander Eikelenboom
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=20100621153900.GC20761@8bytes.org \
--to=joro@8bytes.org \
--cc=Andre.Przywara@amd.com \
--cc=andrew@ado.is-a-geek.net \
--cc=joop_boonen@web.de \
--cc=konrad.wilk@oracle.com \
--cc=leo.prosperi@gmail.com \
--cc=linux@eikelenboom.it \
--cc=wei.huang2@amd.com \
--cc=xen-devel@lists.xensource.com \
--cc=xen@jkg-it-services.de \
/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).