linux-rt-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "André Pribil" <Andre.Pribil@hms-networks.com>
To: "linux-rt-users@vger.kernel.org" <linux-rt-users@vger.kernel.org>
Cc: John Ogness <john.ogness@linutronix.de>
Subject: printk: console output corrupted
Date: Tue, 21 Feb 2023 12:38:20 +0000	[thread overview]
Message-ID: <AM5PR10MB162013648CCFDDDC4EE42A3CBDA59@AM5PR10MB1620.EURPRD10.PROD.OUTLOOK.COM> (raw)

Hi,

I'm using a IMX8MP board with kernel 5.10.165-rt81. UART3 is used as the console device.
When the device boots the serial outputs on this UART get corrupted at some point.
It looks like only one line is corrupted. However, this line often confuses my terminal, so that
the lines behind are also not shown correctly. A reset of the terminal fixes that.

I could not figure out why this happens, yet. I only know that the issue does not occur
when I remove the preempt-rt patch or when I specify the "maxcpus=1" kernel command 
line parameter. I also tried to enable/disable the "earlycon" setting, but this seem to only 
change the time when this happens during the boot messages. 

When the boot messages are afterwards displayed with "dmesg", they do not contain
corrupted characters. Therefore, I assume that the corruption occurs at the UART level.
Maybe some lock issue and therefore some concurrent access to the UART registers?

I don't know how to further trace this. Any help is appreciated.

Thanks,
Andre



             reply	other threads:[~2023-02-21 12:38 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-02-21 12:38 André Pribil [this message]
2023-02-21 16:12 ` printk: console output corrupted John Ogness
2023-02-21 16:15   ` [PATCH] printk/console: Enable console kthreads only when there is no boot console left John Ogness
2023-02-22 10:53     ` André Pribil
2023-02-22 14:35       ` André Pribil

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=AM5PR10MB162013648CCFDDDC4EE42A3CBDA59@AM5PR10MB1620.EURPRD10.PROD.OUTLOOK.COM \
    --to=andre.pribil@hms-networks.com \
    --cc=john.ogness@linutronix.de \
    --cc=linux-rt-users@vger.kernel.org \
    /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).