From: Pasi =?iso-8859-1?Q?K=E4rkk=E4inen?= Subject: Re: pv_ops dom0 kernel failure with ata_piix / irq problems Date: Mon, 2 Feb 2009 22:34:55 +0200 Message-ID: <20090202203455.GP15052@edu.joroinen.fi> References: <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> <1233339380.9970.45.camel@zakaz.uk.xensource.com> <49834C0B.1030309@goop.org> <20090202084229.GJ15052@edu.joroinen.fi> <20090202192217.GL15052@edu.joroinen.fi> <20090202201113.GO15052@edu.joroinen.fi> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Content-Disposition: inline In-Reply-To: <20090202201113.GO15052@edu.joroinen.fi> 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 , xen-devel@lists.xensource.com, Andrew Lyon , Ian Campbell List-Id: xen-devel@lists.xenproject.org On Mon, Feb 02, 2009 at 10:11:13PM +0200, Pasi K=E4rkk=E4inen wrote: > On Mon, Feb 02, 2009 at 09:22:17PM +0200, Pasi K=E4rkk=E4inen wrote: > > On Mon, Feb 02, 2009 at 10:42:30AM +0200, Pasi K=E4rkk=E4inen wrote: > > > On Fri, Jan 30, 2009 at 10:50:51AM -0800, Jeremy Fitzhardinge wrote= : > > > > Ian Campbell wrote: > > > > >On Fri, 2009-01-30 at 18:12 +0000, Ian Campbell wrote: > > > > > =20 > > > > >>Possibly the correct fix might be to use xen_register_gsi() her= e > > > > >>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 t= his > > > > >>special treatment. > > > > >> =20 > > > > > > > > > >FWIW this also Works For Me. > > > > > =20 > > > >=20 > > > > OK. I'd noticed that the native code just sets up all the legacy= =20 > > > > interrupts at once. I guess we should follow the lead to avoid t= hese=20 > > > > kinds of init order problems. > > > >=20 > > >=20 > > > OK. > > >=20 > > > I've been busy, and haven't yet had time to try the patch. > > >=20 > > > Hopefully I can try it later today! > > >=20 > >=20 > > And now I tried the latest bits.=20 > >=20 > > I also applied Ian's legacy irq fix/patch.=20 > >=20 > > bootlog: > > http://pasik.reaktio.net/xen/pv_ops-dom0-debug/pv_ops-dom0-bootlog-8-= xen331-linux-2.6.29-rc3.txt > >=20 > > Now my (IDE) disk is detected, but it ata_piix still seems to fail.. > >=20 > > I guess I'll compile new kernel again with libata debug enabled..=20 > >=20 >=20 > I enabled the following in include/linux/libata.h: >=20 > #define ATA_DEBUG > #define ATA_VERBOSE_DEBUG > #define ATA_IRQ_TRAP >=20 > And here's dom0 bootlog with those debugging options enabled: > http://pasik.reaktio.net/xen/pv_ops-dom0-debug/pv_ops-dom0-bootlog-9-xe= n331-linux-2.6.29-rc3-atadebug.txt >=20 > Is there something you'd like me to try/test?=20 >=20 Hmm.. I was using this patch, which looks different from what was committ= ed to the patches.hg repository 2 hours ago.. --- a/arch/x86/xen/pci.c Fri Jan 30 17:39:54 2009 +0000 = = =20 +++ b/arch/x86/xen/pci.c Fri Jan 30 18:16:34 2009 +0000 = = =20 @@ -75,15 +75,6 @@ = = =20 = = =20 printk(KERN_INFO "xen: PCI device %s pin %d -> irq %d\n",= = =20 pci_name(dev), dev->pin, irq); = = =20 - } else if (((dev->class >> 8) =3D=3D PCI_CLASS_STORAGE_IDE) && = = =20 - (dev->class & 0x05) =3D=3D 0) { = = =20 - /* Legacy IDE devices have hard-coded irq 14/15 */ = = =20 - printk(KERN_INFO "xen: %s: legacy IDE\n", pci_name(dev));= = =20 - = = =20 - xen_register_gsi(14, ACPI_LEVEL_SENSITIVE, ACPI_ACTIVE_LO= W); = =20 - xen_register_gsi(15, ACPI_LEVEL_SENSITIVE, ACPI_ACTIVE_LO= W); = =20 - = = =20 - rc =3D 0; = = =20 } else { = = =20 printk(KERN_INFO "xen: irq enable for %s failed: rc=3D%d = pin=3D%d irq=3D%d\n", = =20 pci_name(dev), rc, dev->pin, dev->irq); = = =20 @@ -133,4 +124,6 @@ = = =20 /* Blerk. */ = = =20 acpi_gbl_FADT.sci_interrupt =3D irq; = = =20 #endif = = =20 + xen_register_gsi(14, ACPI_LEVEL_SENSITIVE, ACPI_ACTIVE_LOW); = = =20 + xen_register_gsi(15, ACPI_LEVEL_SENSITIVE, ACPI_ACTIVE_LOW); = = =20 } =20 -- Pasi