Bug 56841

Summary: Sony VAIO VPCZ23A4R: Oops on second docking attempt
Product: ACPI Reporter: Alexander E. Patrakov (patrakov)
Component: Config-HotplugAssignee: Aaron Lu (aaron.lu)
Status: CLOSED OBSOLETE    
Severity: normal CC: aaron.lu, ying.huang
Priority: P1    
Hardware: All   
OS: Linux   
Kernel Version: 3.9-rc5 Subsystem:
Regression: No Bisected commit-id:
Attachments: Full dmesg from 3.9-rc5 with patch from bug 56501
Full dmesg from 3.9-rc5 with patch from bug 56501

Description Alexander E. Patrakov 2013-04-19 14:47:01 UTC
Created attachment 99331 [details]
Full dmesg from 3.9-rc5 with patch from bug 56501

On my Sony laptop, if I dock, undock and dock again, acpiphp_glue fails to register interrupt notify handler and then the kernel dereferences the NULL pointer in pci_bus_read_config_dword. The full dmesg (captured in part locally, and in part over netconsole) is attached. The lines starting with /sys/bus/pci/devices were written to /dev/kmsg for debugging another bug, you can ignore them now.

Note: there are also failures to assign resources to PCI devices in the dock. They might share the root cause, but are tracked in a different bug #56531.

Bugs that were relevant to the same laptop and may contain useful attachments such as dmesgs and acpidump output:

 * bug #55611
 * bug #56501
 * bug #56531
Comment 1 Alexander E. Patrakov 2013-04-19 14:49:26 UTC
Created attachment 99341 [details]
Full dmesg from 3.9-rc5 with patch from bug 56501

Oops, Bugzilla could not copy the attachment from another bug. Reattaching.
Comment 2 Alexander E. Patrakov 2013-05-02 05:47:54 UTC
Sorry, due to a physical mishap, the laptop is now out of order. I will not be able to test any patches, thus closing the bug.
Comment 3 Aaron Lu 2013-05-06 01:59:43 UTC
Sorry to hear this.

I just managed to re-produce this with a fake DSDT table and some hack code to pci layer on v3.9 and found the problematic code, then I did a git pull and found 3.10 has some big changes to pci hotplug that made my investigation useless since those code are gone. But 3.10 has other problems regarding dock and pci hotplug, I'll probably raise the question to mailing list.

Thanks again for all the tests you have done.
Comment 4 Alexander E. Patrakov 2013-05-07 06:53:09 UTC
I have contacted the authorized Sony service center. They told me that they will fix the laptop once the needed replacement part arrives, and this can take up to three weeks. So maybe not everything is lost - stay tuned. If/when they repair the laptop, I will reopen this bug.
Comment 5 Alexander E. Patrakov 2013-06-03 01:22:22 UTC
The laptop has been repaired. However, given the refactoring, it is pointless to try to fix the bug in 3.9, and in 3.10 a separate (yet to be reported) bug exists that leads to non-rescanning of the PCI bus after docking, thus possibly hiding this oops.