lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Wed, 20 Apr 2016 09:48:10 -0700
From:	Frank Rowand <frowand.list@...il.com>
To:	Ivan Ivanov <iivanov.xz@...il.com>
CC:	Andy Gross <agross@...eaurora.org>,
	David Brown <davidb@...eaurora.org>,
	srinivas.kandagatla@...aro.org,
	Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
	jslaby@...e.com, Rob Herring <robh+dt@...nel.org>,
	Pawel Moll <pawel.moll@....com>,
	Mark Rutland <mark.rutland@....com>,
	Ian Campbell <ijc+devicetree@...lion.org.uk>,
	"devicetree@...r.kernel.org" <devicetree@...r.kernel.org>,
	Linux Kernel list <linux-kernel@...r.kernel.org>,
	"linux-arm-msm@...r.kernel.org" <linux-arm-msm@...r.kernel.org>,
	linux-soc@...r.kernel.org, linux-serial@...r.kernel.org
Subject: Re: regression: 3a878c430fd6 ("tty: serial: msm: Add TX DMA support")
 drops data

On 4/19/2016 11:07 PM, Ivan Ivanov wrote:
> 
>> On Apr 20, 2016, at 02:23, Frank Rowand <frowand.list@...il.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@...1e000, 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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ