From: "Yinghai Lu" <yhlu.kernel@gmail.com>
To: "Gerd Hoffmann" <kraxel@suse.de>, "Andi Kleen" <ak@suse.de>,
"Bjorn Helgaas" <bjorn.helgaas@hp.com>,
akpm@linux-foundation.org,
"Linus Torvalds" <torvalds@linux-foundation.org>,
"Eric W. Biederman" <ebiederm@xmission.com>
Cc: "linux kernel mailing list" <linux-kernel@vger.kernel.org>
Subject: Re: [patch] early printk and boot console fixups.
Date: Tue, 15 May 2007 21:17:50 -0700 [thread overview]
Message-ID: <86802c440705152117o34325f1dw4a0cdf95241b3b42@mail.gmail.com> (raw)
In-Reply-To: <45D5C473.4010608@suse.de>
On 2/16/07, Gerd Hoffmann <kraxel@suse.de> wrote:
> The console subsystem already has an idea of a boot console, using the
> CON_BOOT flag. The implementation has some flaws though. The major
> problem is that presence of a boot console makes register_console()
> ignore any other console devices (unless explicitly specified on the
> kernel command line).
>
> This patch fixes the console selection code to *not* consider a boot
> console a full-featured one, so the first "normal" console registering
> will become the default boot console instead. This way the unregister
> call for the boot console in register_console() actually triggers and
> the handover from the boot console to the real console device works
> smoothly.
>
> The patch also changes the x86 early_printk code to use this. The early
> console is simply tagged as boot console, the disable_early_printk()
> call is gone as it isn't needed any more.
just notice console handover patch got into mainline 5/8.
for early_uart_console, I have some ideas:
1. merged that into early_serial_console in
arch/x86_64/kernel/early_printk.c, and
move early_printk.c to kernel/, --- make it understand
earlyprintk=uart,io,0x3f8,9600n8
earlyprintk=uart,mmio,0xff5e0000,115200n8
in addition to vga, ttyS, serial
2. or make early_uart_console to be another CON_BOOT, and get rid of
late_initcall(early_uart_console_switch).
actually with late_initcall early_uart_console_switch instead of
console handover, we will lose char output from serial drv init to
late_initcall stage.
in this case, we need to EARLY_SERIAL_CONSOLE to select
early_serial_console or early_uart_console for x86_64 platform.
YH
next prev parent reply other threads:[~2007-05-16 4:17 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-02-16 14:49 Gerd Hoffmann
2007-05-16 4:17 ` Yinghai Lu [this message]
2007-05-16 15:59 ` Bjorn Helgaas
2007-05-16 16:29 ` Yinghai Lu
2007-05-16 16:56 ` Bjorn Helgaas
2007-05-16 17:09 ` Maciej W. Rozycki
2007-05-16 18:14 ` Bjorn Helgaas
2007-05-17 9:45 ` Maciej W. Rozycki
2007-05-17 16:54 ` Yinghai Lu
2007-05-17 17:18 ` Bjorn Helgaas
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=86802c440705152117o34325f1dw4a0cdf95241b3b42@mail.gmail.com \
--to=yhlu.kernel@gmail.com \
--cc=ak@suse.de \
--cc=akpm@linux-foundation.org \
--cc=bjorn.helgaas@hp.com \
--cc=ebiederm@xmission.com \
--cc=kraxel@suse.de \
--cc=linux-kernel@vger.kernel.org \
--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®