xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0 of 1] Intel VT-d fix.
@ 2010-03-09 17:04 Konrad Rzeszutek Wilk
  2010-03-09 17:04 ` [PATCH 1 of 1] Intel VT-D: Don't turn x2APIC if there is a missing DRHD entry for the IOAPIC Konrad Rzeszutek Wilk
  0 siblings, 1 reply; 4+ messages in thread
From: Konrad Rzeszutek Wilk @ 2010-03-09 17:04 UTC (permalink / raw)
  To: xen-devel, keir.fraser; +Cc: konrad.wilk

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.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-03-11 20:25 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-09 17:04 [PATCH 0 of 1] Intel VT-d fix Konrad Rzeszutek Wilk
2010-03-09 17:04 ` [PATCH 1 of 1] Intel VT-D: Don't turn x2APIC if there is a missing DRHD entry for the IOAPIC Konrad Rzeszutek Wilk
2010-03-11  6:04   ` Alex Williamson
2010-03-11 20:25     ` Konrad Rzeszutek Wilk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).