Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S264026AbTFJVWF (ORCPT ); Tue, 10 Jun 2003 17:22:05 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S264085AbTFJVUo (ORCPT ); Tue, 10 Jun 2003 17:20:44 -0400 Received: from pao-ex01.pao.digeo.com ([12.47.58.20]:48224 "EHLO pao-ex01.pao.digeo.com") by vger.kernel.org with ESMTP id S264026AbTFJVUa (ORCPT ); Tue, 10 Jun 2003 17:20:30 -0400 Date: Tue, 10 Jun 2003 14:30:18 -0700 From: Andrew Morton To: boris mogwitz Cc: linux-kernel@vger.kernel.org Subject: Re: oops while booting : 2.5.70-bk1[4,5] - Process swapper Message-Id: <20030610143018.025d318c.akpm@digeo.com> In-Reply-To: <20030610202947.GA752@macbeth.rhoen.de> References: <20030610202947.GA752@macbeth.rhoen.de> X-Mailer: Sylpheed version 0.9.0pre1 (GTK+ 1.2.10; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 10 Jun 2003 21:34:10.0864 (UTC) FILETIME=[07C8CB00:01C32F98] Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1864 Lines: 54 boris mogwitz wrote: > > Unable to handle kernel NULL pointer dereference at virtual address 00000000 > ... > > Trace; c0254888 > Trace; c01c4f7b > Trace; c01c4fa7 > Trace; c02466e9 > Trace; c01c6222 > Trace; c01c63bc <__pci_device_probe+3c/50> > Trace; c01c63ff > Trace; c01ee395 > Trace; c01ee41f > Trace; c01ee5d5 > Trace; c01ed661 > Trace; c032632c > Trace; c0326315 > Trace; c0326e22 > Trace; c0330cbb > Trace; c0330648 > Trace; c031694b > Trace; c012f27f > Trace; c01050d8 > Trace; c0105080 > Trace; c0107229 pcibios_irq_init() _must_ run before pcibios_enable_device(). But they are both at subsys_initcall(), so we are at the mercy of link order, which appears to be incorrect. Does this fix it? diff -puN arch/i386/pci/irq.c~pci-init-ordering-fix arch/i386/pci/irq.c --- 25/arch/i386/pci/irq.c~pci-init-ordering-fix Tue Jun 10 14:29:40 2003 +++ 25-akpm/arch/i386/pci/irq.c Tue Jun 10 14:29:40 2003 @@ -791,7 +791,7 @@ static int __init pcibios_irq_init(void) return 0; } -subsys_initcall(pcibios_irq_init); +arch_initcall(pcibios_irq_init); void pcibios_penalize_isa_irq(int irq) _ - 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/