From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
To: Greg KH <greg@kroah.com>
Cc: Andrew Morton <akpm@osdl.org>, Jon Smirl <jonsmirl@gmail.com>,
lkml <linux-kernel@vger.kernel.org>
Subject: Early boot issues (WAS: Christmas list for the kernel)
Date: Wed, 23 Nov 2005 18:10:35 +1100 [thread overview]
Message-ID: <1132729836.26560.318.camel@gaston> (raw)
In-Reply-To: <20051122204918.GA5299@kroah.com>
On Tue, 2005-11-22 at 12:49 -0800, Greg KH wrote:
> On Tue, Nov 22, 2005 at 01:31:16PM -0500, Jon Smirl wrote:
> >
> > 4) Merge klibc and fix up the driver system so that everything is
> > hotplugable. This means no more need to configure drivers in the
> > kernel, the right drivers will just load automatically.
>
> What driver subsystem is not hotplugable and does not have automatically
> loaded modules today?
>
> There are a few issues around PnP devices that I know of, and PCMCIA
> needs some seriously love, but other than that I think we are well off.
> Or am I missing something big here?
Well, there is at least one big problem :) We tend to call hotplug for
new devices way too early during boot, before it's even sane to try to
run userland. For example, we may well try to run it before we
created /dev/null or /dev/zero ... In some cases (PCI on various
platforms typically), devices are instanciated, then all sorts of
necessary fixups are applied, and it's assumed no driver will kick in
before those fixups are finished, etc...
I think it is be rather very unsafe to have /sbin/hotplug be called
before the system finishes with all initcalls...
There is a very similar problem lurking around the corner with
suspend/resume. Since during a machine suspend cycles, from the moment
we start suspending devices to the moment we have finished waking them
all up, any try to run userland things is doomed. The disk may be spun
down & locked, all other processes frozen, etc....
This is actually a real life problem with drivers using the
request_firmware interface nowadays: Some of them call it on resume, but
heh, it's too early, your disk may not be resumed yet ! Some of them
call it at more "normal" times, but in general, drivers have no way to
knwo that a machine suspend/resume cycle is in progress (the disk may
have been suspended already but the that other driver suspend not called
yet).
In fact, there is even a problem with GFP_KERNEL allocations :) In fact,
as soon as the suspend process is started, all allocations should be
silently turned into GFP_NOIO at the very least ...
Ben.
next prev parent reply other threads:[~2005-11-23 7:14 UTC|newest]
Thread overview: 78+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-11-22 18:31 Christmas list for the kernel Jon Smirl
2005-11-22 18:39 ` Alistair John Strachan
2005-11-22 19:10 ` Jon Smirl
2005-11-23 0:43 ` Andrew Morton
2005-11-23 1:09 ` Jon Smirl
2005-11-23 1:37 ` Josh Boyer
2005-11-23 2:00 ` Andrew Morton
2005-11-23 5:18 ` Jon Smirl
2005-11-23 5:45 ` Andrew Morton
2005-11-23 16:12 ` Bill Davidsen
2005-11-23 19:27 ` Andrew Morton
2005-11-22 19:31 ` Christoph Hellwig
2005-11-22 19:57 ` Jon Smirl
2005-11-23 22:16 ` Pavel Machek
2005-11-23 22:12 ` Pavel Machek
2005-11-22 20:49 ` Greg KH
2005-11-22 21:13 ` Jon Smirl
2005-11-22 21:28 ` Kasper Sandberg
2005-11-22 21:41 ` Jon Smirl
2005-11-22 21:56 ` David Lang
2005-11-22 22:00 ` Anton Altaparmakov
2005-11-22 23:36 ` Alan Cox
2005-11-22 23:56 ` Jon Smirl
2005-11-23 9:09 ` Russell King
2005-11-23 16:07 ` Bill Davidsen
2005-11-23 8:47 ` Denis Vlasenko
2005-11-23 14:44 ` Vojtech Pavlik
2005-11-23 17:21 ` Gene Heskett
2005-11-23 17:30 ` Russell King
2005-11-23 19:28 ` Bill Davidsen
2005-11-22 23:35 ` Alan Cox
2005-11-22 23:58 ` Jon Smirl
2005-11-23 0:37 ` Alistair John Strachan
2005-11-23 11:19 ` Alan Cox
2005-11-23 12:17 ` Vojtech Pavlik
2005-11-23 14:43 ` Jon Smirl
2005-11-23 15:03 ` Russell King
2005-11-23 15:12 ` Jon Smirl
2005-11-23 15:56 ` Marc Koschewski
2005-11-23 16:05 ` Russell King
2005-11-23 16:37 ` Jon Smirl
2005-11-23 16:49 ` Vojtech Pavlik
2005-11-23 16:59 ` Jon Smirl
2005-11-23 17:05 ` Marc Koschewski
2005-11-23 17:13 ` Jon Smirl
2005-11-23 17:16 ` Vojtech Pavlik
2005-11-23 17:24 ` Marc Koschewski
2005-11-23 17:15 ` Vojtech Pavlik
2005-11-23 19:32 ` Bill Davidsen
2005-11-23 15:19 ` Jon Smirl
2005-11-23 15:25 ` Russell King
2005-11-23 15:31 ` Jon Smirl
2005-11-23 15:36 ` Russell King
2005-11-23 16:02 ` Marc Koschewski
2005-11-23 16:16 ` Russell King
2005-11-23 16:23 ` Marc Koschewski
2005-11-23 16:23 ` Vojtech Pavlik
2005-11-23 16:27 ` Russell King
2005-11-23 16:31 ` Dmitry Torokhov
2005-11-23 16:34 ` Vojtech Pavlik
2005-11-23 16:33 ` Vojtech Pavlik
2005-11-23 15:20 ` Pierre Ossman
2005-11-23 15:29 ` Russell King
2005-11-23 15:39 ` Pierre Ossman
2005-11-23 15:51 ` Russell King
2005-11-23 15:49 ` Jon Smirl
2005-11-23 15:56 ` Russell King
2005-11-23 16:32 ` Bill Davidsen
2005-11-23 16:50 ` Jon Smirl
2005-11-23 15:49 ` John Stoffel
2005-11-23 15:27 ` Martin Mares
2005-11-22 21:28 ` Dmitry Torokhov
2005-11-22 23:33 ` Alan Cox
2005-11-23 7:10 ` Benjamin Herrenschmidt [this message]
2005-11-23 19:47 ` Early boot issues (WAS: Christmas list for the kernel) Andi Kleen
2005-11-22 22:11 ` Christmas list for the kernel Bill Davidsen
2005-11-24 4:17 ` Rob Landley
2005-11-23 22:23 ` Pavel Machek
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1132729836.26560.318.camel@gaston \
--to=benh@kernel.crashing.org \
--cc=akpm@osdl.org \
--cc=greg@kroah.com \
--cc=jonsmirl@gmail.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®