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 support on AMD64

To: "Langsdorf, Mark" <mark.langsdorf@xxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: RE: [Xen-devel] iommu support on AMD64
From: "Nakajima, Jun" <jun.nakajima@xxxxxxxxx>
Date: Thu, 29 Sep 2005 11:50:59 -0700
Delivery-date: Thu, 29 Sep 2005 18:49:18 +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/gFAAAQr4A
Thread-topic: [Xen-devel] iommu support on AMD64
Langsdorf, Mark wrote:
> 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.

Can you be more specific (output from serial connection, for example)?
The outl instruction causes #GP, and the emulator in Xen handle it. So,
it's possible the emulator has a bug?

> 
> 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.
> 


Jun
---
Intel Open Source Technology Center

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