Re: Data corruption on serial interface under load

2016-02-08 Thread Andy Shevchenko
On Fri, Feb 5, 2016 at 3:09 AM, Russell King - ARM Linux wrote: > On Fri, Feb 05, 2016 at 01:19:44AM +0200, Andy Shevchenko wrote: >> On Fri, Feb 5, 2016 at 1:15 AM, Russell King - ARM Linux >> wrote: >> > On Thu, Feb 04, 2016 at 08:55:48PM +0200, Andy Shevchenko wrote: >> >> Hi! >> >> >> >> Toda

Re: Data corruption on serial interface under load

2016-02-04 Thread Russell King - ARM Linux
On Fri, Feb 05, 2016 at 01:19:44AM +0200, Andy Shevchenko wrote: > On Fri, Feb 5, 2016 at 1:15 AM, Russell King - ARM Linux > wrote: > > On Thu, Feb 04, 2016 at 08:55:48PM +0200, Andy Shevchenko wrote: > >> Hi! > >> > >> Today I observed interesting bug / feature of uart layer in the kernel. > >>

Re: Data corruption on serial interface under load

2016-02-04 Thread Andy Shevchenko
On Fri, Feb 5, 2016 at 1:15 AM, Russell King - ARM Linux wrote: > On Thu, Feb 04, 2016 at 08:55:48PM +0200, Andy Shevchenko wrote: >> Hi! >> >> Today I observed interesting bug / feature of uart layer in the kernel. >> I do have a setup which connects two identical devices by serial line. >> I run

Re: Data corruption on serial interface under load

2016-02-04 Thread Russell King - ARM Linux
On Fri, Feb 05, 2016 at 12:27:19AM +0200, Andy Shevchenko wrote: > Here are the calls > > ret = cfsetspeed(&new_term, opts.baudrate); > cfmakeraw(&new_term); > new_term.c_cflag |= CREAD; > new_term.c_cflag &= ~CRTSCTS; So no hardware flow control... -- RMK's Patch system: http://www.arm.linux.o

Re: Data corruption on serial interface under load

2016-02-04 Thread Russell King - ARM Linux
On Thu, Feb 04, 2016 at 08:55:48PM +0200, Andy Shevchenko wrote: > Hi! > > Today I observed interesting bug / feature of uart layer in the kernel. > I do have a setup which connects two identical devices by serial line. > I run data transferring in one direction and got data corruption on > receiv

Re: Data corruption on serial interface under load

2016-02-04 Thread Andy Shevchenko
On Fri, Feb 5, 2016 at 12:24 AM, Andy Shevchenko wrote: > On Thu, Feb 4, 2016 at 10:06 PM, Peter Hurley > wrote: >>> Original sample: >>> : 7f 45 4c 46 01 01 01 00 00 00 00 00 00 00 00 00 >>> .ELF >>> 0010: 02 00 03 00 01 00 00 00 19 8d 04 08 34 00 00 00 >>>

Re: Data corruption on serial interface under load

2016-02-04 Thread Andy Shevchenko
On Thu, Feb 4, 2016 at 10:06 PM, Peter Hurley wrote: > Hi Andy, > > On 02/04/2016 10:55 AM, Andy Shevchenko wrote: >> Hi! >> >> Today I observed interesting bug / feature of uart layer in the kernel. >> I do have a setup which connects two identical devices by serial line. >> I run data transferri

Re: Data corruption on serial interface under load

2016-02-04 Thread Peter Hurley
Hi Andy, On 02/04/2016 10:55 AM, Andy Shevchenko wrote: > Hi! > > Today I observed interesting bug / feature of uart layer in the kernel. > I do have a setup which connects two identical devices by serial line. > I run data transferring in one direction and got data corruption on > receiver side