Subject: port-i386/11031: wskbd0 doesn't attach at 'pckbc0 at pnpbios0' if you have no pms mouse connected
To: None <gnats-bugs@gnats.netbsd.org, abs@mono.org, thorpej@netbsd.org>
From: Bernd Ernesti <bernd@arresum.inka.de>
List: netbsd-bugs
Date: 09/16/2000 08:06:15
>Number:         11031
>Category:       port-i386
>Synopsis:       wskbd0 doesn't attach at 'pckbc0 at pnpbios0' if you have no pms mouse connected
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    port-i386-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Sep 16 08:07:00 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     Bernd Ernesti
>Release:        NetBSD-current 13-Sep-2000
>Organization:
	
>Environment:
	
System: NetBSD arresum.inka.de 1.5E NetBSD 1.5E (ARRESUM) #486: Wed Sep 13 19:45:47 MEST 2000 bernd@arresum.inka.de:/home/work/obj_i386/src.i386/sys/arch/i386/compile/ARRESUM i386


>Description:
	The pckbc pnpbios driver doesn't attach at wskbd0 if you use it
	and don't have a mouse connected at the ps/2 port.

	I think this is also the problem in port-i386/10977.

	I noticed it because I replaced the ps/2 mouse with an usb one:

ums0 at uhub0 port 2 configuration 1 interface 0
ums0: Logitech N48, rev 1.00/4.01, addr 2, iclass 3/1
ums0: 3 buttons and Z dir.
wsmouse0 at ums0 mux 0

>How-To-Repeat:
	Enable 'pckbc* at pnpbios? index ?' in the kernel config.
	Boot with a ps/2 mouse and all works:

pckbc0 at pnpbios0 index 5 (PNP0F13): aux port
pckbc1 at pnpbios0 index 10 (PNP0303): kbd port
pckbd0 at pckbc1 (kbd slot)
pckbc1: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard
pms0 at pckbc1 (aux slot)
pckbc1: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
[..]
vga0 at pci1 dev 0 function 0: Matrox MGA G400 AGP (rev. 0x03)
wsdisplay0 at vga0: console (80x25, sun emulation), using wskbd0

	Remove the mouse and boot again. Now, the keyboard doesn't work anymore:

pckbc0 at pnpbios0 index 10 (PNP0303): kbd port
[..]
vga0 at pci1 dev 0 function 0: Matrox MGA G400 AGP (rev. 0x03)
wsdisplay0 at vga0: console (80x25, sun emulation)

	Note the missing pckbd0 and therefore also the missing wskbd0.
>Fix:
	Unknown.
>Release-Note:
>Audit-Trail:
>Unformatted: