Bug 138870 - [apm] 8.0beta4 PnP problem? lost synaptics trackpad in r40, psm0 not detected [regression]
Summary: [apm] 8.0beta4 PnP problem? lost synaptics trackpad in r40, psm0 not detected...
Status: Closed Overcome By Events
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: Unspecified
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-16 04:40 UTC by Martin Cracauer
Modified: 2015-04-11 04:22 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Cracauer 2009-09-16 04:40:02 UTC
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.
Comment 1 Martin Cracauer 2009-09-16 21:06:35 UTC
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/
Comment 2 Martin Cracauer 2009-09-20 15:56:34 UTC
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/
Comment 3 Rui Paulo freebsd_committer freebsd_triage 2015-04-11 04:22:20 UTC
APM is no longer supported.  Please test a recent FreeBSD and file a new bug.