linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Russell King <rmk+lkml@arm.linux.org.uk>
To: Meelis Roos <mroos@linux.ee>
Cc: alan@lxorguk.ukuu.org.uk, linux-kernel@vger.kernel.org
Subject: Re: Serial: bug in 8250.c when handling PCI or other level triggers
Date: Thu, 22 Dec 2005 13:07:44 +0000	[thread overview]
Message-ID: <20051222130744.GA31339@flint.arm.linux.org.uk> (raw)
In-Reply-To: <Pine.SOC.4.61.0512221231430.6200@math.ut.ee>

On Thu, Dec 22, 2005 at 12:35:30PM +0200, Meelis Roos wrote:
> But I might have some more information:
> 
> The first bunch of messages did not happen on serial port detection but 
> when "discover" ran and opened the serial port.
> 
> The second bunch of messages happened when minicom opened the port. I 
> then modprobed tulip to see separating lines in dmesg. Then I used cisco 
> remote console and no messages appeared. Then I powered down the cisco 
> and then quited minicom. This took time and produced another bunch of 
> messages.

Thanks for spending the time trying to track this down.

I'm still grasping at straws - it is plainly clear to me from the
debug traces that your machine is _not_ doing what the C code is
asking it to do.

Basically, the characteristics seem to be:

 * if the UART indicates no IRQ on invocation of the interrupt
   handler, we repeatedly loop in the handler and eventually
   hit this "too much work" problem.

 * if the UART indicates IRQ on invocation of the interrupt, and
   subsequently no IRQ, we exit the interrupt handler as per the
   code.

I notice you're using gcc 4.0.3.  Have you tried other compiler
versions?

Are you building the kernel with any additional compiler flags?

Are there any other patches applied to the 8250.c file apart from my
debugging patch?  What's the diff between a vanilla Linus kernel and
the one you built?

If it isn't a compiler bug and there aren't any other patches applied,
I have no idea what to suggest next, apart from your computer seemingly
following a different set of rules to the rest of the universe.  Maybe
you could donate it to some quantum physics lab? 8)

If anyone else has any suggestions, please jump in now.

-- 
Russell King
 Linux kernel    2.6 ARM Linux   - http://www.arm.linux.org.uk/
 maintainer of:  2.6 Serial core

  reply	other threads:[~2005-12-22 13:07 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-12-14 15:23 Serial: bug in 8250.c when handling PCI or other level triggers Alan Cox
2005-12-14 16:07 ` Meelis Roos
2005-12-14 17:24   ` Russell King
2005-12-14 18:43     ` Meelis Roos
2005-12-21 15:24       ` Russell King
2005-12-21 20:33     ` Meelis Roos
2005-12-21 22:15       ` Russell King
2005-12-22 10:35         ` Meelis Roos
2005-12-22 13:07           ` Russell King [this message]
2005-12-22 13:19             ` Meelis Roos
2005-12-23  9:20             ` Meelis Roos
2005-12-23  9:33               ` Russell King
2005-12-23 10:05                 ` Meelis Roos
2005-12-23 10:41                   ` Russell King
2005-12-27 13:54                     ` Meelis Roos
2005-12-28 19:55                       ` Russell King
2005-12-29  8:11                         ` Meelis Roos
2006-01-08 23:24                           ` Antonio Vargas
2006-01-09  8:54                             ` Russell King
2005-12-14 22:29   ` Alan Cox
2005-12-15 19:00     ` Stuart MacDonald
2005-12-14 16:55 ` Russell King
2005-12-14 19:08   ` Alan Cox
2005-12-14 19:55     ` Russell King

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=20051222130744.GA31339@flint.arm.linux.org.uk \
    --to=rmk+lkml@arm.linux.org.uk \
    --cc=alan@lxorguk.ukuu.org.uk \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mroos@linux.ee \
    /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;
as well as URLs for NNTP newsgroup(s).