Re: [2.5.19] Oops during PCI scan on Alpha

David S. Miller (davem@redhat.com)
Tue, 04 Jun 2002 14:34:53 -0700 (PDT)


From: Patrick Mochel <mochel@osdl.org>
Date: Tue, 4 Jun 2002 14:29:21 -0700 (PDT)


On Tue, 4 Jun 2002, David S. Miller wrote:

> Linkers are allowed to reorder object files unless you tell them
> explicitly not to.
>
> This is why you need to put this stuff into a seperate initcall level.
> This is precisely why I suggest postcore_initcall as the fix.

Ok, how about just keeping it a subsys_initcall, like it was in the first
place?

Then there are ordering problems with subsys_initcalls which want to
add devices to sys_bus. In fact, arch_initcalls are the places where
most of the actual uses of subsys_bus registry.

So for the ump-teenth time, you need to init this thing EXACTLY after
core_initcalls. I can only say this so many times, this is the
initcall classification we need to fix this bug, "POST CORE INITCALL"
and "BEFORE ANYTHING ELSE".

One way to do that, for the ump-teenth time, is to rename
unused_initcall to postcore_initcall and use that new initcall
to fix the pci_bus and sys_bus generic bus initialization ordering
problems.

We're talking in circles and the fixes you're proposing are not
going to fix the bug, just create new versions of the old bug.
-
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/