From: Pasi =?iso-8859-1?Q?K=E4rkk=E4inen?= Subject: Re: pv_ops dom0 kernel failure with ata_piix / irq problems Date: Sun, 25 Jan 2009 13:28:59 +0200 Message-ID: <20090125112859.GV15052@edu.joroinen.fi> References: <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> 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: <497BB984.9080803@goop.org> 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:59:48PM -0800, Jeremy Fitzhardinge wrote: > Pasi K=E4rkk=E4inen wrote: > >rc =3D devm_request_irq(dev, ATA_PRIMARY_IRQ(pdev), irq_handler,=20 > >IRQF_SHARED, drv_name, host); > >if (rc) > > goto out; > > > >and ports names never get assigned because that "goto out;" is execute= d. > > > >So.. Any ideas why devm_request_irq() fails?=20 >=20 >=20 > Good question. Will need to pick through >=20 > Hm, wonder if its something to do with the handling of the legacy irqs: >=20 > ata_pci_sff_activate_host: pci_read_config_byte() > ata_pci_sff_activate_host: if (!devres_open_group(dev, NULL, GFP_KERNEL= )) > ata_pci_sff_activate_host: if (!legacy_mode && pdev->irq) > ata_pci_sff_activate_host: legacy_mode > ata_pci_sff_activate_host: port 0 not dummy: devm_request_irq() > ata_pci_sff_activate_host: non-legacy-mode irq: 30 > ata_pci_sff_activate_host: requesting ATA_PRIMARY_IRQ(pdev) irq: 14 > ata_pci_sff_activate_host: devm_request_irq() returned !=3D 0, goto out > ata_pci_sff_activate_host: out > ata_pci_sff_activate_host: devres_release_group() > ata_pci_sff_activate_host: end, returning >=20 >=20 Yeah, there seems to be something wrong with the legacy irq handling. PS/2 stuff also confirms that: PNP: PS/2 Controller [PNP0303:PS2K,PNP0f13:PS2M] at 0x60,0x64 irq 1,12 serio: i8042 KBD port at 0x60,0x64 irq 1 serio: i8042 AUX port at 0x60,0x64 irq 12 mice: PS/2 mouse device common for all mice irq 12: nobody cared (try booting with the "irqpoll" option) Pid: 0, comm: swapper Not tainted 2.6.29-rc1-tip #13 Call Trace: [] __report_bad_irq+0x2e/0x6f [] note_interrupt+0xf0/0x149 [] handle_level_irq+0x7a/0xaf [] ? handle_level_irq+0x0/0xaf [] ? xen_evtchn_do_upcall+0xc0/0x139 [] ? xen_do_upcall+0x7/0xc [] ? _stext+0x227/0x1000 [] ? xen_force_evtchn_callback+0xf/0x14 [] ? check_events+0x8/0xe [] ? xen_irq_enable_direct_end+0x0/0x1 [] ? finish_task_switch+0x63/0xe5 [] ? __schedule+0x756/0x7c0 [] ? xen_evtchn_do_upcall+0x128/0x139 [] ? restore_nocheck_notrace+0x0/0xe [] ? clocksource_register+0x3e/0x175 [] ? __schedule+0x7bd/0x7c0 [] ? schedule+0x8/0x17 [] ? cpu_idle+0x9b/0xa0 [] ? rest_init+0x4e/0x50 handlers: [] (i8042_interrupt+0x0/0x1e7) Disabling IRQ #12 -- Pasi