Re: [PATCH v2] printk/console: Enable console kthreads only when there is no boot console left

From: Geert Uytterhoeven
Date: Thu Jun 23 2022 - 06:15:59 EST


Hi Petr,

On Tue, Jun 21, 2022 at 11:09 AM Petr Mladek <pmladek@xxxxxxxx> wrote:
> Threaded console printing does not take into consideration that boot
> consoles may be accessing the same hardware as normal consoles and thus
> must not be called in parallel.
>
> Since it is currently not possible to identify which consoles are
> accessing the same hardware, delay threaded console printing activation
> until it is known that there are no boot consoles registered.
>
> Link: https://lore.kernel.org/r/20220619204949.50d9154d@thinkpad
> Link: https://lore.kernel.org/r/2a82eae7-a256-f70c-fd82-4e510750906e@xxxxxxxxxxx
> Link: https://lore.kernel.org/r/20220619204949.50d9154d@thinkpad
> Reported-by: Marek Behún <kabel@xxxxxxxxxx>
> [john.ogness@xxxxxxxxxxxxx: Better description of the problem.]
> Signed-off-by: Petr Mladek <pmladek@xxxxxxxx>
> Tested-by: Marek Behún <kabel@xxxxxxxxxx>

Thanks, this restores the lost printing of "38000000.serial: ttySIF0
at MMIO ..." on SiPEED MAiXBiT, so
Tested-by: Geert Uytterhoeven <geert@xxxxxxxxxxxxxx>

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@xxxxxxxxxxxxxx

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds