Subject: kern/22457: Recent ACPI change broke PS/2 mouse driver
To: None <gnats-bugs@gnats.netbsd.org>
From: Matthias Scheler <tron@colwyn.zhadum.de>
List: netbsd-bugs
Date: 08/12/2003 20:52:31
>Number:         22457
>Category:       kern
>Synopsis:       Recent ACPI change broke PS/2 mouse driver
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Aug 12 18:53:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     
>Release:        NetBSD 1.6W 2003-08-12 sources
>Organization:
Matthias Scheler                                  http://scheler.de/~matthias/
>Environment:
System: NetBSD lyssa.zhadum.de 1.6W NetBSD 1.6W (LYSSA) #2: Tue Aug 12 20:33:47 CEST 2003 tron@lyssa.zhadum.de:/src/sys/compile/LYSSA i386
Architecture: i386
Machine: i386
>Description:
The last change to "src/sys/arch/i386/include/acpi_func.h" broke ACPI
attachment of the PS/2 mouse driver on my Intel B865PERLK motherboard:

NetBSD 1.6W (LYSSA) #0: Tue Aug 12 10:07:16 CEST 2003
	tron@lyssa.zhadum.de:/src/sys/compile/LYSSA
[...]
acpi0 at mainbus0
acpi0: using Intel ACPI CA subsystem version 20030228
acpi0: X/RSDT: OemId <INTEL ,D865PERL,20030715>, AslId <MSFT,00000097>
acpi0: SCI interrupting at int 9
acpi0: fixed-feature power button present
[...]
pckbc0 at acpi0 (PNP0303): kbd port
pckbc0: io 0x60,0x64 irq 1
[...]
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard
pms0 at pckbc0 (aux slot)
pckbc0: unable to establish interrupt for aux slot

This resulted in a stuck keyboard and lots of errors when using the mouse
under XFree86 later:

pckbc: command timeout
pms_enable: command error 35
pckbc: command timeout
pckbc: command timeout
pms_disable: command error
pckbc: command timeout
pms_enable: command error 35
pckbc: command timeout
pms_disable: command error
pckbc: command timeout
pms_enable: command error 35
pckbc: command timeout
pms_disable: command error
pckbc: command timeout
pms_enable: command error 35
pckbc: command timeout
pms_disable: command error

Downgrading "src/sys/arch/i386/include/acpi_func.h" to revision 1.1 fixed
the problem:

pckbc0 at acpi0 (PNP0303): kbd port
pckbc0: io 0x60,0x64 irq 1
pckbc1 at acpi0 (PNP0F03): aux port
pckbc1: irq 12

>How-To-Repeat:
Try to use XFree86 4.3.0 with a PS/2 keyboard and PS/2 mouse which got
attached via ACPI.

>Fix:
None provided.
>Release-Note:
>Audit-Trail:
>Unformatted: