All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/1] console: Blank console - userspace regression
@ 2021-01-07 16:43 Petr Mladek
  2021-01-07 16:44 ` [PATCH 1/1] Revert "init/console: Use ttynull as a fallback when there is no console" Petr Mladek
  0 siblings, 1 reply; 10+ messages in thread
From: Petr Mladek @ 2021-01-07 16:43 UTC (permalink / raw)
  To: Sergey Senozhatsky, Steven Rostedt, John Ogness
  Cc: Linus Torvalds, Guenter Roeck, Shreyas Joshi, shreyasjoshi15,
	Greg Kroah-Hartman, Sergey Senozhatsky, Greg Ungerer,
	Vineet Gupta, Thomas Meyer, David Gow, Brendan Higgins,
	Andy Shevchenko, Shuah Khan, linux-kernel, Petr Mladek

The commit 757055ae8dedf5333af17b3b ("init/console: Use ttynull as a fallback when
there is no console") caused several regressions. The ttynull console has been
selected by default when no console was configured on the command line and
ttynull_init() was the first initcall calling register_console().

There were few possible workarounds but I was not happy with them.
I worked on a proper solution but it became too complicated to
be used at this stage.

The console registration code is a sad story. There are many hidden catches.
The ordering of registered consoles is not well defined. Any change
in the code tends to break some particular system.

The good news is that I become more and more familiar with it.
I hope that I will be able to clean it up step by step in
the future. But it is definitely not a good idea to do any big
refactoring in rc phase.

Hence I propose to revert the problematic commit as the least
risky solution.

Petr Mladek (1):
  Revert "init/console: Use ttynull as a fallback when there is no
    console"

 drivers/tty/Kconfig     | 14 ++++++++++++++
 drivers/tty/Makefile    |  3 ++-
 drivers/tty/ttynull.c   | 18 ------------------
 include/linux/console.h |  3 ---
 init/main.c             | 10 ++--------
 5 files changed, 18 insertions(+), 30 deletions(-)

-- 
2.26.2


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2021-01-08 19:04 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-07 16:43 [PATCH 0/1] console: Blank console - userspace regression Petr Mladek
2021-01-07 16:44 ` [PATCH 1/1] Revert "init/console: Use ttynull as a fallback when there is no console" Petr Mladek
2021-01-07 17:46   ` Andy Shevchenko
2021-01-07 17:48     ` Linus Torvalds
2021-01-07 19:16   ` Greg Kroah-Hartman
2021-01-07 19:38     ` Linus Torvalds
2021-01-08 17:45       ` Petr Mladek
2021-01-08 18:49         ` Vineet Gupta
2021-01-08 19:03         ` Linus Torvalds
2021-01-08  3:41   ` Sergey Senozhatsky

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.