From: Pasi =?iso-8859-1?Q?K=E4rkk=E4inen?= Subject: Re: pv_ops dom0 kernel failure with ata_piix / irq problems Date: Sat, 24 Jan 2009 16:58:44 +0200 Message-ID: <20090124145844.GQ15052@edu.joroinen.fi> References: <20081230165211.GI15052@edu.joroinen.fi> <20081230181845.GK15052@edu.joroinen.fi> <20081230190356.GL15052@edu.joroinen.fi> <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> 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: <20090124140930.GP15052@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 , Andrew Lyon , xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On Sat, Jan 24, 2009 at 04:09:30PM +0200, Pasi K=E4rkk=E4inen wrote: > On Thu, Jan 22, 2009 at 12:23:26PM -0800, Jeremy Fitzhardinge wrote: > > Pasi K=E4rkk=E4inen wrote: > > >On Fri, Jan 09, 2009 at 09:01:59PM +0000, Andrew Lyon wrote: > > > =20 > > >>>I just upgraded to newly released Xen 3.3.1 hypervisor but unfortu= nately=20 > > >>>it > > >>>didn't seem to help with my problem.. I still get the exact same e= rrors=20 > > >>>with > > >>>ata_piix module: > > >>> > > >>>http://pasik.reaktio.net/xen/pv_ops-dom0-debug/pv_ops-dom0-bootlog= -4-xen331.txt > > >>> > > >>>xen_allocate_pirq: returning irq 30 for gsi 18 > > >>>xen_set_ioapic_routing: irq 30 gsi 18 vector 160 ioapic 0 pin 18=20 > > >>>triggering 0 polarity 1 > > >>>ata_piix 0000:00:1f.1: PCI INT A -> GSI 18 (level, low) -> IRQ 30 > > >>>xen: PCI device 0000:00:1f.1 pin 1 -> irq 30 > > >>>xen: disable pci device 0000:00:1f.1 > > >>>ata_piix: probe of 0000:00:1f.1 failed with error -38 > > >>> =20 > > >>I don't think the problem is ata_piix, I've tried the pv_ops dom0 > > >>kernel on a Dell Optiplex 755 and unbranded system with gigabyte > > >>motherboard, on both systems none of the storage devices worked, > > >>including ahci, ata_piix, I even tried putting the root filesystem = on > > >>a usb storage device but that too is broken, I think interrupt rout= ing > > >>is not working at all perhaps? > > >> > > >>I'm going to do more testing this weekend... > > >> > > >> =20 > > > > > >Hello. > > > > > >I just did some more testing too.. > > > > > >I upgraded to the latest patches for Linux 2.6.29-rc1-tip > > > > > >log of xen+kernel from serial console: > > >http://pasik.reaktio.net/xen/pv_ops-dom0-debug/pv_ops-dom0-bootlog-5= -xen331-linux-2.6.29-rc1.txt > > > > > >(XEN) Command line: dom0_mem=3D1024M loglvl=3Dall guest_loglvl=3Dall= =20 > > >com1=3D19200,8n1 console=3Dcom1 > > >Kernel command line: ro root=3D/dev/vg00/lv01 console=3Dhvc0 earlypr= intk=3Dxen=20 > > >pci=3Dnomsi > > > > > >And the failing part of the log is here: > > > > > >xen_allocate_pirq: returning irq 30 for gsi 18 > > >xen_set_ioapic_routing: irq 30 gsi 18 vector 160 ioapic 0 pin 18=20 > > >triggering 0 polarity 1 > > >ata_piix 0000:00:1f.1: PCI INT A -> GSI 18 (level, low) -> IRQ 30 > > >xen: PCI device 0000:00:1f.1 pin 1 -> irq 30 > > >xen: disable pci device 0000:00:1f.1 > > >Pid: 1, comm: swapper Not tainted 2.6.29-rc1-tip #3 > > > =20 > >=20 > > That means that the ata-piix driver decided it was unhappy for some=20 > > reason, and decided to fali with ENODEV. It would be very interestin= g=20 > > to know what part of the device probe failed. From the Xen perspecti= ve,=20 > > it looks like everything went OK. > >=20 >=20 > I just did >=20 > #define ATA_DEBUG > #define ATA_VERBOSE_DEBUG > #define ATA_IRQ_TRAP >=20 > in include/linux/libata.h >=20 > and recompiling now.. let's see if that helps. >=20 Here we go: http://pasik.reaktio.net/xen/pv_ops-dom0-debug/pv_ops-dom0-bootlog-6-xen3= 31-linux-2.6.29-rc1-atadebug.txt piix_init: pci_register_driver xen_allocate_pirq: returning irq 30 for gsi 18 xen_set_ioapic_routing: irq 30 gsi 18 vector 160 ioapic 0 pin 18 triggeri= ng 0 polarity 1 ata_piix 0000:00:1f.1: PCI INT A -> GSI 18 (level, low) -> IRQ 30 xen: PCI device 0000:00:1f.1 pin 1 -> irq 30 ata_host_alloc: ENTER ata_port_alloc: ENTER ata_port_alloc: ENTER __ata_port_freeze: ata4294967295 port frozen __ata_port_freeze: ata4294967295 port frozen xen: disable pci device 0000:00:1f.1 Pid: 1, comm: swapper Not tainted 2.6.29-rc1-tip #4 Call Trace: [] ? printk+0xf/0x13 [] xen_pci_pirq_disable+0x18/0x1c [] pcibios_disable_device+0x18/0x1a [] do_pci_disable_device+0x4b/0x50 [] pci_disable_device+0x3f/0x4b [] pcim_release+0x6f/0x74 [] release_nodes+0x14a/0x165 [] devres_release_all+0x25/0x2a [] driver_probe_device+0xb7/0x12f [] __driver_attach+0x4c/0x6b [] bus_for_each_dev+0x3b/0x63 [] driver_attach+0x14/0x16 [] ? __driver_attach+0x0/0x6b [] bus_add_driver+0x9d/0x1ba [] driver_register+0x81/0xe1 [] ? sysfs_add_file+0xe/0x13 [] __pci_register_driver+0x35/0x62 [] piix_init+0x24/0x4e [] do_one_initcall+0x4a/0x122 [] ? piix_init+0x0/0x4e [] ? register_irq_proc+0x7f/0x9b [] ? init_irq_proc+0x53/0x60 [] kernel_init+0x104/0x155 [] ? kernel_init+0x0/0x155 [] kernel_thread_helper+0x7/0x10 ata_piix: probe of 0000:00:1f.1 failed with error -38 piix_init: done I guess I have to start reading the source to figure out why the port is 'frozen'..=20 -- Pasi