All of lore.kernel.org
 help / color / mirror / Atom feed
From: Russell King <rmk@arm.linux.org.uk>
To: Zwane Mwaikambo <zwane@holomorphy.com>
Cc: Linux Kernel <linux-kernel@vger.kernel.org>
Subject: Re: 2.5.45 odd deref in serial_in
Date: Tue, 5 Nov 2002 09:02:56 +0000	[thread overview]
Message-ID: <20021105090256.A17931@flint.arm.linux.org.uk> (raw)
In-Reply-To: <Pine.LNX.4.44.0211042323410.27141-100000@montezuma.mastecende.com>; from zwane@holomorphy.com on Mon, Nov 04, 2002 at 11:27:28PM -0500

On Mon, Nov 04, 2002 at 11:27:28PM -0500, Zwane Mwaikambo wrote:
> The only modifications to this code are a slightly hacked up nmi watchdog 
> timer.

Well, Andi Kleen reported that serial_in appears in his boot time
profile after a boot.

Depending on the baud rate used, serial console printk spends time
spinning waiting for the serial port to send characters.  The slower
the baud rate, obviously the longer it spins.

Andi tried to suggest ways to make serial console asynchronous so we
didn't have to spin, but any solution in that direction means that we:

a) have to rely on interrupts running
b) have to buffer the data somewhere, which may possibly fill up and
   then what do we do with the printk message

Bear in mind that dropping random printk messages because we've filled
a buffer isn't acceptable.  Also note that the behaviour in this area
hasn't changed since 2.4 times.

Obviously, the way to reduce the time spent writing console messages to
the serial port is to increase the baud rate. 8)

-- 
Russell King (rmk@arm.linux.org.uk)                The developer of ARM Linux
             http://www.arm.linux.org.uk/personal/aboutme.html


  parent reply	other threads:[~2002-11-05  8:56 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-11-05  4:27 2.5.45 odd deref in serial_in Zwane Mwaikambo
2002-11-05  4:38 ` Zwane Mwaikambo
2002-11-05  9:02 ` Russell King [this message]
2002-11-05  9:20   ` Zwane Mwaikambo
2002-11-05 10:16     ` Russell King
2002-11-07 15:17     ` David Woodhouse
2002-11-07 15:24       ` Zwane Mwaikambo
2002-11-05 10:20 ` Russell King
2002-11-05 14:30   ` Zwane Mwaikambo
2002-11-06  3:23     ` Philippe Elie
2002-11-06  8:37       ` Zwane Mwaikambo

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=20021105090256.A17931@flint.arm.linux.org.uk \
    --to=rmk@arm.linux.org.uk \
    --cc=linux-kernel@vger.kernel.org \
    --cc=zwane@holomorphy.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 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.