From: Bjorn Helgaas <bjorn.helgaas@hp.com>
To: "Yinghai Lu" <yhlu.kernel@gmail.com>
Cc: "Gerd Hoffmann" <kraxel@redhat.com>, "Andi Kleen" <ak@suse.de>,
akpm@linux-foundation.org,
"Linus Torvalds" <torvalds@linux-foundation.org>,
"Eric W. Biederman" <ebiederm@xmission.com>,
"linux kernel mailing list" <linux-kernel@vger.kernel.org>
Subject: Re: [patch] early printk and boot console fixups.
Date: Wed, 16 May 2007 10:56:26 -0600 [thread overview]
Message-ID: <200705161056.26386.bjorn.helgaas@hp.com> (raw)
In-Reply-To: <86802c440705160929t5cbec9d2me2b83db34a9c572f@mail.gmail.com>
On Wednesday 16 May 2007 10:29:11 am Yinghai Lu wrote:
> On 5/16/07, Bjorn Helgaas <bjorn.helgaas@hp.com> wrote:
> > On Tuesday 15 May 2007 10:17:50 pm Yinghai Lu wrote:
> > > 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
> >
> > I would rather try to merge 8250_early and early_printk.
> > "console=uart,io,0x3f8" is already pretty similar to
> > "earlyprintk=serial", and it would be nice to have only one.
> >
> > "console=uart" does have the disadvantage that you have to know the
> > port address. But it has the advantage that it doesn't depend on
> > compiled-in legacy serial port names. If you need early console
> > output, you're probably a developer and can come up with the address.
> >
> > I think it would be nice to have a "console=vga". That could use
> > the current "earlyprintk=vga" implementation, and automatically
> > hand off to tty0.
> >
> > Then we could remove "earlyprintk=" and always use "console=uart"
> > or "console=vga".
>
> earlyprintk= is needed for seeting bootconsole, or setting CON_BOOT,
> and it is could be loaded earlier with early_param than console_init.
8250_early.c does basically the same thing as the serial part of
early_printk.c, so we should be able to make it work just as early.
I don't remember why I didn't use early_param() for 8250_early;
I probably should have. On ia64, it doesn't matter because we call
early_serial_console_init() explicitly at about the time of
parse_early_param().
8250_early and early_printk are so similar, I just don't see the
need for both.
Bjorn
next prev parent reply other threads:[~2007-05-16 16:56 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
2007-05-16 15:59 ` Bjorn Helgaas
2007-05-16 16:29 ` Yinghai Lu
2007-05-16 16:56 ` Bjorn Helgaas [this message]
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=200705161056.26386.bjorn.helgaas@hp.com \
--to=bjorn.helgaas@hp.com \
--cc=ak@suse.de \
--cc=akpm@linux-foundation.org \
--cc=ebiederm@xmission.com \
--cc=kraxel@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@linux-foundation.org \
--cc=yhlu.kernel@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
all inboxes | Powered by JetHome®