mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Stuart MacDonald" <stuartm@connecttech.com>
To: "Russell King" <rmk@arm.linux.org.uk>
Cc: "Khalid Aziz" <khalid@fc.hp.com>,
	"Linux kernel development list" <linux-kernel@vger.kernel.org>
Subject: Re: Support for serial console on legacy free machines
Date: Tue, 31 Jul 2001 13:14:01 -0400	[thread overview]
Message-ID: <00c001c119e4$31418560$294b82ce@connecttech.com> (raw)
In-Reply-To: <200107302332.f6UNWbxg001791@webber.adilger.int> <3B65F1A2.30708CC1@fc.hp.com> <000701c119cd$ebf0c720$294b82ce@connecttech.com> <20010731174247.A21802@flint.arm.linux.org.uk>

From: "Russell King" <rmk@arm.linux.org.uk>
> No.  Console initialisation is done early, before PCI is setup.  This

I figured that out eventually. :-)

> means that the serial driver is relying on a static array of IO port
> addresses.  At this time, the serial driver hasn't probed any ports at
> all, so it doesn't really know what does and doesn't exist.

Correct.

> If, for example, you specify your console on ttyS25, (and you have
> support for >=32 ports compiled in) I wonder what happens?  I can
> see one of two things happening:
>
> 1. Kernel locks up waiting for the non-existent "transmitter" to become
>    ready.
> 2. Kernel continues blindly writing to a non-existent port without
>    locking up and you get no messages at all.

Well, the io address would be... <checks asm/serial.h>
 { 0, BASE_BAUD, 0x148, 12, BOCA_FLAGS }, /* ttyS25 */
on i386 builds. I guess it would depend on what is actually at
0x148. Nothing good would come of it if you didn't have a uart
there, I'm sure.

> Now, this static table is updated after PCI and PNP initialisation, when
> the ports are actually probed.  Your ttyS25 may now change port address
> under the serial console!  I wonder what baud rate the messages come out
> at?  75 baud? ;(

Correct. That entry would be overwritten by whatever dynamic ports
were discovered. Of course, if you only had one 8 port card, it'd
remain the same. But if you had enough 8 port cards, you'd get a serial
port. I think the effect would be that that serial port suddenly becomes
the console, at 9600 8n1. Hm.

> The more I think about this, the more that I think we need to get rid
> of this early console initialisation.  I think Linus really wants early
> console initialisation though, and to be honest, its an extremely useful
> debugging tool for those pesky non-boots with blank displays.

There seems to be a serial console interface; perhaps we need
a general console interface that other code can make use of.
That might pave the way for an ethernet console, or a usb console,
etc.

..Stu



  reply	other threads:[~2001-07-31 17:10 UTC|newest]

Thread overview: 36+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-07-30 21:26 Andreas Dilger
2001-07-30 21:38 ` Khalid Aziz
2001-07-30 22:40   ` Andreas Dilger
2001-07-30 22:53     ` Jan-Benedict Glaw
2001-07-30 22:53     ` Maciej W. Rozycki
2001-07-30 23:00     ` Khalid Aziz
2001-07-30 23:17       ` Randy.Dunlap
2001-07-30 23:39         ` Khalid Aziz
2001-07-30 23:52           ` Randy.Dunlap
2001-07-30 23:32       ` Andreas Dilger
2001-07-30 23:40         ` Ignacio Vazquez-Abrams
2001-07-30 23:45         ` Khalid Aziz
2001-07-31 14:34           ` Stuart MacDonald
2001-07-31 15:54             ` Miquel van Smoorenburg
2001-07-31 16:00             ` Eric W. Biederman
2001-07-31 16:10             ` Khalid Aziz
2001-07-31 16:39             ` Andreas Dilger
2001-07-31 18:43               ` Russell King
2001-08-01  2:01               ` Keith Owens
2001-07-31 16:42             ` Russell King
2001-07-31 17:14               ` Stuart MacDonald [this message]
2001-07-31 18:46                 ` Russell King
2001-08-01  3:21               ` Eric W. Biederman
2001-08-01  3:39                 ` Ignacio Vazquez-Abrams
2001-07-31  1:33     ` Keith Owens
2001-07-31  4:50       ` Johannes Erdfelt
2001-07-31 16:15         ` Khalid Aziz
2001-07-29 20:47           ` Alan Cox
2001-07-31 16:20           ` Randy.Dunlap
     [not found] <no.id>
2001-07-26 22:20 ` Alan Cox
2001-07-30 17:47   ` Khalid Aziz
  -- strict thread matches above, loose matches on Subject: below --
2001-07-26 21:13 Khalid Aziz
2001-07-27 13:28 ` Simon Richter
2001-07-30 17:49   ` Khalid Aziz
2001-07-30 18:21 ` Rik van Riel
2001-07-30 19:39   ` Khalid Aziz

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='00c001c119e4$31418560$294b82ce@connecttech.com' \
    --to=stuartm@connecttech.com \
    --cc=khalid@fc.hp.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rmk@arm.linux.org.uk \
    /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

Powered by JetHome