From: Dan Christian <dchristian@mail.arc.nasa.gov>
To: Alan Cox <alan@lxorguk.ukuu.org.uk>, linux-kernel@vger.kernel.org
Subject: Re: 2.4.18 serial drops characters with 16654
Date: Thu, 19 Sep 2002 11:24:24 -0700 [thread overview]
Message-ID: <200209191124.24964.dchristian@mail.arc.nasa.gov> (raw)
In-Reply-To: <1032457132.27721.45.camel@irongate.swansea.linux.org.uk>
This still isn't getting at the core problem. I'm sending data out the
port and dropping characters. The receive works fine.
It can't be a problem with the receiving device being over-run, since
the 16550 works (even though it sends several bytes after CTS drops),
and the 16654 doesn't (it stops after the current byte).
I think that data must be lost when the receiving device drops CTS.
Either this is a hardware flaw (and data is lost from the transmit
FIFO), or there is some kind of race condition between the CTS drop and
re-loading the FIFO.
-Dan
On Thursday 19 September 2002 10:38, Alan Cox wrote:
> On Thu, 2002-09-19 at 18:27, Dan Christian wrote:
> > The problem seems to be related to the RTS/CTS flow control
> > handling. The 16654 handles flow control in hardware, but the 16550
> > does it in software (I've verified this with a digital
> > oscilloscope). I don't currently have the equipment to compare
> > when the lines drop and which characters are lost.
>
> Actually you can do it in hardware on the 16550 depending how its
> wired. Take a look at the usenet-2 serial port design some day. The
> software mode we do does in theory mean heavy delay to the bh
> handling might delay the assertion excessively. That I think may be
> the real explanation here.
>
> Its
> buffer full
> bh handler delayed by bh load (tasklet nowdays I guess I
> mean) overrun
> overrun
> ...
> ksoftirqd
> Oh look I should do carrier
>
> Russell - does that sound reasonable.
>
> If so the answer yet again (as with the gige performance and some
> others) might be to make it much much harder for stuff tofall back to
> ksoftirqd.
next prev parent reply other threads:[~2002-09-19 18:19 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-09-11 14:28 Ed Vance
2002-09-11 23:12 ` Andreas Steinmetz
2002-09-12 8:20 ` Alan Cox
2002-09-19 17:27 ` Dan Christian
2002-09-19 17:38 ` Alan Cox
2002-09-19 18:01 ` Russell King
2002-09-19 18:38 ` Dan Christian
2002-09-19 18:24 ` Dan Christian [this message]
2002-09-19 18:42 ` Alan Cox
2002-09-19 18:43 ` Russell King
2002-09-12 14:55 ` Stuart MacDonald
-- strict thread matches above, loose matches on Subject: below --
2002-09-10 22:22 Dan Christian
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=200209191124.24964.dchristian@mail.arc.nasa.gov \
--to=dchristian@mail.arc.nasa.gov \
--cc=alan@lxorguk.ukuu.org.uk \
--cc=linux-kernel@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
all inboxes | Powered by JetHome®