From nobody@FreeBSD.org  Wed Sep 16 03:37:07 2009
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 A6231106566C
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 16 Sep 2009 03:37:07 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 7AF808FC08
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 16 Sep 2009 03:37:07 +0000 (UTC)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n8G3b7b3005548
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 16 Sep 2009 03:37:07 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id n8G3b6Rq005547;
	Wed, 16 Sep 2009 03:37:06 GMT
	(envelope-from nobody)
Message-Id: <200909160337.n8G3b6Rq005547@www.freebsd.org>
Date: Wed, 16 Sep 2009 03:37:06 GMT
From: Martin Cracauer <cracauer@cons.org>
To: freebsd-gnats-submit@FreeBSD.org
Subject: 8.0beta4 PnP problem? lost synaptics trackpad in r40, psm0 not detected
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         138870
>Category:       kern
>Synopsis:       [apm] 8.0beta4 PnP problem? lost synaptics trackpad in r40, psm0 not detected [regression]
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Sep 16 03:40:02 UTC 2009
>Closed-Date:    
>Last-Modified:  Sun Sep 20 19:50:40 UTC 2009
>Originator:     Martin Cracauer
>Release:        8.0beta4
>Organization:
>Environment:
FreeBSD grisu.cons.org 8.0-BETA4 FreeBSD 8.0-BETA4 #6: Tue Sep 15 23:05:44 EDT 2009     cracauer@grisu.cons.org:/mnt/part2/usr/src/sys/i386/compile/GRISU  i386

>Description:
I just upgraded my Thinkpad R40 to 8-beta4.

I lost my trackpad, psm0 is not longer detected (no dmesg messages about
it, no device created).  At that time in the boot it prints a couple
plug'n'play related messages (see below).

I just booted into my 7-stable kernel one more time and it's still there,
it's really FreeBSD-8.

The kernel config used for the two versions are identical when it
comes to atkbd and psm.  I have the /boot/loader.conf entry, irq 12 is
not occupied by anything else.


Here is 7-stable's opinion on the matter:
-----------------------------------------
atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
atkbd0: [ITHREAD]
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: [GIANT-LOCKED]
psm0: [ITHREAD]
psm0: model Synaptics Touchpad, device ID 0
ppc0: <Parallel port> at port 0x3bc-0x3c3 irq 7 on isa0
ppc0: Generic chipset (NIBBLE-only) in COMPATIBLE mode


Here is the new output with 8beta4:
-----------------------------------
atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 irq 1 pnpid PNP0303 on isa0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
atkbd0: [ITHREAD]
unknown: <PNP0c02> can't assign resources (memory)
unknown: <PNP0680> can't assign resources (port)
unknown: <PNP0680> can't assign resources (port)
uart0: <16550 or compatible> at port 0x3f8-0x3ff irq 4 pnpid PNP0501 on isa0
uart0: [FILTER]
ppc0: <Standard parallel printer port> at port 0x3bc-0x3c3 irq 7 pnpid PNP0400 on isa0
ppc0: Generic chipset (NIBBLE-only) in COMPATIBLE mode

>How-To-Repeat:
Probably need a thinkpad r40 to reproduce, but I can run whatever test
code you like.
>Fix:


>Release-Note:
>Audit-Trail:

From: Martin Cracauer <cracauer@cons.org>
To: FreeBSD-gnats-submit@FreeBSD.org, freebsd-bugs@FreeBSD.org
Cc:  
Subject: Re: misc/138870: 8.0beta4 PnP problem? lost synaptics trackpad in r40, psm0 not detected
Date: Wed, 16 Sep 2009 16:06:35 -0400

 Looks like it is not the psm driver itself.
 
 I have plugged psm.c from releng-7 into the releng-8 tree, which
 required only minor merging.
 
 Using the releng-7 driver in the releng-8 kernel I get the same
 result:
 unknown: <PNP0c02> can't assign resources (memory)
 unknown: <PNP0680> can't assign resources (port)
 unknown: <PNP0680> can't assign resources (port)
 
 I guess that means something inside PnP is b0rked in releng8.
 
 Gone that far, I looked for more occurrences of valid detected
 hardware in releng7 that now turned into "can't assign resources".
 
 The only other one seems to be:
 
 pmtimer0 on isa0
 orm0: <ISA Option ROMs> at iomem 0xc0000-0xcffff,0xd0000-0xd0fff,0xd1000-0xd1fff,0xdc000-0xdffff,0xe0000-0xeffff pnpid ORM0000 on isa0
 atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
 
 which turns into:
 
 pmtimer0 on isa0
 unknown: <PNP0c02> can't assign resources (memory)
 unknown: <PNP0c01> can't assign resources (memory)
 atrtc0: <AT realtime clock> at port 0x70-0x71 irq 8 pnpid PNP0b00 on
 isa0 atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 irq 1 pnpid PNP0303 on isa0
 
 How do I set bootverbose/boothowto, again?
 
 Martin
 -- 
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 Martin Cracauer <cracauer@cons.org>   http://www.cons.org/cracauer/
 FreeBSD - where you want to go, today.      http://www.freebsd.org/

From: Martin Cracauer <cracauer@cons.org>
To: FreeBSD-gnats-submit@FreeBSD.org, freebsd-bugs@FreeBSD.org
Cc:  
Subject: Re: misc/138870: 8.0beta4 PnP problem? lost synaptics trackpad in r40, psm0 not detected
Date: Sun, 20 Sep 2009 10:56:34 -0400

 Further investigation shows that psm0 reappears and works when I
 switch from apm to acpi.
 
 Unfortunately this Thinkpad R40 will only do suspend-to-disk when I
 use FreeBSD with APM, which worked in releng-7.
 
 Using APM on releng-8 I lose 1) psm and 2) after suspend-to-disk comes
 up from suspend the wireless card (iwi) only gives bunches of
 timeouts.
 
 This whole bug should possibly be reclassified as an APM bug, but APM
 in releng8 seems to have more breakages than just psm.
 
 Martin
 -- 
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 Martin Cracauer <cracauer@cons.org>   http://www.cons.org/cracauer/
 FreeBSD - where you want to go, today.      http://www.freebsd.org/
>Unformatted:
