Bug 43137 - Vaio Z21 docking station (PMD) - Hotpluging does not work
Summary: Vaio Z21 docking station (PMD) - Hotpluging does not work
Status: CLOSED OBSOLETE
Alias: None
Product: ACPI
Classification: Unclassified
Component: Config-Hotplug (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: Aaron Lu
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-04-20 11:25 UTC by Silvio
Modified: 2013-04-12 02:52 UTC (History)
2 users (show)

See Also:
Kernel Version: 3.4.0-rc2
Subsystem:
Regression: No
Bisected commit-id:


Attachments
Dmesg when booting with docking station (75.70 KB, text/plain)
2012-04-20 11:25 UTC, Silvio
Details
Dmesg when booting with docking station, then undock (1.65 KB, text/plain)
2012-04-20 11:26 UTC, Silvio
Details
Dmesg when booting with docking station, then undock, then redock (2.13 KB, text/plain)
2012-04-20 11:27 UTC, Silvio
Details
Dmesg when booting without docking station (58.62 KB, text/plain)
2012-04-20 11:27 UTC, Silvio
Details
Dmesg when booting without docking station, then dock (364 bytes, text/plain)
2012-04-20 11:28 UTC, Silvio
Details
lspci when booting with docking station (3.11 KB, text/plain)
2012-04-20 11:28 UTC, Silvio
Details
lspci when booting with docking station, then undock (3.13 KB, text/plain)
2012-04-20 11:29 UTC, Silvio
Details
lspci when booting with docking station, then undock, then redock (3.11 KB, text/plain)
2012-04-20 11:29 UTC, Silvio
Details
lspci when booting without docking station (1.87 KB, text/plain)
2012-04-20 11:30 UTC, Silvio
Details
lspci when booting without docking station, then dock (1.87 KB, text/plain)
2012-04-20 11:31 UTC, Silvio
Details
lspci -t when booting with docking station (1.18 KB, text/plain)
2012-04-20 11:32 UTC, Silvio
Details
lspci -t when booting with docking station, then undock (1.09 KB, text/plain)
2012-04-20 11:32 UTC, Silvio
Details
lspci -t when booting with docking station, then undock, then redock (1.18 KB, text/plain)
2012-04-20 11:32 UTC, Silvio
Details
lspci -t when booting without docking station (314 bytes, text/plain)
2012-04-20 11:33 UTC, Silvio
Details
lspci -t when booting without docking station, then dock (314 bytes, text/plain)
2012-04-20 11:33 UTC, Silvio
Details
Dock Debug Message (1.40 KB, patch)
2013-01-30 06:59 UTC, Aaron Lu
Details | Diff
still some error messages in dmesg (147.32 KB, application/octet-stream)
2013-01-31 20:30 UTC, Silvio
Details

Description Silvio 2012-04-20 11:25:40 UTC
Created attachment 73006 [details]
Dmesg when booting with docking station

Vaio Z21 has a docking station, connected to the notebook using Thunderbold/Light Peak, which is, as far as i understand, it just PCIe. It contains a USB hub, a graphic card (Radeon), and I can see a network and a sound port. When booting with the docking station attacked, everything except for the graphic card works (see all the logs *_dock). When I then unplug it (see all the logs *_dock_undock) and replug it (see all the logs *_dock_undock_redock), nothing from the docking station works anymore, except for the power. When booting without it plugged in (see all logs *_nodock) and then plug it in (see all logs *_nodock_dock) nothing works except power.

This bug is not about the graphic card not working. I thing I'll make a different bug for that, since I don't think it is connected.

I will append the output of dmesg, lspci, and lspci -t for all situations.
Notice that the pci-devices are not detected in the situations where things don't work.
Comment 1 Silvio 2012-04-20 11:26:26 UTC
Created attachment 73007 [details]
Dmesg when booting with docking station, then undock
Comment 2 Silvio 2012-04-20 11:27:08 UTC
Created attachment 73008 [details]
Dmesg when booting with docking station, then undock, then redock
Comment 3 Silvio 2012-04-20 11:27:42 UTC
Created attachment 73009 [details]
Dmesg when booting without docking station
Comment 4 Silvio 2012-04-20 11:28:07 UTC
Created attachment 73010 [details]
Dmesg when booting without docking station, then dock
Comment 5 Silvio 2012-04-20 11:28:44 UTC
Created attachment 73011 [details]
lspci when booting with docking station
Comment 6 Silvio 2012-04-20 11:29:19 UTC
Created attachment 73012 [details]
lspci when booting with docking station, then undock
Comment 7 Silvio 2012-04-20 11:29:46 UTC
Created attachment 73013 [details]
lspci when booting with docking station, then undock, then redock
Comment 8 Silvio 2012-04-20 11:30:38 UTC
Created attachment 73014 [details]
lspci when booting without docking station
Comment 9 Silvio 2012-04-20 11:31:07 UTC
Created attachment 73015 [details]
lspci when booting without docking station, then dock
Comment 10 Silvio 2012-04-20 11:32:01 UTC
Created attachment 73016 [details]
lspci -t when booting with docking station
Comment 11 Silvio 2012-04-20 11:32:26 UTC
Created attachment 73017 [details]
lspci -t when booting with docking station, then undock
Comment 12 Silvio 2012-04-20 11:32:51 UTC
Created attachment 73018 [details]
lspci -t when booting with docking station, then undock, then redock
Comment 13 Silvio 2012-04-20 11:33:21 UTC
Created attachment 73019 [details]
lspci -t when booting without docking station
Comment 14 Silvio 2012-04-20 11:33:43 UTC
Created attachment 73020 [details]
lspci -t when booting without docking station, then dock
Comment 15 Aaron Lu 2013-01-30 06:59:55 UTC
Created attachment 92191 [details]
Dock Debug Message

Apply on top of Linus' git tree.
Please test it by booting with the docking station, then undock and redock, thanks.
Comment 16 Aaron Lu 2013-01-30 07:05:25 UTC
Hello Silvio,

Sorry for the late reply and thanks for the detailed information provided.

From the dmesg, ACPI got the notification on dock and undock, but the docking station didn't work as expected, i.e. when undock, devices don't go away; and when dock, devices don't appear. So it looks to me the _DCK control method of the docking station may have a problem.

Please attach the full dmesg after redock with the above debug patch applied, thanks.
Comment 17 Silvio 2013-01-31 20:29:49 UTC
Hi,

Yes everything works fine now (external graphic card and redocking of things). Once my system crashed when I unplugged it while X was running on the external graphic card (but i don't have time to reproduce that. Also there are some error messages in dmesg when i unplug it see attached dmesg. Thanks for your work.

Silvio
Comment 18 Silvio 2013-01-31 20:30:43 UTC
Created attachment 92391 [details]
still some error messages in dmesg
Comment 19 Aaron Lu 2013-02-01 02:07:35 UTC
(In reply to comment #17)
> Hi,
> 
> Yes everything works fine now (external graphic card and redocking of
> things).
> Once my system crashed when I unplugged it while X was running on the
> external
> graphic card (but i don't have time to reproduce that. Also there are some
> error messages in dmesg when i unplug it see attached dmesg. Thanks for your
> work.

This suggests that the new kernel can handle your docking station :-)

BTW, did you apply the debug patch? I don't see any message from that patch...

And your acpi table can also be helpful, so please attach it.
# acpidump > acpi_table.out

Thanks,
Aaron
Comment 20 Aaron Lu 2013-02-20 06:26:41 UTC
Problem gone on latest Linus' tree.
Comment 21 Aaron Lu 2013-04-12 02:52:26 UTC
Hi Silvio,

Can you please attach the output of acpidump? I want to take a look, thanks.

# acpidump > acpidump.out

Note You need to log in before you can comment on or make changes to this bug.