Return-path: Received: from e33.co.us.ibm.com ([32.97.110.151]) by canuck.infradead.org with esmtps (Exim 4.63 #1 (Red Hat Linux)) id 1IIQAM-0006m9-AH for kexec@lists.infradead.org; Tue, 07 Aug 2007 10:36:14 -0400 Received: from d03relay02.boulder.ibm.com (d03relay02.boulder.ibm.com [9.17.195.227]) by e33.co.us.ibm.com (8.13.8/8.13.8) with ESMTP id l77Ea5iN006207 for ; Tue, 7 Aug 2007 10:36:05 -0400 Received: from d03av02.boulder.ibm.com (d03av02.boulder.ibm.com [9.17.195.168]) by d03relay02.boulder.ibm.com (8.13.8/8.13.8/NCO v8.4) with ESMTP id l77Ea1QP184434 for ; Tue, 7 Aug 2007 08:36:04 -0600 Received: from d03av02.boulder.ibm.com (loopback [127.0.0.1]) by d03av02.boulder.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id l77Ea0Pm019192 for ; Tue, 7 Aug 2007 08:36:01 -0600 Date: Tue, 7 Aug 2007 20:04:15 +0530 From: Vivek Goyal Subject: Re: Kexec from xterm -> uhci_hcd. irq 4: nobody cared Message-ID: <20070807143415.GB18839@in.ibm.com> References: <20070807113048.GE5065@hindley.org.uk> Mime-Version: 1.0 Content-Disposition: inline In-Reply-To: <20070807113048.GE5065@hindley.org.uk> Reply-To: vgoyal@in.ibm.com List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: kexec-bounces@lists.infradead.org Errors-To: kexec-bounces+dwmw2=infradead.org+dwmw2=infradead.org@lists.infradead.org To: Mark Hindley Cc: hbabu@us.ibm.com, kexec@lists.infradead.org On Tue, Aug 07, 2007 at 12:30:48PM +0100, Mark Hindley wrote: > Hi, > > I have just started using kexec. If I kexec from within an xterm I get > the following error on reboot. kexec from a console there is no error. > > This is from 2.6.23-rc2, but I get something similar back to 2.6.16. > How are you using kexec? Are you doing directly "kexec -e" ? You should be using "reboot". This will first shutdown X and other user space applications and then do a kexec (if kexec kernel was loaded). This works at least on RHEL5. You shall have to check if your distribution has modified the init scripts accordingly or not. In this case looks like some USB device is active and has not been shutdown at kexec time. So second kernel sees the interrupt before driver is ready to take interrupts. Thanks Vivek > Aug 7 11:42:08 mercury kernel: irq 4: nobody cared (try booting with the "irqpoll" option) > Aug 7 11:42:08 mercury kernel: [] __report_bad_irq+0x36/0x75 > Aug 7 11:42:08 mercury kernel: [] note_interrupt+0x200/0x23b > Aug 7 11:42:08 mercury kernel: [] handle_IRQ_event+0x1a/0x3f > Aug 7 11:42:08 mercury kernel: [] handle_level_irq+0xa7/0xec > Aug 7 11:42:08 mercury kernel: [] handle_level_irq+0x0/0xec > Aug 7 11:42:08 mercury kernel: [] do_IRQ+0x81/0xad > Aug 7 11:42:08 mercury kernel: [] hrtimer_wakeup+0x15/0x18 > Aug 7 11:42:08 mercury kernel: [] hrtimer_run_queues+0x103/0x162 > Aug 7 11:42:08 mercury kernel: [] common_interrupt+0x23/0x28 > Aug 7 11:42:08 mercury kernel: [] __do_softirq+0x2c/0x75 > Aug 7 11:42:08 mercury kernel: [] do_softirq+0x3e/0x8d > Aug 7 11:42:08 mercury kernel: [] handle_level_irq+0x0/0xec > Aug 7 11:42:08 mercury kernel: [] irq_exit+0x29/0x62 > Aug 7 11:42:08 mercury kernel: [] do_IRQ+0x94/0xad > Aug 7 11:42:08 mercury kernel: [] common_interrupt+0x23/0x28 > Aug 7 11:42:08 mercury kernel: [] setup_irq+0x155/0x1bd > Aug 7 11:42:08 mercury kernel: [] usb_hcd_irq+0x0/0x4d [usbcore] > Aug 7 11:42:08 mercury kernel: [] request_irq+0x7a/0x96 > Aug 7 11:42:08 mercury kernel: [] usb_add_hcd+0x289/0x56f [usbcore] > Aug 7 11:42:08 mercury kernel: [] usb_hcd_pci_probe+0x1ea/0x283 [usbcore] > Aug 7 11:42:08 mercury kernel: [] pci_device_probe+0x36/0x57 > Aug 7 11:42:08 mercury kernel: [] driver_probe_device+0xdd/0x15a > Aug 7 11:42:08 mercury kernel: [] klist_next+0x50/0x82 > Aug 7 11:42:08 mercury kernel: [] __driver_attach+0x0/0x75 > Aug 7 11:42:08 mercury kernel: [] __driver_attach+0x44/0x75 > Aug 7 11:42:08 mercury kernel: [] bus_for_each_dev+0x37/0x59 > Aug 7 11:42:08 mercury kernel: [] driver_attach+0x16/0x18 > Aug 7 11:42:08 mercury kernel: [] __driver_attach+0x0/0x75 > Aug 7 11:42:08 mercury kernel: [] bus_add_driver+0x6d/0x16d > Aug 7 11:42:08 mercury kernel: [] __pci_register_driver+0x3e/0x6a > Aug 7 11:42:08 mercury kernel: [] uhci_hcd_init+0x75/0x95 [uhci_hcd] > Aug 7 11:42:08 mercury kernel: [] sys_init_module+0x12d0/0x1413 > Aug 7 11:42:08 mercury kernel: [] bitrev32+0x0/0x48 [bitrev] > Aug 7 11:42:08 mercury kernel: [] sysenter_past_esp+0x5f/0x85 > Aug 7 11:42:08 mercury kernel: ======================= > Aug 7 11:42:08 mercury kernel: handlers: > Aug 7 11:42:08 mercury kernel: [] (usb_hcd_irq+0x0/0x4d [usbcore]) > Aug 7 11:42:08 mercury kernel: Disabling IRQ #4 > > Is running kexec from an xterm expected to work? Or is it just something > to avoid? I can't find that documented anywhere. > > Thanks, > > Mark _______________________________________________ kexec mailing list kexec@lists.infradead.org http://lists.infradead.org/mailman/listinfo/kexec