Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759524AbYFORQy (ORCPT ); Sun, 15 Jun 2008 13:16:54 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1758590AbYFORQn (ORCPT ); Sun, 15 Jun 2008 13:16:43 -0400 Received: from e28smtp07.in.ibm.com ([59.145.155.7]:42846 "EHLO e28esmtp07.in.ibm.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1758571AbYFORQm (ORCPT ); Sun, 15 Jun 2008 13:16:42 -0400 Message-ID: <48554E73.3050703@linux.vnet.ibm.com> Date: Sun, 15 Jun 2008 22:46:35 +0530 From: Kamalesh Babulal User-Agent: Thunderbird 1.5.0.14ubu (X11/20080505) MIME-Version: 1.0 To: Andrew Morton CC: Thomas Gleixner , linux-kernel@vger.kernel.org, Ingo Molnar , linux-pci@vger.kernel.org, linux-acpi@vger.kernel.org, Andy Whitcroft Subject: Re: [BUG] 2.6.26-rc5-mm1- kernel BUG at arch/x86/kernel/io_apic_64.c:355! References: <20080609053908.8021a635.akpm@linux-foundation.org> <484D68F8.9090807@linux.vnet.ibm.com> <20080609145504.6cdfc886.akpm@linux-foundation.org> <484E725B.6070309@linux.vnet.ibm.com> In-Reply-To: <484E725B.6070309@linux.vnet.ibm.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 5131 Lines: 117 Kamalesh Babulal wrote: > Andrew Morton wrote: >> On Mon, 09 Jun 2008 23:01:36 +0530 >> Kamalesh Babulal wrote: >> >>> Hi Andrew, >>> >>> The 2.6.26-rc5-mm1 kernel panics while bootup on 32 way, x86_64 machine. >>> passing noapic as the command line parameter, boots up >>> the machine fine. >>> >>> kernel BUG at arch/x86/kernel/io_apic_64.c:355! >>> invalid opcode: 0000 [1] SMP >>> last sysfs file: >>> CPU 24 >>> Modules linked in: >>> Pid: 1, comm: swapper Not tainted 2.6.26-rc5-mm1-autotest #1 >>> RIP: 0010:[] [] add_pin_to_irq+0x7a/0x90 >>> RSP: 0018:ffff81061e4cbb60 EFLAGS: 00010216 >>> RAX: 00000000000000f0 RBX: 00000000000000f0 RCX: 0000000000000001 >>> RDX: 0000000000000018 RSI: 0000000000000006 RDI: 00000000000000f0 >>> RBP: 0000000000000006 R08: 0000000000000018 R09: 0000000000000006 >>> R10: 0000000000000008 R11: ffffffff803948e6 R12: 0000000000000001 >>> R13: 0000000000000001 R14: 0000000000000018 R15: ffff81061e4cbc04 >>> FS: 0000000000000000(0000) GS:ffff810bfe7be5c0(0000) knlGS:0000000000000000 >>> CS: 0010 DS: 0018 ES: 0018 CR0: 000000008005003b >>> CR2: 0000000000000000 CR3: 0000000000201000 CR4: 00000000000006e0 >>> DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 >>> DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400 >>> Process swapper (pid: 1, threadinfo ffff81061e4ca000, task ffff81032e4b96d0) >>> Stack: 0000000000000006 ffffffff8021ba6e 00000000000000f0 0000000000000001 >>> 0000000000000000 0000000000000000 ffff81061e4cbc00 ffffffff80218991 >>> 00000000000000f0 0000000000000000 0000000000000001 ffffffff80218a1a >>> Call Trace: >>> [] io_apic_set_pci_routing+0x7e/0xb0 >>> [] mp_register_gsi+0xb1/0xd0 >>> [] acpi_register_gsi+0x6a/0x70 >>> [] acpi_pci_irq_enable+0x14f/0x220 >>> [] acpi_pci_allocate_irq+0x0/0x4c >>> [] do_pci_enable_device+0x4a/0x70 >>> [] __pci_enable_device_flags+0x51/0x60 >>> [] tg3_init_one+0x58/0x1640 >>> [] default_wake_function+0x0/0x10 >>> [] set_cpus_allowed_ptr+0xc2/0xf0 >>> [] pci_device_probe+0xe7/0x130 >>> [] driver_probe_device+0x96/0x1a0 >>> [] __driver_attach+0x89/0x90 >>> [] __driver_attach+0x0/0x90 >>> [] bus_for_each_dev+0x4d/0x80 >>> [] kmem_cache_alloc+0xc8/0xf0 >>> [] bus_add_driver+0xae/0x220 >>> [] driver_register+0x56/0x130 >>> [] __pci_register_driver+0x68/0xb0 >>> [] tg3_init+0x0/0x20 >>> [] kernel_init+0x153/0x320 >>> [] child_rip+0xa/0x12 >>> [] kernel_init+0x0/0x320 >>> [] child_rip+0x0/0x12 >>> >>> >>> Code: 89 05 27 88 43 00 7f 29 48 0f bf c1 48 8d 14 00 48 c1 e0 03 48 29 d0 48 8d 90 00 44 74 80 66 89 32 66 44 89 42 02 48 83 c4 08 c3 <0f> 0b eb fe 66 90 48 c7 c7 08 7d 5e 80 31 c0 e8 72 7b 01 00 66 >>> RIP [] add_pin_to_irq+0x7a/0x90 >>> RSP >>> ---[ end trace 5a53b6247c28d358 ]--- >> Here: >> >> static void add_pin_to_irq(unsigned int irq, int apic, int pin) >> { >> static int first_free_entry = NR_IRQS; >> struct irq_pin_list *entry = irq_2_pin + irq; >> >> BUG_ON(irq >= NR_IRQS); >> >> >> There are massive changes to tg3, massive changes in the relevant x86 >> ACPI code and massive changes everywhere else. >> >> So I don't have a clue who broke it, but it wasn't me! >> >> You're testing linux-next, aren't you. Did you test the June 6 tree, >> upon which 2.6.26-rc5-mm1 was based? >> > > This panic was seen in linux-next tree of may 19/20/21/22/23 kernels > and was reported (http://lkml.org/lkml/2008/5/21/285). It was not visible > in any June linux-next kernels. I will try and bisect the panic. After bisecting, following commit seems to be causing the kernel panic. 9b7dc567d03d74a1fbae84e88949b6a60d922d82 is first bad commit commit 9b7dc567d03d74a1fbae84e88949b6a60d922d82 Author: Thomas Gleixner Date: Fri May 2 20:10:09 2008 +0200 x86: unify interrupt vector defines The interrupt vector defines are copied 4 times around with minimal differences. Move them all into asm-x86/irq_vectors.h Signed-off-by: Thomas Gleixner Signed-off-by: Ingo Molnar :040000 040000 939b99bbeaaab47d126b61688d95b028f45d2276 a44936fcb93cda9222688f0cf3cbf41af962b061 M arch :040000 040000 bf113a910c6677e61811eb933f171ce9efcbff48 f7032a47ddb8b802278bdbba5026356c18e6d96f M include -- Thanks & Regards, Kamalesh Babulal, Linux Technology Center, IBM, ISTL. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/