WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] IOMMU and AMD 890fx

To: Joerg Roedel <joro@xxxxxxxxxx>
Subject: Re: [Xen-devel] IOMMU and AMD 890fx
From: Andre Przywara <andre.przywara@xxxxxxx>
Date: Thu, 3 Jun 2010 13:51:05 +0200
Cc: Leonardo Prosperi <leo.prosperi@xxxxxxxxx>, Jens Krehbiel-Gräther <xen@xxxxxxxxxxxxxxxxxx>, "Huang2, Wei" <Wei.Huang2@xxxxxxx>, Sander Eikelenboom <linux@xxxxxxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>, Joop Boonen <joop_boonen@xxxxxx>
Delivery-date: Thu, 03 Jun 2010 04:56:50 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <20100603112649.GG11162@xxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <z2n56ae3d9b1005081631sf3c31fafsb24b018c70b11b1a@xxxxxxxxxxxxxx> <y2i56ae3d9b1005091101xd15a9bcbt2244a907745b26f9@xxxxxxxxxxxxxx> <3399D2269986104B959D31B7E919313C06E2BD8E@xxxxxxxxxxxxxxxxxxx> <4410545273.20100510083852@xxxxxxxxxxxxxx> <AANLkTikDGRtmZgT3DdOcdnyDTMr4TnAperaeTXcfB0cM@xxxxxxxxxxxxxx> <571239012.20100603101930@xxxxxxxxxxxxxx> <1857fd65263c9155e5f307f3b7e329d0.squirrel@xxxxxxxxxxxxxxx> <1807175740.20100603112310@xxxxxxxxxxxxxx> <ee4a6ab6f04c6a03ad99464f01b6dabc@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> <20100603112649.GG11162@xxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 2.0.0.23 (X11/20090820)
Hi,

Jörg is correct, thanks for picking this up. Some additions inline.
Joerg Roedel wrote:
Hello Jens,

On Thu, Jun 03, 2010 at 12:51:23PM +0200, Jens Krehbiel-Gräther wrote:
I got this answer from asrock support:

<answer>
So, I get more/final answer from Taiwan department:

For H/W part:
>From chipset spec, RD890(890FX) did support IOMMU.
But IOMMU also need CPU to support.

Thats wrong. The IOMMU is a feature of the chipset northbridge and does
not need additional cpu support.

Till now, AMD has no plan to support
IOMMU on desktop CPU (AM3 socket).

There are AM3 boards out there with server a chipset that have it
enabled. Its no question of a socket.
That would be the Tyan S8005, although the official CPU support list only lists Opteron parts (those in AM3 socket: Suzuka and Budapest)

It only support with server CPU.

Also wrong. I have seen systems with desktop cpus that have IOMMU
enabled (Phenom X4 and Phenom X6).

For BIOS part:

AMD has removed IOMMU related registers.

Hard to believe. I have found people in the net who say that the ASUS
Crosshair IV mobo has IOMMU support in the BIOS. So if they can enable
it, asrock can do that too. Its just the BIOS which has to enable it

If you want to check this yourself:
For out-of-the-box support there needs to be an ACPI table called IVRS setup by the BIOS, you can spot this in xm dmesg (or in dmesg on native Linux):
(XEN) ACPI: IVRS C7E7ACC8, 00E0 (r1  AMD     RD890S  6040000 AMD         0)
On a native Linux you can also find the table in /sys/firmware/acpi/tables
If the table is present, recent Xen versions (as well as Linux and KVM) should automatically enable and use the IOMMU.

If the ACPI table is missing, you can try to look for the corresponding PCI device: it should have a vendor/device-id of 1002:5a23, lspci lists it as:
00:00.2 Generic system peripheral [0806]: ATI Technologies Inc Device 5a23
If anyone has a board with the PCI device but a missing ACPI table, please tell us.

We are already trying to improve the situation, you could help us by reporting the IOMMU support status on 890FX boards. Simply check for the ACPI table:
# xm dmesg | grep IVRS    or
$ ls /sys/firmware/acpi/tables/IVRS
and by checking for the PCI device:
$ /sbin/lspci -d 1002:5a23


Hope that helps.

Regards,
Andre.


--
Andre Przywara
AMD-Operating System Research Center (OSRC), Dresden, Germany
Tel: +49 351 448 3567 12
----to satisfy European Law for business letters:
Advanced Micro Devices GmbH
Einsteinring 24, 85609 Dornach b. Muenchen
Geschaeftsfuehrer: Andrew Bowd; Thomas M. McCoy; Giuliano Meroni
Sitz: Dornach, Gemeinde Aschheim, Landkreis Muenchen
Registergericht Muenchen, HRB Nr. 43632


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>