All of lore.kernel.org
 help / color / mirror / Atom feed
From: Juan Quintela <quintela@trasno.org>
To: "Maciej W. Rozycki" <macro@ds2.pg.gda.pl>
Cc: Ladislav Michl <ladis@linux-mips.org>, linux-mips@linux-mips.org
Subject: Re: [PATCH] kill prom_printf
Date: Tue, 17 Jun 2003 17:03:24 +0200	[thread overview]
Message-ID: <86of0wiw5f.fsf@trasno.mitica> (raw)
In-Reply-To: <Pine.GSO.3.96.1030617154243.22214F-100000@delta.ds2.pg.gda.pl> (Maciej W. Rozycki's message of "Tue, 17 Jun 2003 15:44:32 +0200 (MET DST)")

>>>>> "maciej" == Maciej W Rozycki <macro@ds2.pg.gda.pl> writes:

maciej> On Tue, 17 Jun 2003, Juan Quintela wrote:
maciej> So you need to explicitly configure it?  That's very bad.
>> 
>> You bet:
>> - you force everybody to use early_printk (you only want it for
>> debugging).
>> - you configure early_printk for everybody (never have to configure
>> it).
>> 
>> You can't have the cake and eat it :(

maciej> I'm not sure what you mean.  Please elaborate.

As it is used in the other platforms:

- you setup your console (there is a console by default).
- until that console is initilized, messages are buffered.

that is clearly bad if your system stops before initializing the
console: i.e. zero output.

- early_printk to the rescue, as soon as you can print, you initialize
  the console, and begin printing.

- so far so god.

- now it is time to initialize the real console (reading
  console=<blah> ....)
- output from now one goes to the real console.

Problems:
a - you want all your messages in your console, and your console is not
  the console used by early_printk.  Some meassages dissapear, why?
  because early_printk is the default -> you don't want early_printk
  by default.uu

b - you want at least some output if the kernel hangs early -> you want
  early_printk by default.

I am not able to make happy people in the a) group or people in the b)
group, but not both at the same time with the default early_console.


I hope that now explanation is better (for sure that it is larger).

>> Why do you ever will want not to use early_printk?

maciej> I won't, but someone else certainly will.

I meaned here somebody in general, not you in particular :p

Later, Juan.

-- 
In theory, practice and theory are the same, but in practice they 
are different -- Larry McVoy

  reply	other threads:[~2003-06-17 15:03 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-06-16 14:33 [PATCH] kill prom_printf Ladislav Michl
2003-06-16 15:19 ` Maciej W. Rozycki
2003-06-16 23:31   ` Juan Quintela
2003-06-17  7:53     ` Ladislav Michl
2003-06-17 12:14       ` Maciej W. Rozycki
2003-06-17 12:45         ` Ladislav Michl
2003-06-17 14:17           ` Maciej W. Rozycki
2003-06-17 14:38             ` Geert Uytterhoeven
2003-06-17 14:49               ` Maciej W. Rozycki
2003-06-17 15:12                 ` Geert Uytterhoeven
2003-06-17 16:05                   ` Maciej W. Rozycki
2003-06-18 11:52                     ` Maciej W. Rozycki
2003-06-17 11:47     ` Maciej W. Rozycki
2003-06-17 11:52       ` Ladislav Michl
2003-06-17 12:16         ` Maciej W. Rozycki
2003-06-17 12:18           ` Ladislav Michl
2003-06-17 12:32             ` Jan-Benedict Glaw
2003-06-17 12:43               ` Jan-Benedict Glaw
2003-06-17 13:57               ` Maciej W. Rozycki
2003-06-17 13:42             ` Maciej W. Rozycki
2003-06-17 12:24           ` Juan Quintela
2003-06-17 13:44             ` Maciej W. Rozycki
2003-06-17 15:03               ` Juan Quintela [this message]
2003-06-17 15:13                 ` Geert Uytterhoeven
2003-06-17 15:26                   ` Juan Quintela

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=86of0wiw5f.fsf@trasno.mitica \
    --to=quintela@trasno.org \
    --cc=ladis@linux-mips.org \
    --cc=linux-mips@linux-mips.org \
    --cc=macro@ds2.pg.gda.pl \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.