linux-serial.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* UART RX losing bytes
@ 2023-02-26 10:47 Gerz Burak LCPF-CH
  2023-02-26 13:45 ` Sergey Organov
  0 siblings, 1 reply; 2+ messages in thread
From: Gerz Burak LCPF-CH @ 2023-02-26 10:47 UTC (permalink / raw)
  To: linux-serial@vger.kernel.org
  Cc: gregkh@linuxfoundation.org, Sascha Hauer, kernel@pengutronix.de,
	linux-imx@nxp.com, Manuel Traut, Traut Manuel LCPF-CH

Hello,

v6.1.14 on a Phytec phyBoard Segin i.MX 6ULL based board [0] is losing bytes on UART RX.
imx_v6_v7_defconfig was used.

Minimalistic test to reproduce the issue:

1) Connect imx6ull UART with another machine
2) imx6ull$ stty -F /dev/ttymxc0 115200 raw; cat /dev/ttymcx0
3) othermachine$ stty -F /dev/USB0 115200 raw; 
    echo "1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ$%-.,()/&" > /dev/ttyUSB0

Expected result:
imx6ull: 1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ$%-.,()/&

Seen result (Many times, not always):
imx6ull: 1234567890abcdefghijklmnopqrstuvABCDEFGHIJKLMNOPQRSTUVWXYZ$%-.,()/&
or
imx6ull: 1234567890abcdefghijklmnopqrstuvBCDEFGHIJKLMNOPQRSTUVWXYZ$%-.,()/&
or
...

Setting scaling_governor to performance seems to be a workaround for this problem - but:
We are normally using the PREMPT_RT patch [1], and with this workaround bytes will still be lost

Any hints how to track this down further?

[0] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/tree/arch/arm/boot/dts/imx6ull-phytec-segin-ff-rdk-nand.dts?h=v6.1.14 
[1] https://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-rt-devel.git/tag/?h=v6.1.12-rt7

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-02-26 13:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-26 10:47 UART RX losing bytes Gerz Burak LCPF-CH
2023-02-26 13:45 ` Sergey Organov

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).