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

[Xen-devel] iommu support on AMD64

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] iommu support on AMD64
From: "Langsdorf, Mark" <mark.langsdorf@xxxxxxx>
Date: Thu, 29 Sep 2005 13:41:02 -0500
Delivery-date: Thu, 29 Sep 2005 18:38:50 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcXFJVf9/2MB90bLT5GQcXVZ4Y/gFA==
Thread-topic: iommu support on AMD64
I'm working on getting IOMMU support enabled
for AMD64 in Xen.

The current aperture.c code in dom0 requires 
several calls to read_pci_config() to find 
the AMD northbridge.  These calls are causing 
my system to crash.

read_pci_config() is defined in 
linux-2.6.12-xen0/include/asm-x86_64/pci-direct.h
as

static inline u32 read_pci_config(u8 bus, u8 slot, u8 func, u8 offset)
{
        u32 v;
        outl(0x80000000 | (bus<<16) | (slot<<11) | (func<<8) | offset,
0xcf8);
        v = inl(0xcfc);
        if (v != 0xffffffff)
                PDprintk("%x reading 4 from %x: %x\n", slot, offset, v);
        return v;
}

This a specialized function intended for PCI access 
early in the boot before the PCI subsystem starts 
working.

How can I find the AMD northbridge(s) early in the
dom0 boot sequence without crashing the system?

-Mark Langsdorf
AMD, Inc.


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

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