Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1382901 > unrolled thread
| Started by | Frank Rowand <frowand.list@gmail.com> |
|---|---|
| First post | 2016-04-20 01:30 +0200 |
| Last post | 2016-04-23 19:30 +0200 |
| Articles | 6 — 3 participants |
Back to article view | Back to linux.kernel
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
| From | Frank Rowand <frowand.list@gmail.com> |
|---|---|
| Date | 2016-04-20 01:30 +0200 |
| Subject | regression: 3a878c430fd6 ("tty: serial: msm: Add TX DMA support") drops data |
| Message-ID | <rpNfI-6EG-7@gated-at.bofh.it> |
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.
Do you have any thoughts on what might be going
wrong, or what I can do to debug this?
Thanks,
Frank
[toc] | [next] | [standalone]
| From | Ivan Ivanov <iivanov.xz@gmail.com> |
|---|---|
| Date | 2016-04-20 08:10 +0200 |
| Subject | Re: regression: 3a878c430fd6 ("tty: serial: msm: Add TX DMA support") drops data |
| Message-ID | <rpTuO-3ce-13@gated-at.bofh.it> |
| In reply to | #1382901 |
> 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.
Regards,
Ivan
[toc] | [prev] | [next] | [standalone]
| From | Frank Rowand <frowand.list@gmail.com> |
|---|---|
| Date | 2016-04-20 18:50 +0200 |
| Message-ID | <rq3ua-2ta-11@gated-at.bofh.it> |
| In reply to | #1383063 |
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
[toc] | [prev] | [next] | [standalone]
| From | Frank Rowand <frowand.list@gmail.com> |
|---|---|
| Date | 2016-04-21 03:10 +0200 |
| Message-ID | <rqbi2-Ai-5@gated-at.bofh.it> |
| In reply to | #1383560 |
On 4/20/2016 9:48 AM, Frank Rowand wrote:
> 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.
I switched from cat to several variations of dd and on
the host side I tried using programs other than minicom.
My symptoms have now changed to something else that I
have seen in the past, but I am now suspicious of my
environment. I'll reset and do some more tests.
I'm not sure if the driver was in DMA or PIO mode, both
before the change and after. This seems like a rather
important question to answer, so I'll try to verify
that tonight.
>
> 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
>
>
[toc] | [prev] | [next] | [standalone]
| From | Andy Shevchenko <andy.shevchenko@gmail.com> |
|---|---|
| Date | 2016-04-21 22:50 +0200 |
| Message-ID | <rqtHY-6XI-11@gated-at.bofh.it> |
| In reply to | #1383818 |
On Thu, Apr 21, 2016 at 4:00 AM, Frank Rowand <frowand.list@gmail.com> wrote:
> On 4/20/2016 9:48 AM, Frank Rowand wrote:
>> 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.
>
> I switched from cat to several variations of dd and on
> the host side I tried using programs other than minicom.
>
> My symptoms have now changed to something else that I
> have seen in the past, but I am now suspicious of my
> environment. I'll reset and do some more tests.
>
> I'm not sure if the driver was in DMA or PIO mode, both
> before the change and after. This seems like a rather
> important question to answer, so I'll try to verify
> that tonight.
>
>>
>> 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.
[Shrink and reshuffle Cc list a bit to leave UART related people mostly.]
There are currently issues with DMA and UART on some platforms.
Besides that Peter noticed the problem with latency how DMA tasklets
are handled.
I could add that for testing (and better user experience) we are
starving for fix to disable / enable DMA support runtime. Heikki or me
might help with that when we have a bit more time.
--
With Best Regards,
Andy Shevchenko
[toc] | [prev] | [next] | [standalone]
| From | Frank Rowand <frowand.list@gmail.com> |
|---|---|
| Date | 2016-04-23 19:30 +0200 |
| Message-ID | <rr9xv-6Os-17@gated-at.bofh.it> |
| In reply to | #1384565 |
On 4/21/2016 1:42 PM, Andy Shevchenko wrote: > On Thu, Apr 21, 2016 at 4:00 AM, Frank Rowand <frowand.list@gmail.com> wrote: >> On 4/20/2016 9:48 AM, Frank Rowand wrote: < snip > >> I'm not sure if the driver was in DMA or PIO mode, both >> before the change and after. This seems like a rather >> important question to answer, so I'll try to verify >> that tonight. I was in PIO mode. I found the problem and submitted a fix. [PATCH 0/2] tty: serial: msm_serial regression and add info message [PATCH 1/2] tty: serial: msm_serial regression fix data corruption [PATCH 2/2] tty: serial: msm_serial add info message < snip > -Frank
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web