Bug 357400

Summary: lenovo X60: parport in docking station not initializing
Product: [openSUSE] openSUSE 11.1 Reporter: Juergen Weigert <jw>
Component: Mobile DevicesAssignee: Holger Macht <hmacht>
Status: RESOLVED WONTFIX QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P4 - Low CC: behlert, jsmeix, trenn
Version: Alpha 0   
Target Milestone: Alpha 0   
Hardware: x86   
OS: All   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Bug Depends on: 363196, 363199    
Bug Blocks: 357354    

Description Juergen Weigert 2008-01-30 20:23:53 UTC
The parallel port of the docking station is dead. 
I tried modprobe parport without success.
It only comes alive, if I reboot the laptop while in the docking station.
Comment 1 Holger Macht 2008-01-31 12:27:03 UTC
This is something we never tried, unfortunately. Do you have a printer attached to it?
Comment 2 Thomas Renninger 2008-01-31 12:41:20 UTC
Shouldn't it be the parport_pc driver?
The parport_pc driver itself is also broken..., but you might have more luck with this one.
As a rule of thumb, you should always try without dma (dma=none param iirc).
Also yast afaik is playing with tricks like un- and reloading parport_pc.
Can you also do:
for x in `find /sys |grep pnp|grep resources`; do echo $x; cat $x;done
(or similar) and search for the PNP device exporting parport resources (should be 0x3F8 or 0x2F8 for IO ports?).
Comment 3 Juergen Weigert 2008-02-01 15:35:43 UTC
yes, the module is parport_pc.

suspend to ram in the docking station,
resume outside docking station,
--> /dev/parport0 still exists.
insert into docking station
->

open("/dev/parport0", O_RDWR)           = 3
ioctl(3, PPCLAIM, 0xb7e77140)           = 0
ioctl(0, PPRDATA, 0xbfeab4fb)           = -1 EINVAL (Invalid argument)
ioctl(0, PPRCONTROL, 0xbfeab4fb)        = -1 EINVAL (Invalid argument)
ioctl(0, PPRSTATUS, 0xbfeab4fb)         = -1 EINVAL (Invalid argument)
ioctl(3, PPRDATA, 0xbfeab507)           = 0
ioctl(3, PPRCONTROL, 0xbfeab507)        = 0

but parport hardware does not communicate.


(-> serial port on the docking station is also dead then.)
after a reboot in the docking station, parport is functional.
while still in the docking station: suspend to ram, resume
parport0 is still functional. Good.


/sys/devices/pnp0/00:0c/resources
state = active
io 0x2f8-0x2ff
irq 3
dma 1
/sys/devices/pnp0/00:0b/resources
state = active
io 0x3bc-0x3be
irq 7
/sys/devices/pnp0/00:0a/resources
state = active
io 0x3f8-0x3ff
irq 4
...


after a simple undock, redock, it is dead.
(I pressed the undock button and waited for the red LED to go off.)
parport_pc remains loaded, /dev/parport0 remains present.
# rmmod parport_pc
# modprobe parport_pc dma=none
brings the port back to life.

undock, reboot.
/dev/parport0 is not there, parport_pc is present.
dock.
/dev/parport0 is not there, parport_pc is present.
# rmmod parport_pc
# modprobe parport_pc dma=none
# dmesg
...
ACPI: Fatal opcode executed
pnp: Device 00:0b activated.
pnp: Device 00:0b disabled.
parport_pc: probe of 00:0b failed with error -22

/dev/parport0 is still not there.
/sys/devices/pnp0/00:0b/resources
state = disabled
io disabled
irq 15


Comment 4 Holger Macht 2008-02-06 19:09:48 UTC
This just sounds that the initialization code of parport_pc is only run on boot, and if dock ist present. So this maybe is just a lack of hotplugging functionality in the driver.

However, the ACPI errors look bad. Thomas, any idea what's going on here?
Comment 5 Thomas Renninger 2008-02-06 19:33:17 UTC
You mean this:
ACPI: Fatal opcode executed

This looks indeed bad.
Juergen, can you confirm that his happens after un- and reloading parport_pc, pls.
Also attach acpidump output (as text mime).
Comment 6 Thomas Renninger 2008-02-06 19:45:26 UTC
Maybe we should also continue on a more recent kernel.
This probably won't get fixed for 10.3 (unless it is a really easy one).
It should be enough to install a kotd on 10.3.
Even better would be a 11.0 installation if you still have a small partition left...
Hmm, not sure we can also continue on 10.3 for now..., if you wanted to give 11.0 a test anyway we should go on there :)

When you know when the "ACPI: Fatal opcode executed" happens (I expect when docking in?) you might also want to increase ACPI debug level:
before unload disturbing, polling modules:
thermal and ac
echo 0x1F >/sys/module/acpi/parameters/debug_level
Then trigger the message and set the debug level back to default (to not get unrelated stuff in there):
echo 0x3 >/sys/module/acpi/parameters/debug_level
You should now have much more messages in /var/log/messages, pls attach.
Comment 7 Holger Macht 2008-02-06 20:12:13 UTC
Yes, please test on current FACTORY. We have enough issues to get docking support working at all.
Comment 8 Holger Macht 2008-02-06 20:13:33 UTC
I'm still going to try the parport myself, so you don't need to do it if you would have to install a 11.0 first.
Comment 11 Juergen Weigert 2008-02-20 10:44:35 UTC
I cannot reproduce on 11.0a2
/dev/parport0 never appears. Reboot in docking station, docker dock, 
rmmod/ modprobe  -- nothing helps

There are no ACPI errors in dmesg, though
Comment 12 Thomas Renninger 2008-02-20 12:54:01 UTC
Oh mit 11.0? Da koennte evtl. pnpacpi=off helfen?
Comment 13 Christoph Thiel 2008-04-25 14:41:45 UTC
*ping*
Comment 14 Holger Macht 2008-06-02 15:49:56 UTC
*** Bug 363199 has been marked as a duplicate of this bug. ***
Comment 15 Holger Macht 2008-06-02 15:51:54 UTC
Too late for 11.0, sorry.
Comment 16 Juergen Weigert 2008-06-07 14:25:48 UTC
I no longer use the docking station during work.
I switched back to 10.3 after testing 11.0.
Cannot the needed info. Sorry.
Comment 17 Stefan Behlert 2008-09-19 15:09:56 UTC
see comment 16, resetting needinfo.
Comment 18 Holger Macht 2008-10-08 09:01:36 UTC
Test result with 11.0 was not provided. Resetting NEEDINFO ;-) Best would be to try 11.1 now.
Comment 19 Juergen Weigert 2008-10-08 10:42:35 UTC
I have e1000e on that machine. Will 11.1 shred my eth0?
Comment 20 Holger Macht 2008-10-08 10:57:54 UTC
Not sure what's the exact status here. Maybe you should wait a little more. Or make sure to store 'ethtool -e eth0' before installing to make sure to be able to recover it.
Comment 21 Andreas Jaeger 2008-11-14 10:36:36 UTC
11.1 will not anymore shred your eth0, so go ahead and test it...
Comment 22 Juergen Weigert 2008-11-14 14:14:17 UTC
booted 11.1 beta5 without docking station.
no parport as expected.
inserted into dockingstation. Still no parport

lsmod | grep par
has nothing.

modprobe parport_pc
lsmod | grep par
parport_pc           51516  0
parport              50388  2, ppdev,parport_pc


undock, dock, still no device.
Comment 23 Juergen Weigert 2008-12-25 10:56:16 UTC
booted SLED11-RC1 without docking station
No parport as expected.
Inserted into dockingstation. Still no parport, but

$ lsmod | grep par
parport_pc             35048  0 
parport                33832  3 lp,parport_pc,ppdev
$ 

undock, dock, still no device.

Comment 24 Holger Macht 2010-01-05 14:40:34 UTC
Any progress with 11.2? Anyway, I'm sorry, but there are no resources for this left.