From: Tzung-Bi Shih <tzungbi@kernel.org>
To: Kees Cook <kees@kernel.org>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Petr Mladek <pmladek@suse.com>
Cc: Tony Luck <tony.luck@intel.com>,
"Guilherme G. Piccoli" <gpiccoli@igalia.com>,
Steven Rostedt <rostedt@goodmis.org>,
John Ogness <john.ogness@linutronix.de>,
Sergey Senozhatsky <senozhatsky@chromium.org>,
tzungbi@kernel.org, tfiga@chromium.org,
linux-kernel@vger.kernel.org
Subject: [PATCH 0/2] printk: Introduce loglevel bypass for pstore console
Date: Mon, 31 Aug 2026 07:03:44 +0000 [thread overview]
Message-ID: <20260831070346.3490745-1-tzungbi@kernel.org> (raw)
Currently, offline consoles (e.g., pstore_console backed by ramoops)
inherit the system's global console_loglevel.
In production environments, physical serial consoles (UARTs) are often
heavily rate-limited to prevent verbose messages from causing severe
execution bottlenecks. Unfortunately, this identically silences the
pstore console. When a kernel panic or lockup occurs, engineers are
left inspecting a crash dump that has been stripped of the verbose logs
that could have identified the root cause.
This series introduces CON_BYPASS_LOGLEVEL, a simple flag that allows
specialized offline consoles to request unsuppressed logs directly.
Patch 1 introduces the CON_BYPASS_LOGLEVEL flag.
Patch 2 adopts the flag in pstore_console.
Tzung-Bi Shih (2):
printk: Introduce CON_BYPASS_LOGLEVEL flag
pstore: Bypass loglevel suppression for pstore console
fs/pstore/platform.c | 4 ++++
fs/pstore/ram.c | 3 ++-
include/linux/console.h | 4 ++++
include/linux/pstore.h | 2 ++
kernel/printk/nbcon.c | 7 +++++--
kernel/printk/printk.c | 6 ++++--
6 files changed, 21 insertions(+), 5 deletions(-)
--
2.55.0.897.gb25b4bd76c-goog
next reply other threads:[~2026-08-31 7:04 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-31 7:03 Tzung-Bi Shih [this message]
2026-08-31 7:03 ` [PATCH 1/2] printk: Introduce CON_BYPASS_LOGLEVEL flag Tzung-Bi Shih
2026-08-31 7:03 ` [PATCH 2/2] pstore: Bypass loglevel suppression for pstore console Tzung-Bi Shih
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=20260831070346.3490745-1-tzungbi@kernel.org \
--to=tzungbi@kernel.org \
--cc=gpiccoli@igalia.com \
--cc=gregkh@linuxfoundation.org \
--cc=john.ogness@linutronix.de \
--cc=kees@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=pmladek@suse.com \
--cc=rostedt@goodmis.org \
--cc=senozhatsky@chromium.org \
--cc=tfiga@chromium.org \
--cc=tony.luck@intel.com \
/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®