linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Removal of printk safe buffers delays NMI context printk
@ 2021-11-04 15:54 Nicholas Piggin
  2021-11-04 16:18 ` John Ogness
  0 siblings, 1 reply; 13+ messages in thread
From: Nicholas Piggin @ 2021-11-04 15:54 UTC (permalink / raw)
  To: John Ogness; +Cc: Petr Mladek, linux-kernel

Hi John,

It seems printk from NMI context is now delayed indefinitely and
there is no printk_safe_flush equivalent (or I can't see one) to
allow a NMI buffer to be flushed by a different CPU.

This causes hard lockup watchdog messages to not get shown on the
console. I can call printk from a different CPU and that seems to
flush the stuck CPU's NMI buffer immediately.

What's the best way to expose this? Can we have something like tihs?

void printk_flush(void)
{
	preempt_disable();
	if (console_trylock_spinning())
		console_unlock();
	preempt_enable();
        wake_up_klogd();
}

Thanks,
Nick


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

end of thread, other threads:[~2021-11-06 20:05 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-04 15:54 Removal of printk safe buffers delays NMI context printk Nicholas Piggin
2021-11-04 16:18 ` John Ogness
2021-11-05  1:26   ` Nicholas Piggin
2021-11-05  9:55     ` John Ogness
2021-11-05 11:43       ` Nicholas Piggin
2021-11-05 13:57         ` John Ogness
2021-11-05 16:23           ` Petr Mladek
2021-11-05 16:44             ` John Ogness
2021-11-06  0:26               ` Nicholas Piggin
2021-11-06 20:05                 ` John Ogness
2021-11-05 23:57             ` Nicholas Piggin
2021-11-05 23:48           ` Nicholas Piggin
2021-11-05 16:01     ` Petr Mladek

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