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

Re: [Xen-devel] [PATCH][HVM] fix PCI interrupt routing via ACPI


  • To: "Wang, Winston L" <winston.l.wang@xxxxxxxxx>
  • From: "Dave Lively" <dave.lively@xxxxxxxxx>
  • Date: Mon, 16 Oct 2006 11:01:50 -0400
  • Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
  • Delivery-date: Mon, 16 Oct 2006 08:02:57 -0700
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=umpfywqgMKW9GNkIJHw2GHn/e0LE/wVj4QGcNCdllxqaxcIKdUZAyD5vU7hgR4Pze4RJZLy3l4s3Zz8P17sL7H+WvNM7MggcdgdrB+WEe4iy6IxJf5B1xpkDZrtc1WtnyB79yHP5T604K8FI5MzX2lxS9dMPJ2fbtld0W7dyzVg=
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

On 10/13/06, Wang, Winston L <winston.l.wang@xxxxxxxxx> wrote:
I think (b) is a short term solution, if we upgrade south bridge from PIIX3/4 to newer ICHx, we could have 8 PIC mode PCI IRQ router and 24 IOAPIC IRQ in APIC mode. I think IPF platform already support 24 IOAPIC  IRQs now.

This may be the safer route, since we know guest OSes are accustomed to ICHx
these days.

I would like David separated the  patch, one for PIC mode PCI IRQ routing _ADR address fix, this one is good, another one for  cutting PIC  mode support, this one may need more discussion.


Unfortunately, applying only the _ADR fix will break your existing ACPI-compliant
guests (more than they were broken before).  The LNKx devices are defined in the
ACPI tables regardless of PIC/APIC mode.  In APIC mode, because the PRTA
routing table returned from _PRT does *not* refer to the LNKx devices, the guest OS
will disable each LNKx device by calling its _DIS method.  Because the _DIS method's
write of PIRx is now routed to the right place (PIIX3 config space - due to the _ADR fix),
this write now really disables the PCI INTx, preventing any interrupts from the PCI INTx
lines.

Without the _ADR fix, ACPI guests are finding they can't redirect the PCI LNKx interrupts,
and nicely falling back to using the existing IRQ assignment.  (So they're broken, but in a
way that many guests seem to be able to work around.)

Dave


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