From: lsorense@csclub.uwaterloo.ca (Lennart Sorensen)
To: linux-kernel@vger.kernel.org
Subject: Strange problem with tty layer
Date: Wed, 24 Jan 2007 15:40:09 -0500 [thread overview]
Message-ID: <20070124204009.GA7584@csclub.uwaterloo.ca> (raw)
I am seeing a very strange problem which seems to be in the tty layer.
I am using an exar 17D154 based PCI card (like the digi neo style card)
using the jsm driver. Kernel version 2.6.16.25.
My test involves connecting two ports together with a cross over cable
and then sending a test pattern of characters. I am currently using
11520 characters at 230400bps (so 0.5s for the transfer).
Most of the time, it works perfectly, but once in a while, I never
receiver the last few characters (between 1 and 65 or so characters it
seems).
I have confirmed that the driver does in fact receive all the
characters, and that they are correct, and that they are being passed to
the tty layer using tty_insert_flip_string, and that it returns that all
the characters have been passed to the tty layer. The user space
application however still doesn't see the last few characters (when it
fails).
The problem seems to occour every few hours of testing on a 266MHz Geode
SC1200. When I change the clock to 133MHz, it happens every few minutes
instead (so much more frequently). I suspect there is some race
condition that allows the tty layer to not get around to processing all
the data in the buffer, even when asked for data by the application
(which is waiting on the serial port using select, with a 4s timeout).
Any suggestions on where to head next to debug this?
Sending a few more characters when the receive times out before getting
the complete message does not cause the missing data to arive it seems,
only completely closing and starting the test program again seems to
recover it, although I may just not have been patient enough.
--
Len Sorensen
next reply other threads:[~2007-01-24 20:40 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-01-24 20:40 Lennart Sorensen [this message]
2007-01-24 21:20 ` Paul Fulghum
2007-01-24 21:48 ` Lennart Sorensen
2007-01-25 15:16 ` Lennart Sorensen
2007-01-26 14:20 ` Lennart Sorensen
2007-01-26 14:51 ` Paul Fulghum
2007-01-26 14:56 ` Lennart Sorensen
2007-01-26 15:06 ` Paul Fulghum
2007-01-26 16:08 ` Lennart Sorensen
2007-01-29 19:27 ` Lennart Sorensen
2007-02-17 16:09 ` Lennart Sorensen
2007-01-24 21:19 Kilau, Scott
2007-01-24 21:34 ` Lennart Sorensen
2007-01-25 14:31 ` 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=20070124204009.GA7584@csclub.uwaterloo.ca \
--to=lsorense@csclub.uwaterloo.ca \
--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®