[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20190917220849.17a1226a@oasis.local.home>
Date: Tue, 17 Sep 2019 22:08:49 -0400
From: Steven Rostedt <rostedt@...dmis.org>
To: Sergey Senozhatsky <sergey.senozhatsky.work@...il.com>
Cc: John Ogness <john.ogness@...utronix.de>,
Linus Torvalds <torvalds@...ux-foundation.org>,
Thomas Gleixner <tglx@...utronix.de>,
Peter Zijlstra <peterz@...radead.org>,
Petr Mladek <pmladek@...e.com>,
Andrea Parri <parri.andrea@...il.com>,
Sergey Senozhatsky <sergey.senozhatsky@...il.com>,
Brendan Higgins <brendanhiggins@...gle.com>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
LKML <linux-kernel@...r.kernel.org>,
Theodore Ts'o <tytso@....edu>, Paul Turner <pjt@...gle.com>,
Daniel Vetter <daniel.vetter@...ll.ch>,
Prarit Bhargava <prarit@...hat.com>
Subject: Re: printk meeting at LPC
On Wed, 18 Sep 2019 10:25:46 +0900
Sergey Senozhatsky <sergey.senozhatsky.work@...il.com> wrote:
> On (09/13/19 15:26), John Ogness wrote:
> > 2. A kernel thread will be created for each registered console, each
> > responsible for being the sole printers to their respective
> > consoles. With this, console printing is _fully_ decoupled from printk()
> > callers.
>
> sysrq over serial?
>
> What we currently have is hacky, but, as usual, is a "best effort":
>
> >> serial driver IRQ
>
> serial_handle_irq() [console driver]
> uart_handle_sysrq_char()
> handle_sysrq()
> printk()
> call_console_drivers()
> serial_write() [re-enter console driver]
>
> offloading this to kthread may be unreliable.
But we also talked about an "emergency flush" which will not wait for
the kthreads to finish and just output everything it can find in the
printk buffers (expecting that the consoles have an "emergency"
handler. We can add a sysrq to do an emergency flush.
-- Steve
Powered by blists - more mailing lists