[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [Xen-devel] iommu support on AMD64


  • To: "Langsdorf, Mark" <mark.langsdorf@xxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • 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
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>
  • 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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.