Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1383560

Re: regression: 3a878c430fd6 ("tty: serial: msm: Add TX DMA support") drops data

From Frank Rowand <frowand.list@gmail.com>
Newsgroups linux.kernel
Subject Re: regression: 3a878c430fd6 ("tty: serial: msm: Add TX DMA support") drops data
Date 2016-04-20 18:50 +0200
Message-ID <rq3ua-2ta-11@gated-at.bofh.it> (permalink)
References <rpNfI-6EG-7@gated-at.bofh.it> <rpTuO-3ce-13@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 4/19/2016 11:07 PM, Ivan Ivanov wrote:
> 
>> On Apr 20, 2016, at 02:23, Frank Rowand <frowand.list@gmail.com> wrote:
>>
>> Hi Ivan,
>>
>> It appears that I have found a regression caused by
>> 3a878c430fd6 ("tty: serial: msm: Add TX DMA support").
>>
>> When I cat a file slightly larger than 126000 bytes on
>> the console, viewed via minicom connected to the serial
>> port, I am losing random chunks of data, almost always
>> three bytes in length.  I have also seen a lost chunk
>> of two bytes.
>>
>> I am using the 8074 dragonboard, with the dts of
>> arch/arm/boot/dts/qcom-apq8074-dragonboard.dts.
>> The dts node is serial@f991e000, which has a
>> compatible of "qcom,msm-uartdm-v1.4", so is_uartdm
>> should be UARTDM_1P4.
> 
> I don’t remember what was biggest chunk, which DMA
> could carry, sorry. Are you using DMA or just PIO? 
> Is this happening only with cat and terminal or even
> when you send data in other means. I believe that 
> people from Linaro could help you better.

I assumed you would be the person who would have the
information and would be able to help maintain the
code in question since you submitted this not small
patch.  Do you have a pointer to the hardware
documentation of the DMA and uart?  Who at Linaro
are you suggesting?

Thanks for the questions, I'll look into them today.

One more observation that may provide an insight:
if I cat a file multiple times, the location of
the dropped chunks varies.

In further testing I also found examples of single
bytes lost.

Thanks,

Frank

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

regression: 3a878c430fd6 ("tty: serial: msm: Add TX DMA support")  drops data Frank Rowand <frowand.list@gmail.com> - 2016-04-20 01:30 +0200
  Re: regression: 3a878c430fd6 ("tty: serial: msm: Add TX DMA support") drops data Ivan Ivanov <iivanov.xz@gmail.com> - 2016-04-20 08:10 +0200
    Re: regression: 3a878c430fd6 ("tty: serial: msm: Add TX DMA support")  drops data Frank Rowand <frowand.list@gmail.com> - 2016-04-20 18:50 +0200
      Re: regression: 3a878c430fd6 ("tty: serial: msm: Add TX DMA support")  drops data Frank Rowand <frowand.list@gmail.com> - 2016-04-21 03:10 +0200
        Re: regression: 3a878c430fd6 ("tty: serial: msm: Add TX DMA support")  drops data Andy Shevchenko <andy.shevchenko@gmail.com> - 2016-04-21 22:50 +0200
          Re: regression: 3a878c430fd6 ("tty: serial: msm: Add TX DMA support")  drops data Frank Rowand <frowand.list@gmail.com> - 2016-04-23 19:30 +0200

csiph-web