From: Ian Campbell Subject: Re: pv_ops dom0 kernel failure with ata_piix / irq problems Date: Fri, 30 Jan 2009 18:16:20 +0000 Message-ID: <1233339380.9970.45.camel@zakaz.uk.xensource.com> References: <495BE5E1.40602@goop.org> <20090102064444.GN15052@edu.joroinen.fi> <20090109174006.GR15052@edu.joroinen.fi> <20090122194645.GJ15052@edu.joroinen.fi> <4978D5BE.8090601@goop.org> <20090124140930.GP15052@edu.joroinen.fi> <20090124145844.GQ15052@edu.joroinen.fi> <497B64B8.5040709@goop.org> <20090124201702.GR15052@edu.joroinen.fi> <20090124234920.GS15052@edu.joroinen.fi> <497BB984.9080803@goop.org> <1233339176.9970.44.camel@zakaz.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1233339176.9970.44.camel@zakaz.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Jeremy Fitzhardinge Cc: Todd Deshane , Andrew Lyon , xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On Fri, 2009-01-30 at 18:12 +0000, Ian Campbell wrote: > Possibly the correct fix might be to use xen_register_gsi() here > instead of xen_allocate_pirq() and get rid of the special case for IRQ > 14 and 15 in xen_pci_pirq_enable(). Maybe only 14 and 15 need this > special treatment. FWIW this also Works For Me. --- a/arch/x86/xen/pci.c Fri Jan 30 17:39:54 2009 +0000 +++ b/arch/x86/xen/pci.c Fri Jan 30 18:16:34 2009 +0000 @@ -75,15 +75,6 @@ printk(KERN_INFO "xen: PCI device %s pin %d -> irq %d\n", pci_name(dev), dev->pin, irq); - } else if (((dev->class >> 8) == PCI_CLASS_STORAGE_IDE) && - (dev->class & 0x05) == 0) { - /* Legacy IDE devices have hard-coded irq 14/15 */ - printk(KERN_INFO "xen: %s: legacy IDE\n", pci_name(dev)); - - xen_register_gsi(14, ACPI_LEVEL_SENSITIVE, ACPI_ACTIVE_LOW); - xen_register_gsi(15, ACPI_LEVEL_SENSITIVE, ACPI_ACTIVE_LOW); - - rc = 0; } else { printk(KERN_INFO "xen: irq enable for %s failed: rc=%d pin=%d irq=%d\n", pci_name(dev), rc, dev->pin, dev->irq); @@ -133,4 +124,6 @@ /* Blerk. */ acpi_gbl_FADT.sci_interrupt = irq; #endif + xen_register_gsi(14, ACPI_LEVEL_SENSITIVE, ACPI_ACTIVE_LOW); + xen_register_gsi(15, ACPI_LEVEL_SENSITIVE, ACPI_ACTIVE_LOW); }