From nobody@FreeBSD.org  Sun Jul  1 11:12:55 2012
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id 97C8A1065670
	for <freebsd-gnats-submit@FreeBSD.org>; Sun,  1 Jul 2012 11:12:55 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id 6972B8FC12
	for <freebsd-gnats-submit@FreeBSD.org>; Sun,  1 Jul 2012 11:12:55 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.4/8.14.4) with ESMTP id q61BCs6U038904
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 1 Jul 2012 11:12:54 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id q61BCseZ038903;
	Sun, 1 Jul 2012 11:12:54 GMT
	(envelope-from nobody)
Message-Id: <201207011112.q61BCseZ038903@red.freebsd.org>
Date: Sun, 1 Jul 2012 11:12:54 GMT
From: Matthias Apitz <guru@unixarea.de>
To: freebsd-gnats-submit@FreeBSD.org
Subject: FreeBSD CURRENT r235646 does not see keyboard in laptop FS Amilo D 7830
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         169571
>Category:       kern
>Synopsis:       FreeBSD CURRENT r235646 does not see keyboard in laptop FS Amilo D 7830
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    jhb
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jul 01 11:20:08 UTC 2012
>Closed-Date:    Mon Mar 04 16:20:50 UTC 2013
>Last-Modified:  Mon Mar 04 16:20:50 UTC 2013
>Originator:     Matthias Apitz
>Release:        10-CURRENT r235646
>Organization:
>Environment:
FreeBSD tinyAurora 10.0-CURRENT FreeBSD 10.0-CURRENT #0 r235646: Sat May 19 15:52:36 CEST 2012     guru@aurora.Sisis.de:/usr/obj/usr/src/sys/GENERIC  i386

>Description:
with r235646 the keyboard is not detected while probing the same hardware with r21444 works fine:

r235646:                                                                        
                                                                                
$ fgrep -i kb /tmp/dmesg-r235646.txt                                            
atkbd: the current kbd controller command byte 0065                             
atkbd: keyboard ID 0x41ab (2)                                                   
sc0: fb0, kbd1, terminal emulator: scteken (teken terminal)                     
atkbdc0 failed to probe at port 0x60 on isa0                                    
                                                                                
$ ls -l /dev/kb*                                                                
lrwxr-xr-x  1 root  wheel         7 Jul  1 08:39 /dev/kbd1 -> kbdmux0           
crw-------  1 root  wheel    0,  17 Jul  1 08:39 /dev/kbdmux0

r214444:                                                                        
                                                                                
$ fgrep -i kb /tmp/dmesg-r214444.txt                                            
kbd1 at kbdmux0                                                                 
atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0                
atkbd0: <AT Keyboard> irq 1 on atkbdc0                                          
kbd0 at atkbd0                                                                  
atkbd0: [GIANT-LOCKED]                                                          
psm0: <PS/2 Mouse> irq 12 on atkbdc0                                            
                                                                                
$ ls -l /dev/kb*                                                                
lrwxr-xr-x  1 root  wheel         6 Jul  1 08:39 /dev/kbd0 -> atkbd0            
lrwxr-xr-x  1 root  wheel         7 Jul  1 08:39 /dev/kbd1 -> kbdmux0           
crw-------  1 root  wheel    0,  17 Jul  1 08:39 /dev/kbdmux0

>How-To-Repeat:
just boot and keyboard is not working
>Fix:


>Release-Note:
>Audit-Trail:

From: Matthias Apitz <guru@unixarea.de>
To: bug-followup@FreeBSD.org
Cc: Matthias Apitz <guru@unixarea.de>
Subject: Re: kern/169571: FreeBSD CURRENT r235646 does not see keyboard in
 laptop FS Amilo D 7830
Date: Thu, 5 Jul 2012 20:32:03 +0200

 adding the following line to sys/dev/atkbdc/atkbdc_isa.c solved the
 problem for me:
 
  static struct isa_pnp_id atkbdc_ids[] = {                                              
         { 0x0303d041, "Keyboard controller (i8042)" },  /* PNP0303 */                   
         { 0x2003d041, "Keyboard controller (i8042)" },  /* PNP0320 */                   
 +       { 0x0b03d041, "Keyboard controller (i8042)" },  /* PNP030B */                   
         { 0 }
 
 -- 
 Matthias Apitz
 e <guru@unixarea.de> - w http://www.unixarea.de/
 UNIX since V7 on PDP-11, UNIX on mainframe since ESER 1055 (IBM /370)
 UNIX on x86 since SVR4.2 UnixWare 2.1.2, FreeBSD since 2.2.5
State-Changed-From-To: open->patched 
State-Changed-By: jhb 
State-Changed-When: Fri Jul 6 12:14:15 UTC 2012 
State-Changed-Why:  
Fix committed to HEAD. 


Responsible-Changed-From-To: freebsd-bugs->jhb 
Responsible-Changed-By: jhb 
Responsible-Changed-When: Fri Jul 6 12:14:15 UTC 2012 
Responsible-Changed-Why:  
Fix committed to HEAD. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=169571 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: kern/169571: commit references a PR
Date: Fri,  6 Jul 2012 12:13:38 +0000 (UTC)

 Author: jhb
 Date: Fri Jul  6 12:13:28 2012
 New Revision: 238164
 URL: http://svn.freebsd.org/changeset/base/238164
 
 Log:
   Add another PS/2 keyboard PNP ID.  This ID is listed as
   "Reserved by Microsoft" in the standard PNP ID table, but has been seen
   in the wild on at least one laptop.
   
   PR:		kern/169571
   Submitted by:	Matthias Apitz  guru unixarea de
   MFC after:	3 days
 
 Modified:
   head/sys/dev/atkbdc/atkbdc_isa.c
 
 Modified: head/sys/dev/atkbdc/atkbdc_isa.c
 ==============================================================================
 --- head/sys/dev/atkbdc/atkbdc_isa.c	Fri Jul  6 06:42:25 2012	(r238163)
 +++ head/sys/dev/atkbdc/atkbdc_isa.c	Fri Jul  6 12:13:28 2012	(r238164)
 @@ -87,6 +87,7 @@ static driver_t atkbdc_isa_driver = {
  
  static struct isa_pnp_id atkbdc_ids[] = {
  	{ 0x0303d041, "Keyboard controller (i8042)" },	/* PNP0303 */
 +	{ 0x0b03d041, "Keyboard controller (i8042)" },	/* PNP030B */
  	{ 0x2003d041, "Keyboard controller (i8042)" },	/* PNP0320 */
  	{ 0 }
  };
 _______________________________________________
 svn-src-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-src-all
 To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
 
State-Changed-From-To: patched->closed 
State-Changed-By: jhb 
State-Changed-When: Mon Mar 4 16:20:33 UTC 2013 
State-Changed-Why:  
Fix was merged to 9 a while ago. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=169571 
>Unformatted:
