[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20240905134719.142554-1-john.ogness@linutronix.de>
Date: Thu, 5 Sep 2024 15:53:17 +0206
From: John Ogness <john.ogness@...utronix.de>
To: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
Cc: Jiri Slaby <jirislaby@...nel.org>,
Petr Mladek <pmladek@...e.com>,
Sergey Senozhatsky <senozhatsky@...omium.org>,
Steven Rostedt <rostedt@...dmis.org>,
Thomas Gleixner <tglx@...utronix.de>,
linux-serial@...r.kernel.org,
linux-kernel@...r.kernel.org,
Andy Shevchenko <andriy.shevchenko@...ux.intel.com>,
Tony Lindgren <tony@...mide.com>,
"Paul E. McKenney" <paulmck@...nel.org>,
Uwe Kleine-König <u.kleine-koenig@...gutronix.de>,
Ilpo Järvinen <ilpo.jarvinen@...ux.intel.com>,
Serge Semin <fancer.lancer@...il.com>,
Rengarajan S <rengarajan.s@...rochip.com>,
Wolfram Sang <wsa+renesas@...g-engineering.com>,
Florian Fainelli <f.fainelli@...il.com>,
Jeff Johnson <quic_jjohnson@...cinc.com>,
Lino Sanfilippo <l.sanfilippo@...bus.com>,
Derek Barbosa <debarbos@...hat.com>
Subject: [PATCH tty-next v1 0/2] convert 8250 to nbcon
The recent printk rework introduced a new type of console NBCON
that will perform printing via a dedicated kthread during
normal operation. For times when the kthread is not available
(early boot, panic, reboot/shutdown) the NBCON console will
print directly from the printk() calling context (even if from
NMI).
Futher details about NBCON consoles are available here [0].
This series converts the 8250 driver to an NBCON console,
providing both threaded and atomic printing implementations.
Users can verify the UART console is an NBCON console via the
proc filesystem. For example:
$ cat /proc/consoles
ttyS0 -W- (EC N a) 4:64
The 'N' shows that it is an NBCON console.
There will also be a dedicated printing kthread. For example:
$ ps ax | grep pr/
16 root 0:00 [pr/ttyS0]
Derek Barbosa performed extensive tests [1] using this driver
and encountered no issues. On the contrary, his tests showed
the improved reliability and non-interference features of the
NBCON-based driver.
Since this is the first console driver to be converted to an
NBCON console, it may include variables and functions that
could be abstracted to all UART consoles (such as the
@console_newline_needed field). However, we can abstract such
things later as more consoles are converted to NBCON.
John Ogness
[0] https://lore.kernel.org/lkml/20230302195618.156940-1-john.ogness@linutronix.de
[1] https://lore.kernel.org/lkml/ZsdoD6PomBRsB-ow@debarbos-thinkpadt14sgen2i.remote.csb
John Ogness (2):
serial: 8250: Switch to nbcon console
serial: 8250: Revert "drop lockdep annotation from
serial8250_clear_IER()"
drivers/tty/serial/8250/8250_core.c | 42 +++++++-
drivers/tty/serial/8250/8250_port.c | 151 +++++++++++++++++++++++++++-
include/linux/serial_8250.h | 6 ++
3 files changed, 196 insertions(+), 3 deletions(-)
base-commit: f1ec92a066b2608e7c971dfce28ebe2d2cdb056e
--
2.39.2
Powered by blists - more mailing lists