From: Sergey Organov <sorganov@gmail.com>
To: Gerz Burak LCPF-CH <Burak.Gerz@mt.com>
Cc: "linux-serial@vger.kernel.org" <linux-serial@vger.kernel.org>,
"gregkh@linuxfoundation.org" <gregkh@linuxfoundation.org>,
Sascha Hauer <s.hauer@pengutronix.de>,
"kernel@pengutronix.de" <kernel@pengutronix.de>,
"linux-imx@nxp.com" <linux-imx@nxp.com>,
Manuel Traut <manut@mecka.net>,
Traut Manuel LCPF-CH <Manuel.Traut@mt.com>
Subject: Re: UART RX losing bytes
Date: Sun, 26 Feb 2023 16:45:13 +0300 [thread overview]
Message-ID: <87h6v8levq.fsf@osv.gnss.ru> (raw)
In-Reply-To: <DB3PR0302MB8966B89FA30528D5C0643259E7AE9@DB3PR0302MB8966.eurprd03.prod.outlook.com> (Gerz Burak's message of "Sun, 26 Feb 2023 10:47:35 +0000")
Hello,
It reminds me about this:
https://marc.info/?l=linux-serial&m=166479501704202&w=2
HTH,
-- Sergey
Gerz Burak LCPF-CH <Burak.Gerz@mt.com> writes:
> 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
prev parent reply other threads:[~2023-02-26 13:45 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-02-26 10:47 UART RX losing bytes Gerz Burak LCPF-CH
2023-02-26 13:45 ` Sergey Organov [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87h6v8levq.fsf@osv.gnss.ru \
--to=sorganov@gmail.com \
--cc=Burak.Gerz@mt.com \
--cc=Manuel.Traut@mt.com \
--cc=gregkh@linuxfoundation.org \
--cc=kernel@pengutronix.de \
--cc=linux-imx@nxp.com \
--cc=linux-serial@vger.kernel.org \
--cc=manut@mecka.net \
--cc=s.hauer@pengutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).