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] [PATCH 0 of 1] Intel VT-d fix.

To: xen-devel@xxxxxxxxxxxxxxxxxxx, keir.fraser@xxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH 0 of 1] Intel VT-d fix.
From: Konrad Rzeszutek Wilk <konrad.wilk@xxxxxxxxxx>
Date: Tue, 09 Mar 2010 12:04:00 -0500
Cc: konrad.wilk@xxxxxxxxxx
Delivery-date: Tue, 09 Mar 2010 09:29:59 -0800
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/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>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mercurial-patchbomb/1.4.2
On a SuperMicro X8DTN+ I found Linux baremetal booting fine, while
Xen would hang while enabling PCI-X devices, such as:

(XEN) CPU 10 initiali[    5.118255] scsi0 : 3ware Storage Controller
[    5.118898] 3w-xxxx: scsi0: Found a 3ware Storage Controller at 0xc100, IRQ: 
52.
(XEN) do_IRQ: 1.40 No irq handler for vector (irq -1)
[   25.711139] scsi 0:0:0:0: WARNING: Command (0x12) timed out, resetting card.
[   47.191274] scsi 0:0:0:0: WARNING: Command (0x0) timed out, resetting card.
[   58.671124] scsi 0:0:0:0: Device offlined - not ready after error recovery
[   79.711194] scsi 0:0:1:0: WARNING: Command (0x12) timed out, resetting card.
[  101.191071] scsi 0:0:1:0: WARNING: Command (0x0) timed out, resetting card.
[  112.671065] scsi 0:0:1:0: Device offlined - not ready after error recovery
[  133.710995] scsi 0:0:2:0: WARNING: Command (0x12) timed out, resetting card.
[  155.190891] scsi 0:0:2:0: WARNING: Command (0x0) timed out, resetting card.


Traced it down the fact that I've three IOAPICs, but only one DRHD. The
DRHD covers the first IOAPIC, but not the other two. Well, the PCI-X device
was on the last IOAPIC, which was not under the DRHD control.

Linux upstream has a check where it looks for all the IOAPICs covered by the 
DRHDs
and compares them with the IOAPICs it found via MADT. If the count is off it
disables x2APIC.

This patch follows that logic.



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