From: "Bollinger, Seth" <Seth.Bollinger@digi.com>
To: Peter Hurley <peter@hurleysoftware.com>
Cc: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
linux-serial <linux-serial@vger.kernel.org>
Subject: Re: Possible software flow problem in serial_core
Date: Thu, 20 Mar 2014 23:34:11 +0000 [thread overview]
Message-ID: <CF50E0EB.6E95%seth.bollinger@digi.com> (raw)
In-Reply-To: <532B743F.2030705@hurleysoftware.com>
>What hardware is this?
We¹re using the Freescale mxs-auart driver (i.mx28).
>A 16550 transmitter doesn't shut-off at uart->stop_tx(), so the remaining
>data in the transmitter FIFO is still transmitted.
Ok, I just reviewed the 8250 driver and you¹re correct, it appears the
transmitter is only disabled on the 16C950. I misread before (incorrectly
saw 16C550)...
>Some hardware has (relatively) big FIFOs and allows the transmitter to be
>shutoff, but these should unconditionally re-enable the transmitter
>without
>clearing the xmit fifo.
Do you have a driver that would be a good example of this? From looking
at serial_core.c:uart_start(), is seems that start_tx() is only called if
the serial_core ring buffer is not empty. If we don¹t stop the
transmitter, we slew too many characters.
>Are you seeing lost data? Maybe it's because soft flow-control is to
>slow to shutoff the sender?
No dropped bytes, but we do see a few bytes trapped in the fifo because we
received an XOFF. When we receive the XON, start_tx() is never called
because the serial_core ring buffer is empty, and we have no more data to
transmit. When we enable the transmitter manually, these bytes will pop
out.
Thanks for all of your help!
Seth
next prev parent reply other threads:[~2014-03-20 23:41 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-20 13:44 Possible software flow problem in serial_core Bollinger, Seth
2014-03-20 23:05 ` Peter Hurley
2014-03-20 23:34 ` Bollinger, Seth [this message]
2014-03-21 0:34 ` Peter Hurley
2014-03-21 0:48 ` Bollinger, Seth
2014-03-21 1:07 ` Peter Hurley
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=CF50E0EB.6E95%seth.bollinger@digi.com \
--to=seth.bollinger@digi.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-serial@vger.kernel.org \
--cc=peter@hurleysoftware.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox