mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Petr Vandrovec <vandrove@vc.cvut.cz>
To: willy@debian.org
Cc: jsimmons@transvirtual.com, linux-kernel@vger.kernel.org
Subject: Re: 2.5.26 broken on headless boxes
Date: Fri, 19 Jul 2002 00:16:19 +0200	[thread overview]
Message-ID: <20020718221619.GA16292@vana.vc.cvut.cz> (raw)

On 18 Jul 02 at 22:45, Matthew Wilcox wrote:
> On Thu, Jul 18, 2002 at 11:42:18PM +0200, Petr Vandrovec wrote:
> > CONFIG_VGA_CONSOLE/CONFIG_DUMMY_CONSOLE determines whether your VT can
> > be created at all - maybe _CONSOLE suffix is misleading - without
> > having at least one displaying device virtual terminals cannot be build.
> > I always thought that CONFIG_DUMMY_CONSOLE cannot be unset, but
> > apparently it can...
> > 
> > And BTW, when such configuration worked for you last time? It does not
> > look to me like that it should ever work.
> 
> erm, 2.5.25 worked, and i didn't change the .config between 2.5.25 and
> 2.5.26 (just ran make oldconfig).

Got it. It was introduced in console.c:1.13 change from jsimmons. Before
this change we did not registered tty driver:

con_init says:
  const char* display_desc = NULL;
  if (conswitchp) display_desc = conswitchp->con_startup();
  if (!display_desc) {
     fg_console = 0;
     return;
  }
  ...
  if (tty_register_driver(&console_driver)) ...

so we did not registered VT subsystem and panic did not happened:
instead of that you got 'cannot open initial console' or something
like that...

But after change tty_register_driver is invoked (through vty_init)
unconditionally from tty_io.c, where it depends only on CONFIG_VT.

So quick untested fix is 

--- a/drivers/char/console.c	Tue Jul 16 01:22:31 2002
+++ b/drivers/char/console.c	Fri Jul 19 00:12:01 2002
@@ -2487,6 +2487,9 @@
 
 int __init vty_init(void)
 {
+	if (!conswitchp) {
+		return 0;
+	}
 	memset(&console_driver, 0, sizeof(struct tty_driver));
 	console_driver.magic = TTY_DRIVER_MAGIC;
 	console_driver.name = "vc/%d";

But I'll leave final decision at James, maybe he want to support 
VT without underlying console, and testing almost same condition
on two places looks suspicious to me. Either we need blank timer
and console, or do not. But registering one half in vty_init,
and second half in con_init?
                                            Best regards,
                                                Petr Vandrovec
                                                  

             reply	other threads:[~2002-07-18 22:13 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-07-18 22:16 Petr Vandrovec [this message]
2002-07-18 22:20 ` Arnaldo Carvalho de Melo
2002-07-18 23:01 ` James Simmons
  -- strict thread matches above, loose matches on Subject: below --
2002-07-18 21:42 Petr Vandrovec
2002-07-18 21:45 ` Matthew Wilcox
2002-07-18 21:04 Petr Vandrovec
2002-07-18 21:18 ` Matthew Wilcox
     [not found] <20020717165538.D13352@parcelfarce.linux.theplanet.co.uk.suse.lists.linux.kernel>
2002-07-18 12:45 ` Andi Kleen
2002-07-18 23:07   ` James Simmons
2002-07-19  9:45     ` Andi Kleen
2002-07-17 15:55 Matthew Wilcox
2002-07-18  1:06 ` William Lee Irwin III
2002-07-18  9:48   ` Re[3]: " Tobias Rittweiler
2002-07-18 10:46     ` William Lee Irwin III
2002-07-18 12:29       ` Re[2]: " Tobias Rittweiler
2002-07-18 20:17         ` William Lee Irwin III
2002-07-18 13:29   ` Matthew Wilcox
2002-07-18 20:18     ` William Lee Irwin III
2002-07-18 20:32       ` Matthew Wilcox
2002-07-18 20:37         ` William Lee Irwin III

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20020718221619.GA16292@vana.vc.cvut.cz \
    --to=vandrove@vc.cvut.cz \
    --cc=jsimmons@transvirtual.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=willy@debian.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®