On 01.10.2018 10:17, Heikki Krogerus wrote:
+Mika, Mathias
On Sat, Sep 29, 2018 at 08:51:43AM +0200, Ondrej Holy wrote:
Hi,
I recently got new Lenovo Thinkpad T480s with the ThinkPad Thunderbolt
3 Dock. The USB ports (but probably also audio and ethernet) on the
dock always don't work after resume from suspend on up-to-date Fedora
29 with kernel-4.18.9-300.fc29.x86_64. HDMI port in the dock seems
works (but with some delay). It doesn't work even with latest
available kernel-4.19.0-0.rc5.git0.1.fc30.x86_64 from rawhide.
Replugging the dock usually helps to fix that issue.
Some probably relevant lines from dmesg after resume:
[ 6528.075126] xhci_hcd 0000:0b:00.0: Refused to change power state,
currently in D3
[ 6528.075127] xhci_hcd 0000:09:00.0: Refused to change power state,
currently in D3
[ 6528.075139] xhci_hcd 0000:0b:00.0: WARN: xHC restore state timeout
[ 6528.075140] xhci_hcd 0000:09:00.0: WARN: xHC restore state timeout
[ 6528.075140] xhci_hcd 0000:0b:00.0: PCI post-resume error -110!
[ 6528.075141] xhci_hcd 0000:09:00.0: PCI post-resume error -110!
[ 6528.075141] xhci_hcd 0000:0b:00.0: HC died; cleaning up
[ 6528.075142] xhci_hcd 0000:09:00.0: HC died; cleaning up
[ 6528.075150] dpm_run_callback(): pci_pm_resume+0x0/0xa0 returns -110
[ 6528.075153] dpm_run_callback(): pci_pm_resume+0x0/0xa0 returns -110
[ 6528.075155] PM: Device 0000:0b:00.0 failed to resume async: error -110
[ 6528.075157] PM: Device 0000:09:00.0 failed to resume async: error -110
xhci driver will react like this if the xHC host is not powered up after resume.
Log states it is still in D3 suspend state instead of D0.
I'm guessing there is some powermanagement issue for thunderbolt connected
PCI devices in resume, looking at dock firmware could be a good place to start.
-Mathias