From: Gerd Hoffmann <kraxel@redhat.com>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: "Maciej W. Rozycki" <macro@linux-mips.org>,
Gerd Hoffmann <kraxel@suse.de>,
linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org,
Yinghai.Lu@Sun.COM, bryan.wu@analog.com, dilinger@queued.net,
lethal@linux-sh.org, rgetz@blackfin.uclinux.org,
vapier.adi@gmail.com, Russell King <rmk@arm.linux.org.uk>
Subject: Re: [PATCH] kernel/printk.c: Concerns about the console handover
Date: Fri, 21 Sep 2007 14:42:34 +0200 [thread overview]
Message-ID: <46F3BC3A.8060703@redhat.com> (raw)
In-Reply-To: <20070921010349.2caee558.akpm@linux-foundation.org>
Andrew Morton wrote:
> On Thu, 20 Sep 2007 18:28:49 +0100 (BST) "Maciej W. Rozycki" <macro@linux-mips.org> wrote:
>
>> Move the hadover message to after the boot console has been released to
>> avoid bad interactions between it and the real console.
[ longish problem discussion snipped ]
>> considered fully disabled. Below is a change which makes the problem
>> disappear for me, but I suppose there was a deliberate reason for placing
>> the printk() where it is now and nowhere else.
Well, I placed the printk there is for user interface reasons. I think
especially in case the early console and the real console go to
different physical devices it is useful to have the reason it stops
printing messages displayed on the early console. So people don't think
the computer hangs although it just prints messages elsewhere ...
If that isn't going to work due to two instances not knowing each other
(kernel & firmware) should not mess with the same physical device, then
I'd just drop the printk. And I see no pretty and easy way around that
issue :-(
We could do the printk and unregister before we setup the new console.
Which has the drawback that we are in trouble in case the setup() call
for the new console fails ...
We could split the printk into two, one early ("trying to setup new
console foo") which goes to the boot console, then (assuming the setup
worked ok) unregister silently and print a message about the successful
init and boot console unregister on the new console only. Which results
in two lines being printed for the handover when both consoles address
the same physical device. Not that nice IMHO, but maybe still the best
way to handle it.
cheers,
Gerd
next prev parent reply other threads:[~2007-09-21 12:44 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-09-20 17:28 [PATCH] kernel/printk.c: Concerns about the console handover Maciej W. Rozycki
2007-09-21 8:03 ` Andrew Morton
2007-09-21 12:42 ` Gerd Hoffmann [this message]
2007-09-21 13:06 ` Russell King
2007-09-21 13:22 ` Gerd Hoffmann
2007-09-21 13:28 ` Maciej W. Rozycki
2007-09-21 13:36 ` Maciej W. Rozycki
2007-09-21 13:43 ` Russell King
2007-09-21 14:36 ` Maciej W. Rozycki
2007-09-21 14:45 ` Russell King
2007-09-24 17:14 ` Maciej W. Rozycki
[not found] <95y0Q-7JD-5@gated-at.bofh.it>
2007-09-21 9:24 ` Bodo Eggert
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=46F3BC3A.8060703@redhat.com \
--to=kraxel@redhat.com \
--cc=Yinghai.Lu@Sun.COM \
--cc=akpm@linux-foundation.org \
--cc=bryan.wu@analog.com \
--cc=dilinger@queued.net \
--cc=kraxel@suse.de \
--cc=lethal@linux-sh.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-serial@vger.kernel.org \
--cc=macro@linux-mips.org \
--cc=rgetz@blackfin.uclinux.org \
--cc=rmk@arm.linux.org.uk \
--cc=vapier.adi@gmail.com \
/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