From: "Jon Smirl" <jonsmirl@gmail.com>
To: "linux-os (Dick Johnson)" <linux-os@analogic.com>
Cc: "Mathieu Desnoyers" <compudj@krystal.dyndns.org>,
linux-kernel@vger.kernel.org, ltt-dev@shafik.org
Subject: Re: Interrupts disabled for too long in printk
Date: Thu, 8 Jun 2006 10:38:13 -0400 [thread overview]
Message-ID: <9e4733910606080738xd44aab3o5ac0d4bda920575d@mail.gmail.com> (raw)
In-Reply-To: <Pine.LNX.4.61.0606080618520.29263@chaos.analogic.com>
On 6/8/06, linux-os (Dick Johnson) <linux-os@analogic.com> wrote:
>
> On Wed, 7 Jun 2006, Jon Smirl wrote:
>
> > On 6/7/06, Mathieu Desnoyers <compudj@krystal.dyndns.org> wrote:
> >> * Jon Smirl (jonsmirl@gmail.com) wrote:
> >>> You can look at this problem from the other direction too. Why is it
> >>> taking 15ms to get between the two points? If IRQs are off how is the
> >>> serial driver getting interrupts to be able to display the message? It
> >>> is probably worthwhile to take a look and see what the serial console
> >>> driver is doing.
> >>
> >> Hi John,
> >>
> >> The serial port is configured at 38000 bauds. It can therefore transmit 4800
> >> bytes per seconds, for 72 characters in 15 ms. So the console driver would be
> >> simply busy sending characters to the serial port during that interrupt
> >> disabling period.
> >
> > Why can't the serial console driver record the message in a buffer at
> > the point where it is being called with interrupts off, and then let
> > the serial port slowly print it via interupts? It sounds to me like
> > the serial port is being driven in polling mode.
> >
> >>
> >> Mathieu
> >>
> >> OpenPGP public key: http://krystal.dyndns.org:8080/key/compudj.gpg
> >> Key fingerprint: 8CD5 52C3 8E3C 4140 715F BA06 3F25 A8FE 3BAE 9A68
>
> Probably because there is no buffer that is big enough! If the character
> source (a call to printk()) can generate N characters per second, but
> the UART can only send out N-1, then the buffer will fill up at which
> time software will wait until the UART is ready for the next character,
> effectively becoming poll-mode with a buffer full of characters as
> backlog.
That sounds like a reasonable explanation if that is what is actually
happening. Does the serial console driver revert to a polling
behavior when interrupts are off?
What should the console do in this situation? If called to printk with
interrupts off, and the backlog buffer is full, should it suspend the
system like it is doing, or should it toss the printk and return an
error?
--
Jon Smirl
jonsmirl@gmail.com
next prev parent reply other threads:[~2006-06-08 14:38 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-06-03 11:19 Mathieu Desnoyers
2006-06-03 21:43 ` Steven Rostedt
2006-06-08 1:09 ` Mathieu Desnoyers
2006-06-08 1:37 ` Jon Smirl
2006-06-08 2:31 ` Mathieu Desnoyers
2006-06-08 2:35 ` Jon Smirl
2006-06-08 10:24 ` linux-os (Dick Johnson)
2006-06-08 14:38 ` Jon Smirl [this message]
2006-06-08 15:17 ` linux-os (Dick Johnson)
2006-06-08 15:45 ` Jon Smirl
2006-06-08 18:34 ` Miquel van Smoorenburg
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=9e4733910606080738xd44aab3o5ac0d4bda920575d@mail.gmail.com \
--to=jonsmirl@gmail.com \
--cc=compudj@krystal.dyndns.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-os@analogic.com \
--cc=ltt-dev@shafik.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®