From: Ingo Molnar <mingo@elte.hu>
To: David VomLehn <dvomlehn@cisco.com>,
Arjan van de Ven <arjan@infradead.org>,
"H. Peter Anvin" <hpa@zytor.com>,
Thomas Gleixner <tglx@linutronix.de>,
Linus Torvalds <torvalds@linux-foundation.org>
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
Linux USB Mailing List <linux-usb@vger.kernel.org>,
Linux Embedded Mailing List <linux-embedded@vger.kernel.org>,
Andrew Morton <akpm@linux-foundation.org>
Subject: Re: Wait for console to become available, v3.2
Date: Tue, 21 Apr 2009 08:43:46 +0200 [thread overview]
Message-ID: <20090421064346.GB8020@elte.hu> (raw)
In-Reply-To: <20090420234006.GA1958@cuplxvomd02.corp.sa.net>
* David VomLehn <dvomlehn@cisco.com> wrote:
> Parallelization to improve boot times has been successful enough
> that race conditions now exist between the init_post() open of
> /dev/console and initialization of the console device. When this
> occurs, opening /dev/console fails and any applications inherited
> from init have no standard in/out/error devices. This is expected
> behavior if no console device is available, but quite unfortunate
> in the case where the console is just a bit slow waking up.
>
> Some buses, such as USB, offer no guarantees about how long it
> takes to discover devices, so there is no reliable way to
> distinguish between a missing console and a slow one. The
> pragmatic approach taken in this patch is to wait for a while to
> see if a console shows up, and just go on if it doesn't. The
> default delay is 1000 msec (1 second). This value is conjured out
> of thing air; any suggestions for a value that more closely
> approximates the effective delays from the olden days before USB
> consoles starting failing are more than welcome.
hm, this really seems like a bad hack and a workaround to me and as
such it is not really an acceptable solution.
The proper approach would be to use one of the async_synchronize*()
facilities in kernel/async.c to properly order the opening of the
console with device init.
Certain subsystems like storage (SCSI, libata, mount code and
modules) has already been extended to this scheme.
So i think the right approach, if you want to speed up bootup, would
be to extend the same concepts to console discovery, init and open
methods.
Ingo
next prev parent reply other threads:[~2009-04-21 6:44 UTC|newest]
Thread overview: 47+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-20 23:40 David VomLehn
2009-04-21 6:43 ` Ingo Molnar [this message]
2009-04-21 7:13 ` David Brownell
2009-04-21 8:03 ` Ingo Molnar
2009-04-21 17:11 ` David Woodhouse
2009-04-21 17:29 ` David VomLehn
2009-04-21 17:37 ` Linus Torvalds
2009-04-21 17:59 ` David VomLehn
2009-04-21 17:41 ` David Woodhouse
2009-04-21 17:31 ` Linus Torvalds
2009-04-21 19:25 ` Alan Cox
2009-04-21 23:17 ` David VomLehn
2009-04-22 8:25 ` Jamie Lokier
2009-04-22 9:11 ` Alan Cox
2009-04-22 10:39 ` Jamie Lokier
2009-04-21 13:35 ` Arjan van de Ven
2009-04-21 13:50 ` Ingo Molnar
2009-04-21 14:05 ` Jamie Lokier
2009-04-21 14:26 ` Ingo Molnar
2009-04-21 14:37 ` Alan Cox
2009-04-22 8:22 ` Jamie Lokier
2009-04-22 9:13 ` Alan Cox
2009-04-21 16:42 ` David VomLehn
2009-04-21 14:36 ` Alan Stern
2009-04-21 16:52 ` David VomLehn
2009-04-21 19:09 ` Alan Stern
2009-04-21 23:08 ` David VomLehn
2009-04-22 15:40 ` Alan Stern
2009-04-22 20:54 ` David VomLehn
2009-04-22 21:08 ` Alan Cox
2009-04-22 21:24 ` Alan Stern
2009-04-24 0:35 ` David VomLehn
2009-04-24 19:20 ` Alan Stern
2009-04-24 21:32 ` David VomLehn
2009-04-24 22:19 ` Jamie Lokier
2009-04-24 23:10 ` David VomLehn
2009-04-25 1:41 ` Jamie Lokier
2009-04-25 3:11 ` Alan Stern
2009-04-26 19:52 ` Jamie Lokier
2009-04-26 21:20 ` Alan Stern
2009-04-26 21:37 ` Jamie Lokier
2009-04-26 22:36 ` Kay Sievers
2009-04-26 23:12 ` Jamie Lokier
2009-04-26 23:23 ` Kay Sievers
2009-04-26 23:46 ` Jamie Lokier
2009-04-26 17:55 ` David VomLehn
2009-04-22 5:35 ` David VomLehn
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=20090421064346.GB8020@elte.hu \
--to=mingo@elte.hu \
--cc=akpm@linux-foundation.org \
--cc=arjan@infradead.org \
--cc=dvomlehn@cisco.com \
--cc=hpa@zytor.com \
--cc=linux-embedded@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=tglx@linutronix.de \
--cc=torvalds@linux-foundation.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®