Subject: Re: kern/28582
To: None <gnats-bugs@netbsd.org>
From: Lennart Augustsson <lennart@augustsson.net>
List: netbsd-bugs
Date: 05/20/2005 08:23:09
Chris Tribo wrote:
> The following reply was made to PR kern/28582; it has been noted by GNATS.
> 
> From: Chris Tribo <ctribo@dtcc.edu>
> To: gnats-bugs@netbsd.org
> Cc: 
> Subject: Re: kern/28582
> Date: Fri, 20 May 2005 02:02:04 -0400 (EDT)
> 
>  The console is not attaching to the USB keyboard unless you remove all
>  pckbd and pckbc entries from the kernel config file.
>  PCKBC_CNATTACH_MAY_FAIL and PCKBD_SELF_TEST don't help.
>  
>  The problem at hand is that we start off talking to the keyboard through
>  USB Legacy emulation in the BIOS which presents a PS/2 keyboard interface
>  to the OS until the USB controller is reset; at which point USB legacy
>  emulation ceases to work.

So it does work properly if you turn off PS/2 emulation in the BIOS.
But this is annoying to do, so we need a better solution.

I think the best bet is to do a mini-enumeration of the PCI devices
when it's time to attach the console (i.e., very early), and look
for USB controllers that have legacy emulation turned on.

	-- Lennart