Re: [PATCH 0/2] printk: Introduce loglevel bypass for pstore console

From: Petr Mladek

Date: Wed Sep 09 2026 - 05:35:36 EST


On Mon 2026-08-31 07:03:44, Tzung-Bi Shih wrote:
> 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.

I believe that a better solution for this problem would be adding
the per-console loglevel feature, see
https://lore.kernel.org/all/cover.1764272407.git.chris@xxxxxxxxxxxxxx/

It is currently blocked by a cleanup of the console registration code,
see https://lore.kernel.org/all/20260604101459.393162-1-pmladek@xxxxxxxx/

I am going to send v5 of the console registration code cleanup soon,
hopefully later this week or the following week. It would be nice
when it gets some more review.

Best Regards,
Petr

PS: Thanks for reminder. I wanted to answer this mail the same day
when I got it. But I have to interrupted and it somehow fallen
though cracks.