From nobody@FreeBSD.org  Thu Jan 12 04:39:24 2012
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 9A6D7106564A
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 12 Jan 2012 04:39:24 +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 89F358FC08
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 12 Jan 2012 04:39:24 +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 q0C4dOwm025921
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 12 Jan 2012 04:39:24 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id q0C4dOJ1025920;
	Thu, 12 Jan 2012 04:39:24 GMT
	(envelope-from nobody)
Message-Id: <201201120439.q0C4dOJ1025920@red.freebsd.org>
Date: Thu, 12 Jan 2012 04:39:24 GMT
From: Justin <freebsd.users@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Moused fails on 9_0_RELENG
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         164036
>Category:       amd64
>Synopsis:       [keyboard] Moused fails on 9_0_RELENG
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-amd64
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jan 12 04:40:09 UTC 2012
>Closed-Date:    
>Last-Modified:  Sun Jan 22 03:30:10 UTC 2012
>Originator:     Justin
>Release:        9_0_RELENG-amd64
>Organization:
>Environment:
9_0_RELENG_amd64
>Description:
My logitech PS/2 mouse doesn't get detected. 

verbose dmesg - http://paste.pocoo.org/show/532596

/boot/device.hints - http://paste.pocoo.org/show/532599

KERNCONF - http://paste.pocoo.org/show/532667/

I've tried using various parameters such as "debug.acpi.disabled="hostres"
and some in /etc/X11/xorg.conf but it didn't work. 

On running "moused -d -i all -p /dev/psm0" I get "moused: unable to open
/dev/psm0: No such file or directory"

The problem appears to be -
"atkbdc0: <Keyboard controller (i8042)> failed to probe at port 0x60 on isa0"
>How-To-Repeat:
Install 9_RC3 or 9_0_RELENG and enable moused thru sysinstall. 
>Fix:


>Release-Note:
>Audit-Trail:

From: John Baldwin <jhb@freebsd.org>
To: freebsd-amd64@freebsd.org
Cc: Justin <freebsd.users@gmail.com>,
 freebsd-gnats-submit@freebsd.org
Subject: Re: amd64/164036: Moused fails on 9_0_RELENG
Date: Thu, 12 Jan 2012 07:39:26 -0500

 > The problem appears to be -
 > "atkbdc0: <Keyboard controller (i8042)> failed to probe at port 0x60 on 
 isa0"
 
 Yes, that would be the root cause.  Can you verbosely boot a kernel that 
 doesn't have sound, many of the messages from the verbose dmesg above were 
 lost.
 
 -- 
 John Baldwin

From: dave shar <freebsd.users@gmail.com>
To: John Baldwin <jhb@freebsd.org>
Cc: freebsd-amd64@freebsd.org, freebsd-gnats-submit@freebsd.org
Subject: Re: amd64/164036: Moused fails on 9_0_RELENG
Date: Thu, 12 Jan 2012 22:44:22 +0800

 Here is verbose boot without sound devices - http://paste.pocoo.org/show/533788/

From: John Baldwin <jhb@freebsd.org>
To: dave shar <freebsd.users@gmail.com>
Cc: freebsd-amd64@freebsd.org,
 freebsd-gnats-submit@freebsd.org
Subject: Re: amd64/164036: Moused fails on 9_0_RELENG
Date: Thu, 12 Jan 2012 14:45:00 -0500

 Hmm, I dont' see atkbdc in there at all, however, I wonder if the fact that
 ACPI gives 0x60 to your PS/2 mouse device is what breaks this:
 
 psmcpnp0: <PS/2 mouse port> port 0x60,0x64 irq 12 on acpi0
 
 Can you provide your acpidump -d output (note, it will be large)?
 
 -- 
 John Baldwin

From: Justin Smith <freebsd.users@gmail.com>
To: John Baldwin <jhb@freebsd.org>
Cc: freebsd-amd64@freebsd.org, freebsd-gnats-submit@freebsd.org
Subject: Re: amd64/164036: Moused fails on 9_0_RELENG
Date: Fri, 13 Jan 2012 10:19:32 +0800

 acpidump -d - http://paste.pocoo.org/show/534042/
 
From: John Baldwin <jhb@freebsd.org>
To: Justin Smith <freebsd.users@gmail.com>
Cc: freebsd-amd64@freebsd.org,
 freebsd-gnats-submit@freebsd.org
Subject: Re: amd64/164036: Moused fails on 9_0_RELENG
Date: Fri, 13 Jan 2012 08:08:03 -0500

 On Thursday, January 12, 2012 9:19:32 pm Justin Smith wrote:
 > acpidump -d - http://paste.pocoo.org/show/534042/
 
 Hmm, what an odd system.  It has two different sets of PS/2 keyboard/mouse 
 devices (PSKE and PSMS vs PS2K and PS2M).  Still, it's not clear why neither
 of those worked.
 
 Can you get devinfo -vr output?
 
 -- 
 John Baldwin

From: Justin Smith <freebsd.users@gmail.com>
To: John Baldwin <jhb@freebsd.org>
Cc: freebsd-amd64@freebsd.org, freebsd-gnats-submit@freebsd.org
Subject: Re: amd64/164036: Moused fails on 9_0_RELENG
Date: Fri, 13 Jan 2012 22:20:53 +0800

 Yeah, its strange for sure. But I have this issue on two different
 systems with different hardware (ASUS board & BIOSTAR Board).
 
 devinfo -vr : http://paste.pocoo.org/show/534240/
 
From: John Baldwin <jhb@freebsd.org>
To: Justin Smith <freebsd.users@gmail.com>
Cc: freebsd-amd64@freebsd.org,
 freebsd-gnats-submit@freebsd.org
Subject: Re: amd64/164036: Moused fails on 9_0_RELENG
Date: Fri, 13 Jan 2012 10:18:45 -0500

 On Friday, January 13, 2012 9:20:53 am Justin Smith wrote:
 > Yeah, its strange for sure. But I have this issue on two different
 > systems with different hardware (ASUS board & BIOSTAR Board).
 > 
 > devinfo -vr : http://paste.pocoo.org/show/534240/
 
 Hmm.  So the "problem" is your BIOS putting the keyboard resources on the PS/2 
 port.  You can fix this by editing your AML and moving the IO Port resources
 out of _CRS for the PS2M device and moving them to the PS2K device instead.
 
 However, fixing it automatically would be a bigger pain as we would need to
 patch both the atkbdc and psmcpnp drivers to cooperate to move the I/O ports
 over.  We already have a similar hack for handling IRQ 12.  We should perhaps
 expand that further so that we have atkbdc somehow attach to both PS/2 devices
 and merge any resources into a single logical device.
 
 -- 
 John Baldwin

From: Justin Smith <freebsd.users@gmail.com>
To: John Baldwin <jhb@freebsd.org>
Cc: freebsd-amd64@freebsd.org, freebsd-gnats-submit@freebsd.org
Subject: Re: amd64/164036: Moused fails on 9_0_RELENG
Date: Sat, 14 Jan 2012 00:17:35 +0800

 Been there done that (ASUS board AML), doesn't work. I have no
 settings for PS2M to PS2K on BIOSTAR BIOS.

From: John Baldwin <jhb@freebsd.org>
To: Justin Smith <freebsd.users@gmail.com>
Cc: freebsd-amd64@freebsd.org,
 freebsd-gnats-submit@freebsd.org
Subject: Re: amd64/164036: Moused fails on 9_0_RELENG
Date: Fri, 13 Jan 2012 11:54:36 -0500

 > Been there done that (ASUS board AML), doesn't work. I have no
 > settings for PS2M to PS2K on BIOSTAR BIOS.
 
 Err, not a BIOS setting, but actually editing the AML.  Assuming you edited
 the ASUS AML, can you show me a diff of the original and modified AML?
 
 -- 
 John Baldwin

From: Justin Smith <freebsd.users@gmail.com>
To: John Baldwin <jhb@freebsd.org>
Cc: freebsd-amd64@freebsd.org, freebsd-gnats-submit@freebsd.org
Subject: Re: amd64/164036: Moused fails on 9_0_RELENG
Date: Sat, 14 Jan 2012 01:12:35 +0800

 Okay, will do that tomorrow, its 1:12 am, need some sleep. Have a great day.

From: Justin Smith <freebsd.users@gmail.com>
To: John Baldwin <jhb@freebsd.org>
Cc: freebsd-amd64@freebsd.org, freebsd-gnats-submit@freebsd.org
Subject: Re: amd64/164036: Moused fails on 9_0_RELENG
Date: Sat, 14 Jan 2012 17:20:15 +0800

 > Okay, will do that tomorrow, its 1:12 am, need some sleep. Have a great day.
 
 I tried editing BIOS with AMITOOLS but it failed and I wasn't able to
 boot the box, had to reset the BIOS in order to boot again. I have
 limited expertise and I think I wont be able to do this. What has
 changed between 8_2_RELENG and 9_0_RELENG? I used same hardware for
 8_2_RELENG and 8-STABLE, the mouse worked there.

From: John Baldwin <jhb@freebsd.org>
To: Justin Smith <freebsd.users@gmail.com>
Cc: freebsd-amd64@freebsd.org,
 freebsd-gnats-submit@freebsd.org
Subject: Re: amd64/164036: Moused fails on 9_0_RELENG
Date: Tue, 17 Jan 2012 10:17:17 -0500

 On Saturday, January 14, 2012 4:20:15 am Justin Smith wrote:
 > On Sat, Jan 14, 2012 at 1:12 AM, Justin Smith <freebsd.users@gmail.com> 
 wrote:
 > >> Err, not a BIOS setting, but actually editing the AML.  Assuming you 
 edited
 > >> the ASUS AML, can you show me a diff of the original and modified AML?
 > >>
 > >> --
 > >> John Baldwin
 > >
 > > Okay, will do that tomorrow, its 1:12 am, need some sleep. Have a great 
 day.
 > 
 > I tried editing BIOS with AMITOOLS but it failed and I wasn't able to
 > boot the box, had to reset the BIOS in order to boot again. I have
 > limited expertise and I think I wont be able to do this. What has
 > changed between 8_2_RELENG and 9_0_RELENG? I used same hardware for
 > 8_2_RELENG and 8-STABLE, the mouse worked there.
 
 You don't need to edit the BIOS.  You take the output of acpidump -d, edit 
 that in a text editor as I had suggested earlier, then follow the instructions 
 in the acpi(4) man page (OVERRIDING YOUR BIOS BYTECODE section) to compile the 
 edited version and use it instead of the one your BIOS provides.
 
 -- 
 John Baldwin

From: Justin Smith <freebsd.users@gmail.com>
To: John Baldwin <jhb@freebsd.org>
Cc: freebsd-amd64@freebsd.org, freebsd-gnats-submit@freebsd.org
Subject: Re: amd64/164036: Moused fails on 9_0_RELENG
Date: Wed, 18 Jan 2012 11:58:07 +0800

 John, I tried it the way you suggested but I doesn't work - 'iasl
 acpi_dsdt.dsl' ---> http://paste.pocoo.org/show/536531/
 
 On Tue, Jan 17, 2012 at 11:17 PM, John Baldwin <jhb@freebsd.org> wrote:
 > On Saturday, January 14, 2012 4:20:15 am Justin Smith wrote:
 >> On Sat, Jan 14, 2012 at 1:12 AM, Justin Smith <freebsd.users@gmail.com>
 > wrote:
 >> >> Err, not a BIOS setting, but actually editing the AML. =A0Assuming yo=
 u
 > edited
 >> >> the ASUS AML, can you show me a diff of the original and modified AML=
 ?
 >> >>
 >> >> --
 >> >> John Baldwin
 >> >
 >> > Okay, will do that tomorrow, its 1:12 am, need some sleep. Have a grea=
 t
 > day.
 >>
 >> I tried editing BIOS with AMITOOLS but it failed and I wasn't able to
 >> boot the box, had to reset the BIOS in order to boot again. I have
 >> limited expertise and I think I wont be able to do this. What has
 >> changed between 8_2_RELENG and 9_0_RELENG? I used same hardware for
 >> 8_2_RELENG and 8-STABLE, the mouse worked there.
 >
 > You don't need to edit the BIOS. =A0You take the output of acpidump -d, e=
 dit
 > that in a text editor as I had suggested earlier, then follow the instruc=
 tions
 > in the acpi(4) man page (OVERRIDING YOUR BIOS BYTECODE section) to compil=
 e the
 > edited version and use it instead of the one your BIOS provides.
 >
 > --
 > John Baldwin

From: John Baldwin <jhb@freebsd.org>
To: Justin Smith <freebsd.users@gmail.com>
Cc: freebsd-amd64@freebsd.org,
 freebsd-gnats-submit@freebsd.org
Subject: Re: amd64/164036: Moused fails on 9_0_RELENG
Date: Fri, 20 Jan 2012 11:14:40 -0500

 On Tuesday, January 17, 2012 10:58:07 pm Justin Smith wrote:
 > John, I tried it the way you suggested but I doesn't work - 'iasl
 > acpi_dsdt.dsl' ---> http://paste.pocoo.org/show/536531/
 
 Hmmm, your AML is very broken. :(
 
 However, I think I might have a workaround for your case.  Can you please try
 http://www.freebsd.org/~jhb/patches/acpi_ps2_mouse.patch?
 
 -- 
 John Baldwin

From: Justin Smith <freebsd.users@gmail.com>
To: John Baldwin <jhb@freebsd.org>
Cc: freebsd-amd64@freebsd.org, freebsd-gnats-submit@freebsd.org
Subject: Re: amd64/164036: Moused fails on 9_0_RELENG
Date: Sun, 22 Jan 2012 11:22:43 +0800

 On Sat, Jan 21, 2012 at 12:14 AM, John Baldwin <jhb@freebsd.org> wrote:
 > On Tuesday, January 17, 2012 10:58:07 pm Justin Smith wrote:
 >> John, I tried it the way you suggested but I doesn't work - 'iasl
 >> acpi_dsdt.dsl' ---> http://paste.pocoo.org/show/536531/
 >
 > Hmmm, your AML is very broken. :(
 >
 > However, I think I might have a workaround for your case. =A0Can you plea=
 se try
 > http://www.freebsd.org/~jhb/patches/acpi_ps2_mouse.patch?
 >
 > --
 > John Baldwin
 
 Been there done that, it still doesn't work - "Starting default
 mousedmoused: unable to open /dev/psm0: No such file or directory".
>Unformatted:
