Re: [RFC PATCH v2 0/3] Prefer working VT console over SPCR and device-tree chosen stdout-path

From: Benjamin Herrenschmidt
Date: Wed May 13 2020 - 18:24:38 EST


On Wed, 2020-05-13 at 16:37 +0200, Petr Mladek wrote:
> The only common rules are:
>
> + The last console on the command line should always be the
> preferred one when defined.
>
> + Consoles defined by the device (SPCR, device tree) are used
> when there is no commandline.

With the exception that on x86, SPCR is only used for early_con, we
don't do add_preferred_console() at all for it.

I sort-of understand why... the track record on BIOS quality out there
being what it is, I could see this causing a number of systems start
sending the console to a non-existent or non-wired serial port instead
of the tty/gpu because the BIOS leave SPCR set/enabled for no reason.

It may or may not be the case in practice but I don't see how we can
figure that out without either a large campain of data collection from
tons of systems (which will miss plenty) or just taking the chance &
breaking people and see who screams :-)

Cheers,
Ben.