Re: [2.5.19] Oops during PCI scan on Alpha

Patrick Mochel (mochel@osdl.org)
Wed, 5 Jun 2002 17:01:30 -0700 (PDT)


On Wed, 5 Jun 2002, Ivan Kokshaysky wrote:

> On Tue, Jun 04, 2002 at 03:03:33PM -0700, Patrick Mochel wrote:
> > -subsys_initcall(pci_driver_init);
> > +postcore_initcall(pci_driver_init);
>
> Fine, but my main objection was to pci_driver_init being an initcall
> in general, no matter in what level. With current code we may have
> pci_bus_type registered on a machine without PCI bus.
> Real life example: jensen running generic alpha kernel.

That's fine. That's exactly the same thing that happens with device
drivers you have compiled in but don't have hardware for and have hotplug
enabled. The fact that it's registered with the system simply advertises
its support.

The fact that it's unused and just sitting there taking up space is
distasteful, but there are things that could be done about it. For one, we
could compile PCI as a module and include it in an initramfs image (so it
loaded early enough to not break too many things).

Or, after we probe for everything, we could make a sweep of all the
drivers in the system and purge any that have a refcount of 1 (registered,
but not used by anyone).

-pat

-
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/