mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: John Ogness <john.ogness@linutronix.de>
To: Petr Mladek <pmladek@suse.com>
Cc: Sergey Senozhatsky <senozhatsky@chromium.org>,
	Steven Rostedt <rostedt@goodmis.org>,
	Thomas Gleixner <tglx@linutronix.de>,
	linux-kernel@vger.kernel.org,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Subject: [PATCH printk v5 0/8] provide nbcon base
Date: Sat, 16 Sep 2023 21:25:59 +0206	[thread overview]
Message-ID: <20230916192007.608398-1-john.ogness@linutronix.de> (raw)

Hi,

This is v5 of a series to introduce the new non-BKL (nbcon)
consoles. v4 is here [0]. For information about the motivation
of the atomic consoles, please read the cover letter of v1 [1].

This series focuses on providing the base functionality of the
nbcon consoles. In particular, it implements the ownership and
priority semantics for nbcon consoles. This series does _not_
include threaded printing, atomic printing regions, or nbcon
drivers. Those features will be added in separate follow-up
series.

The changes since v4:

- Remove nbcon_seq_init() and use nbcon_seq_force() instead.

- For nbcon_seq_force(), use the oldest record if the specified
  record no longer exists.

- For all try_acquire_*() variants, do not update the nbcon
  state on success since it was not used.

- For nbcon_context_try_acquire_requested(), replace the cmpxhg
  loop with a single cmpxchg.

- For nbcon_context_try_acquire_requested(), remove an explicit
  check for @unsafe_takeover. The nbcon_waiter_matches() check
  is enough to detect unsafe hostile takeovers.

- Rename nbcon_context_acquire_hostile() back to
  nbcon_context_try_acquire_hostile().

- Decide in nbcon_context_try_acquire_hostile() if an unsafe
  hostile acquire is allowed rather than at the end of and
  after nbcon_context_try_acquire_handover().

- For register_console(), call nbcon_free() if it is a braille
  console.

- Change many comments as suggested by pmladek. In the feedback
  thread I mentioned some other comment changes that I made.

- Added various WARN_ON_ONCE() checks as suggested by pmladek.

John Ogness

[0] https://lore.kernel.org/lkml/20230908185008.468566-1-john.ogness@linutronix.de

[1] https://lore.kernel.org/lkml/20230302195618.156940-1-john.ogness@linutronix.de

John Ogness (1):
  printk: Make static printk buffers available to nbcon

Thomas Gleixner (7):
  printk: Add non-BKL (nbcon) console basic infrastructure
  printk: nbcon: Add acquire/release logic
  printk: nbcon: Add buffer management
  printk: nbcon: Add ownership state functions
  printk: nbcon: Add sequence handling
  printk: nbcon: Add emit function and callback function for atomic
    printing
  printk: nbcon: Allow drivers to mark unsafe regions and check state

 include/linux/console.h  |  129 +++++
 kernel/printk/Makefile   |    2 +-
 kernel/printk/internal.h |   31 ++
 kernel/printk/nbcon.c    | 1029 ++++++++++++++++++++++++++++++++++++++
 kernel/printk/printk.c   |   78 ++-
 5 files changed, 1245 insertions(+), 24 deletions(-)
 create mode 100644 kernel/printk/nbcon.c


base-commit: 189f53ec666838729ab29a220ca4c1e1f1359f95
-- 
2.39.2


             reply	other threads:[~2023-09-16 19:21 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-09-16 19:19 John Ogness [this message]
2023-09-16 19:20 ` [PATCH printk v5 1/8] printk: Add non-BKL (nbcon) console basic infrastructure John Ogness
2023-09-16 19:20 ` [PATCH printk v5 2/8] printk: nbcon: Add acquire/release logic John Ogness
2023-09-18 13:56   ` Petr Mladek
2023-09-16 19:20 ` [PATCH printk v5 3/8] printk: Make static printk buffers available to nbcon John Ogness
2023-09-16 19:20 ` [PATCH printk v5 4/8] printk: nbcon: Add buffer management John Ogness
2023-09-16 19:20 ` [PATCH printk v5 5/8] printk: nbcon: Add ownership state functions John Ogness
2023-09-16 19:20 ` [PATCH printk v5 6/8] printk: nbcon: Add sequence handling John Ogness
2023-09-18 14:35   ` Petr Mladek
2023-09-16 19:20 ` [PATCH printk v5 7/8] printk: nbcon: Add emit function and callback function for atomic printing John Ogness
2023-09-16 19:20 ` [PATCH printk v5 8/8] printk: nbcon: Allow drivers to mark unsafe regions and check state John Ogness
2023-09-18 14:54 ` [PATCH printk v5 0/8] provide nbcon base Petr Mladek
2023-09-19 12:08   ` Petr Mladek

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230916192007.608398-1-john.ogness@linutronix.de \
    --to=john.ogness@linutronix.de \
    --cc=gregkh@linuxfoundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=pmladek@suse.com \
    --cc=rostedt@goodmis.org \
    --cc=senozhatsky@chromium.org \
    --cc=tglx@linutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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®