Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 Jul 2007 10:18:35 -0700
From:      "Maksim Yevmenkin" <maksim.yevmenkin@gmail.com>
To:        "Dmitry Morozovsky" <marck@rinet.ru>
Cc:        current@freebsd.org
Subject:   Re: possible showstopper: kbdmux hangs -current
Message-ID:  <bb4a86c70707271018p45f3ccbap142bd6506c4dfc46@mail.gmail.com>
In-Reply-To: <20070727141421.H42349@woozle.rinet.ru>
References:  <20070727141421.H42349@woozle.rinet.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
On 7/27/07, Dmitry Morozovsky <marck@rinet.ru> wrote:
> Hi there,
>
> on some of my mobos -current hangs early (when starning init) if kbdmux is
> included in kernel (both on i386 and amd64); this seems to be some race, as
> hangs are not 100% reproducible. What info should I provide to debug?

the usual suspects are

1) while (KBDMUX_CHECK_CHAR(kbd)) { ... } loop in kbdmux_kbd_event().
could you please try to put some debug printf's into it and make sure
it does not stuck there.

2) callout. kbdmux callout initialized as non mp-safe to make sure
giant is held.

3) task queue. kbdmux(4) uses taskqueue_swi_giant.

you might want to try uncomment section at line 81 in kbdmux.c. this
should add private lock for kbdmux(4). not sure it will work though -
many things has changed since i tried it.

> I'm using only PS2 keyboards, and have no other format keyboards handy;
> however, I can obtain USB keyb if needed.

are you using ps/2 mouse? if so, try to disconnect it and see if this helps.

as you said, you could try to use usb keyboard instead of ps/2.

thanks,
max



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bb4a86c70707271018p45f3ccbap142bd6506c4dfc46>