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

From: Daniel Palmer
Date: Tue Jun 21 2022 - 07:42:17 EST


Hi Petr,

On Tue, 21 Jun 2022 at 18:09, 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>
> ---
> Changes against v1:

The lockups on boot seem to be gone on my boards with this patch.
So FWIW:

Tested-by: Daniel Palmer<daniel@xxxxxxxxx>