public inbox for linux-serial@vger.kernel.org
 help / color / mirror / Atom feed
From: Thomas Koeller <thomas@koeller.dyndns.org>
To: Alex Williamson <alex.williamson@hp.com>
Cc: linux-serial@vger.kernel.org,
	Aristeu Sergio Rozanski Filho <aris@cathedrallabs.org>
Subject: Re: RM9000 code broken in 8250.c
Date: Sat, 16 Feb 2008 18:18:16 +0100	[thread overview]
Message-ID: <200802161818.16415.thomas@koeller.dyndns.org> (raw)
In-Reply-To: <1198246996.7091.17.camel@bling>

Hi Alex,

I apologize for the long delay, I had to sort out a couple of things first,
but I am now ready to return to the issue.

>    Sorry this code is causing you trouble.  I tried the existing TXEN
> bug code, it seems to be fighting a similar, but still quite different
> bug.  The UART bug the backup timer code is trying to fix is more
> asynchronous.  It might need a kick in the middle of a transmit, not
> just at the beginning.

Is the test code you added really capable of detecting this kind of behavior?
To me it does not seem to be - it looks as if it only checks whether the
transmitter empty interrupt is raised when that interrupt is enabled
while the transmitter holding register is empty. That is the same
condition the UART_BUG_TXEN code checks for.

> Can we re-arrange the tests such that they both 
> work?  It would be fine with me if we don't run the test for the backup
> timer on ports with UART_BUG_TXEN already enabled.  The easiest
> mechanism might be to test port.type for PORT_RM9000, and not test those
> for the backup timer.  Then we don't need to re-order the code too much.

I do not think that is an option. The UART_BUG_TXEN code has been there
before I added support for the RM9000, so it probably has more users.

Looking at your description of the bug you are trying to deal with
(interrupts cease to be generated randomly in the middle of a transmission),
I wonder if it is at all possible to write a runtime check that reliably
can detect it. Wouldn't a configuration option be more appropriate here?
This would also have the added advantage of being able to leave out your
code in cases where it is not needed, reducing bloat.

thanks,
Thomas

-- 
Thomas Koeller
thomas@koeller.dyndns.org

  reply	other threads:[~2008-02-16 23:47 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-12-21 11:50 RM9000 code broken in 8250.c Thomas Koeller
2007-12-21 14:23 ` Alex Williamson
2008-02-16 17:18   ` Thomas Koeller [this message]
2008-02-17  6:09     ` Alex Williamson
2008-02-17 12:47       ` Thomas Koeller
2008-02-20 17:56         ` Alex Williamson
2008-02-26  0:59           ` Thomas Koeller
2008-02-26 15:37             ` Alex Williamson
2008-03-02 16:03               ` Thomas Koeller

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=200802161818.16415.thomas@koeller.dyndns.org \
    --to=thomas@koeller.dyndns.org \
    --cc=alex.williamson@hp.com \
    --cc=aris@cathedrallabs.org \
    --cc=linux-serial@vger.kernel.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