* regression: 3a878c430fd6 ("tty: serial: msm: Add TX DMA support") drops data
@ 2016-04-19 23:23 Frank Rowand
2016-04-20 6:07 ` Ivan Ivanov
0 siblings, 1 reply; 4+ messages in thread
From: Frank Rowand @ 2016-04-19 23:23 UTC (permalink / raw)
To: ivan.ivanov
Cc: agross, David Brown, srinivas.kandagatla, Greg Kroah-Hartman,
jslaby, Rob Herring, Pawel Moll, Mark Rutland, Ian Campbell,
devicetree@vger.kernel.org, Linux Kernel list,
linux-arm-msm@vger.kernel.org, linux-soc, linux-serial
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: regression: 3a878c430fd6 ("tty: serial: msm: Add TX DMA support") drops data
2016-04-19 23:23 regression: 3a878c430fd6 ("tty: serial: msm: Add TX DMA support") drops data Frank Rowand
@ 2016-04-20 6:07 ` Ivan Ivanov
[not found] ` <EEBBF78A-33BB-4ACD-8CBF-285E1149FB9F-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
0 siblings, 1 reply; 4+ messages in thread
From: Ivan Ivanov @ 2016-04-20 6:07 UTC (permalink / raw)
To: frowand.list
Cc: Andy Gross, David Brown, srinivas.kandagatla, Greg Kroah-Hartman,
jslaby, Rob Herring, Pawel Moll, Mark Rutland, Ian Campbell,
devicetree@vger.kernel.org, Linux Kernel list,
linux-arm-msm@vger.kernel.org, linux-soc, linux-serial
> 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--
To unsubscribe from this list: send the line "unsubscribe linux-arm-msm" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: regression: 3a878c430fd6 ("tty: serial: msm: Add TX DMA support") drops data
[not found] ` <EEBBF78A-33BB-4ACD-8CBF-285E1149FB9F-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
@ 2016-04-20 16:48 ` Frank Rowand
2016-04-21 1:00 ` Frank Rowand
0 siblings, 1 reply; 4+ messages in thread
From: Frank Rowand @ 2016-04-20 16:48 UTC (permalink / raw)
To: Ivan Ivanov
Cc: Andy Gross, David Brown,
srinivas.kandagatla-QSEj5FYQhm4dnm+yROfE0A, Greg Kroah-Hartman,
jslaby-IBi9RG/b67k, Rob Herring, Pawel Moll, Mark Rutland,
Ian Campbell, devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
Linux Kernel list,
linux-arm-msm-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
linux-soc-u79uwXL29TY76Z2rM5mHXA,
linux-serial-u79uwXL29TY76Z2rM5mHXA
On 4/19/2016 11:07 PM, Ivan Ivanov wrote:
>
>> On Apr 20, 2016, at 02:23, Frank Rowand <frowand.list-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: regression: 3a878c430fd6 ("tty: serial: msm: Add TX DMA support") drops data
2016-04-20 16:48 ` Frank Rowand
@ 2016-04-21 1:00 ` Frank Rowand
0 siblings, 0 replies; 4+ messages in thread
From: Frank Rowand @ 2016-04-21 1:00 UTC (permalink / raw)
To: Ivan Ivanov
Cc: Andy Gross, David Brown, srinivas.kandagatla, Greg Kroah-Hartman,
jslaby, Rob Herring, Pawel Moll, Mark Rutland, Ian Campbell,
devicetree@vger.kernel.org, Linux Kernel list,
linux-arm-msm@vger.kernel.org, linux-soc, linux-serial
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
>
>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2016-04-21 1:00 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-19 23:23 regression: 3a878c430fd6 ("tty: serial: msm: Add TX DMA support") drops data Frank Rowand
2016-04-20 6:07 ` Ivan Ivanov
[not found] ` <EEBBF78A-33BB-4ACD-8CBF-285E1149FB9F-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2016-04-20 16:48 ` Frank Rowand
2016-04-21 1:00 ` Frank Rowand
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).