linux-serial.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Very strange data loss with jsm driver
@ 2011-07-29 16:04 Lennart Sorensen
  2011-07-29 16:27 ` Alan Cox
  0 siblings, 1 reply; 11+ messages in thread
From: Lennart Sorensen @ 2011-07-29 16:04 UTC (permalink / raw)
  To: linux-serial; +Cc: Len Sorensen, linux-kernel, Breno Leitao

I discovered a strange situation where the jsm driver discards the
majority of transmit data.

I have two text files.

The first file consists of 9100 lines of:
0123456789<newline>
Total 100100 bytes.

The second file consists of 100 lines of:
01234567890123456789.....0123456789<newline> (1000 character line)
Total 100100 bytes.

The first file transmits instantly, with the receiving end getting
approximately 100 bytes of the data.

The second file sends in about 1 minute and 40 seconds at 9600 baud
(the speed doesn't affect the behaviour in any noticeable way) as one
would expect, and the other end sees all the data.

The trigger point appears to be lines of up to 14 bytes, followed by
a newline.  With 15 bytes or more per line it seems to be OK.

Anyone got a clue?

I was testing on 3.0.0.  Same on 2.6.32.

3.0.0 unfortunately no longer has port statistics on the jsm driver in
/proc/tty/driver/jsm making it hard to see what the driver believes is
going on, it seems 2.6.37 broke that with some serial cleanup.
I am cleaning up a patch to fix that.

-- 
Len Sorensen

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2011-08-02 14:52 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-29 16:04 Very strange data loss with jsm driver Lennart Sorensen
2011-07-29 16:27 ` Alan Cox
2011-07-29 16:53   ` Lennart Sorensen
2011-07-29 18:06     ` Lennart Sorensen
2011-07-29 18:14       ` Alan Cox
2011-07-29 18:13         ` Lennart Sorensen
2011-08-02 14:17           ` Breno Leitao
2011-08-02 14:22             ` Lennart Sorensen
2011-08-02 14:23               ` Lennart Sorensen
2011-08-02 14:49               ` Breno Leitao
2011-08-02 14:52                 ` Lennart Sorensen

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).