mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH tty 0/1] Make 8250 deferred MSR handling LAZY
@ 2026-08-28 15:58 John Ogness
  2026-08-28 15:58 ` [PATCH tty 1/1] serial: 8250: Change console_msr_work to IRQ_WORK_LAZY John Ogness
  0 siblings, 1 reply; 6+ messages in thread
From: John Ogness @ 2026-08-28 15:58 UTC (permalink / raw)
  To: Greg Kroah-Hartman, Jiri Slaby
  Cc: Andy Shevchenko, Petr Mladek, Sebastian Andrzej Siewior,
	Jon Hunter, Thierry Reding, linux-kernel, Ilpo Järvinen,
	Andy Shevchenko, Crescent Hsieh, Hugo Villeneuve, linux-serial

There was a report and follow-up discussion [0] about a problem
using regular irq_work queuing on some platforms when entering
cpuidle. To circumvent this problem, all irq_work for printk will
become IRQ_WORK_LAZY [1].

The 8250 console driver uses irq_work to defer MSR handling during
atomic printing. This means it is vulnerable to the same problem if,
for example, a WARN() is hit while entering cpuidle on one of the
affected platforms.

Avoid the problem for deferred MSR handling by changing
console_msr_work to IRQ_WORK_LAZY.

[0] https://lore.kernel.org/lkml/f3757a75-0ba1-4558-bf57-f19ab7e59a4c@nvidia.com
[1] https://lore.kernel.org/lkml/20260828140218.232439-1-john.ogness@linutronix.de

John Ogness (1):
  serial: 8250: Change console_msr_work to IRQ_WORK_LAZY

 drivers/tty/serial/8250/8250_port.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


base-commit: 45c13f3f9e3bb15fd89ff2864c6f627a3b4b4229
-- 
2.47.3


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

end of thread, other threads:[~2026-08-30  7:42 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-28 15:58 [PATCH tty 0/1] Make 8250 deferred MSR handling LAZY John Ogness
2026-08-28 15:58 ` [PATCH tty 1/1] serial: 8250: Change console_msr_work to IRQ_WORK_LAZY John Ogness
2026-08-28 16:06   ` Sebastian Andrzej Siewior
2026-08-28 16:41     ` John Ogness
2026-08-28 17:06     ` Jon Hunter
2026-08-30  7:42       ` Andy Shevchenko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®