mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Yinghai Lu" <yhlu.kernel@gmail.com>
To: "Bjorn Helgaas" <bjorn.helgaas@hp.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 09:29:11 -0700	[thread overview]
Message-ID: <86802c440705160929t5cbec9d2me2b83db34a9c572f@mail.gmail.com> (raw)
In-Reply-To: <200705160959.12433.bjorn.helgaas@hp.com>

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.

in the console_init (via register_console), the console is handed over
from bootconsole to normal console.

also console_init could be moved to quite late than current, and till
some subsystem is initialized like pci and usb.

YH

  reply	other threads:[~2007-05-16 16:29 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 [this message]
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=86802c440705160929t5cbec9d2me2b83db34a9c572f@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@redhat.com \
    --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®