All of lore.kernel.org
 help / color / mirror / Atom feed
* Boot stall regression from "printk for 5.19" merge
@ 2022-06-19 18:49 Marek Behún
  2022-06-19 22:23 ` John Ogness
                   ` (3 more replies)
  0 siblings, 4 replies; 29+ messages in thread
From: Marek Behún @ 2022-06-19 18:49 UTC (permalink / raw)
  To: John Ogness, Petr Mladek, Linus Torvalds, linux-kernel

Hello Linus, Petr, John,

the series
https://lore.kernel.org/linux-kernel/YouKQw72H7y9EJQK@alley/
merged by commit 537e62c865dc ("Merge tag 'printk-for-5.19' of
git://git.kernel.org/pub/scm/linux/kernel/git/printk/linux")

and in particular the commit 09c5ba0aa2fc ("printk: add kthread console
printers")

causes a regression on arm64 (Marvell CN9130-CRB board) where the
system boot freezes in most cases (and is unusable until restarted by
watchdog), or, in some cases boots, but the console output gets mangled
for a while (the serial console spits garbage characters).

The stall example:

  ...
  [    1.108141] io scheduler mq-deadline registered
  [    1.108143] io scheduler kyber registered
  [    1.163484] armada-ap806-pinctrl f06f4000.system-controller:pinctrl: registered pinctrl driver
  [

Or another:

  ...
  [    1.108155] io scheduler mq-deadline registered
  [    1.108156] io scheduler kyber registered
  [    1.162991] armada-ap806-pinctrl f06f4000.system-controller:pinctrl: registered pinctrl driver
  [    1.163361] armada-cp110-pinctrl f2440000.system-controller:pinctrl: registered pinctrl driver
  [    1.180827] mv_xor_v2 f0400000.xor: Marvell Version 2 XOR driver
  [  

The garbage example:

  ...
  [    0.920951] raid6: using neon recovery algorithm
  [    0.921228] iommu: Default domain type: Translated
  %

          gb@k+cFL/[    4.954974] DSA: tree 0 setup
  [    4.955286] cfg80211: Loading compiled-in X.509 certificates for regulatory database

I did not have time to look at the contents of the commit yet to try to
fix it myself, and won't have time for another two weeks. But I thought
I should let you know now.

Marek

^ permalink raw reply	[flat|nested] 29+ messages in thread
* printk: console output corrupted
@ 2023-02-21 12:38 André Pribil
  2023-02-21 16:12 ` John Ogness
  0 siblings, 1 reply; 29+ messages in thread
From: André Pribil @ 2023-02-21 12:38 UTC (permalink / raw)
  To: linux-rt-users@vger.kernel.org; +Cc: John Ogness

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



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

end of thread, other threads:[~2023-02-22 14:35 UTC | newest]

Thread overview: 29+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-06-19 18:49 Boot stall regression from "printk for 5.19" merge Marek Behún
2022-06-19 22:23 ` John Ogness
2022-06-19 22:31   ` John Ogness
2022-06-20 10:02     ` Marek Behún
2022-06-20  9:29   ` Marek Behún
2022-06-20 11:44     ` Petr Mladek
2022-06-20 11:47       ` Petr Mladek
2022-06-20 12:04         ` Ilpo Järvinen
2022-06-20 13:48       ` Linus Torvalds
2022-06-20 14:24         ` Petr Mladek
2022-06-20 15:14           ` [PATCH] printk/console: Enable console kthreads only when there is no boot console left Petr Mladek
2022-06-20 15:16             ` Petr Mladek
2022-06-20 18:38             ` Marek Behún
2022-06-20 19:10             ` Linus Torvalds
2022-06-20 22:25               ` Petr Mladek
2022-06-20 22:51             ` John Ogness
2022-06-24 22:41               ` Steven Rostedt
2022-06-29  8:29                 ` Petr Mladek
2022-06-20  5:23 ` Boot stall regression from "printk for 5.19" merge Sergey Senozhatsky
2022-06-20 10:02   ` Marek Behún
2022-06-20 10:13     ` Sergey Senozhatsky
2022-06-20 10:29       ` Marek Behún
2022-06-20 11:01         ` Andy Shevchenko
2022-06-20 10:38 ` Daniel Palmer
2022-06-21  9:39 ` Thorsten Leemhuis
2022-07-04  9:32   ` Boot stall regression from "printk for 5.19" merge #forregzbot Thorsten Leemhuis
  -- strict thread matches above, loose matches on Subject: below --
2023-02-21 12:38 printk: console output corrupted André Pribil
2023-02-21 16:12 ` 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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.