From nobody@FreeBSD.org  Mon Dec 13 07:01:24 2004
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 58DFE16A4CE
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 13 Dec 2004 07:01:24 +0000 (GMT)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 40C6B43D39
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 13 Dec 2004 07:01:24 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id iBD71O6o092455
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 13 Dec 2004 07:01:24 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id iBD71Oki092454;
	Mon, 13 Dec 2004 07:01:24 GMT
	(envelope-from nobody)
Message-Id: <200412130701.iBD71Oki092454@www.freebsd.org>
Date: Mon, 13 Dec 2004 07:01:24 GMT
From: Hiroaki Miyazaki <love_and_pop@mac.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: ALPS GlidePoint not recognized FreeBSD 5.3 with ACPI
X-Send-Pr-Version: www-2.3

>Number:         75008
>Category:       kern
>Synopsis:       [psm] [patch] ALPS GlidePoint not recognized FreeBSD 5.3 with ACPI
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    takawata
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Dec 13 07:10:30 GMT 2004
>Closed-Date:    Wed Mar 15 07:06:37 GMT 2006
>Last-Modified:  Wed Mar 15 07:06:37 GMT 2006
>Originator:     Hiroaki Miyazaki
>Release:        5.3-RELEASE
>Organization:
>Environment:
FreeBSD layla.jcom.home.ne.jp 5.3-RELEASE-p2 FreeBSD 5.3-RELEASE-p2 #3: Mon Dec13 15:43:31 JST 2004     root@layla.jcom.home.ne.jp:/usr/obj/usr/src/sys/LAVIEi386      
>Description:
When boot freebsd with ACPI, ALPS GlidePoint is not recognized.
boot -v then dmesg outputs following messages.

psm0: unable to allocate IRQ


acpidump shows following line.

Device (MSE0)
{
    Name (_HID, EisaId ("AUI0200"))
    Name (_CID, 0x0E0FD041)
    Name (_UID, 0x00)
    Name (_CRS, ResourceTemplate ()
    {
        IRQ (Edge, ActiveHigh, Exclusive) {12}
    })
    
    foobar foobar...
}

>How-To-Repeat:
Boot freebsd with acpi on some laptops (i.e: NEC VersaPad, NEC LaVie) which has Alps glidepoint.
>Fix:
This patch fixes the problem for me.

--- sys/isa/psm.c.orig	Fri Oct  1 15:26:51 2004
+++ sys/isa/psm.c	Mon Dec 13 15:29:49 2004
@@ -3338,6 +3338,7 @@
 	{ 0x030fd041, "PS/2 mouse port" },		/* PNP0F03 */
 	{ 0x130fd041, "PS/2 mouse port" },		/* PNP0F13 */
 	{ 0x1303d041, "PS/2 port" },			/* PNP0313, XXX */
+	{ 0x0e0fd041, "PS/2 mouse port"},		/* AUI0200 */
 	{ 0x02002e4f, "Dell PS/2 mouse port" },		/* Lat. X200, Dell */
 	{ 0x80374d24, "IBM PS/2 mouse port" },		/* IBM3780, ThinkPad */
 	{ 0x81374d24, "IBM PS/2 mouse port" },		/* IBM3781, ThinkPad */

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->takawata  
Responsible-Changed-By: takawata 
Responsible-Changed-When: Tue Mar 14 09:30:47 UTC 2006 
Responsible-Changed-Why:  
I'll take up this. 


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

From: Takanori Watanabe <takawata@init-main.com>
To: bug-followup@FreeBSD.org, love_and_pop@mac.com,
        jsakamot@riko.shimane-u.ac.jp
Cc:  
Subject: Re: kern/75008: [psm] [patch] ALPS GlidePoint not recognized FreeBSD 5.3 with ACPI
Date: Tue, 14 Mar 2006 18:42:09 +0900

 I noticed freebsd-users-jp discussion and there is already submitted
 same problem in PR database (by googling PnP ID :-P).
 
 I wrote a patch for this:
 Please check whether
 1. It detects mouse device properly. 
 and
 2. It recognize "ALPS Gride Point".
 
 Regards.
 
 Index: psm.c
 ===================================================================
 RCS file: /home/ncvs/src/sys/dev/atkbdc/psm.c,v
 retrieving revision 1.88
 diff -u -r1.88 psm.c
 --- psm.c	5 Jan 2006 19:24:01 -0000	1.88
 +++ psm.c	14 Mar 2006 09:01:40 -0000
 @@ -3565,9 +3565,12 @@
  
  static struct isa_pnp_id psmcpnp_ids[] = {
  	{ 0x030fd041, "PS/2 mouse port" },		/* PNP0F03 */
 +	{ 0x0e0fd041, "PS/2 mouse port" },		/* PNP0F0E */
 +	{ 0x120fd041, "PS/2 mouse port" },		/* PNP0F12 */
  	{ 0x130fd041, "PS/2 mouse port" },		/* PNP0F13 */
  	{ 0x1303d041, "PS/2 port" },			/* PNP0313, XXX */
  	{ 0x02002e4f, "Dell PS/2 mouse port" },		/* Lat. X200, Dell */
 +	{ 0x0002a906, "ALPS Gride Point" },		/* ALPS Gride Point */
  	{ 0x80374d24, "IBM PS/2 mouse port" },		/* IBM3780, ThinkPad */
  	{ 0x81374d24, "IBM PS/2 mouse port" },		/* IBM3781, ThinkPad */
  	{ 0x0190d94d, "SONY VAIO PS/2 mouse port"},     /* SNY9001, Vaio */
 
State-Changed-From-To: open->closed  
State-Changed-By: takawata 
State-Changed-When: Wed Mar 15 07:05:35 UTC 2006 
State-Changed-Why:  
Committed a patch for it. 


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