I can boot either connected or not, and the first connection will usually work. I'd say my more common workflow is to boot away from my dock, use my laptop for a bit, suspend, and go to my desk and resume while docked. That usually works, but if I then undock, use my laptop for a bit, suspend, come back to my desk and resume, then I hit the PCI issue.
I simulated that workflow and indeed reproduced the issue. This morning I: - shut down my laptop - booted it while undocked (and captured dmesg and lspci) - suspended and connected the thunderbolt cable - resumed by pressing the power button on the dock - thunderbolt worked - captured dmesg and lspci again - unplugged the dock and captured dmesg and lspci while undocked - supended and connected thunderbolt again - hit the issue described in this bug - captured dmesg and lspci one more time One mildly interesting thing is that while my system is in the final "broken" state, lspci prints the following to stderr: pcilib: Cannot open /sys/bus/pci/devices/0000:0b:00.0/config lspci: Unable to read the standard configuration space header of device 0000:0b:00.0 I will attach the dmesg as well as lspci I captured at various steps -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/1825395 Title: thunderbolt / PCIe hotplug gets confused after a few cycles on X1 Yoga 2nd gen Status in linux package in Ubuntu: Confirmed Bug description: I have a Lenovo X1 Yoga 2nd gen along with the Lenovo thunderbolt docking station. Initial connection to the dock works great, but after a few plug/unplug and suspend/resume cycles, the system gets in a state where a reboot is needed to make the dock work. The displayport connection still works so my external monitor gets the right display, but the thunderbolt / PCIe connection does not and so the USB and network ports in the dock aren't usable. I assume it is connected to the kernel messages like [37269.423750] thunderbolt 0-1: new device found, vendor=0x108 device=0x1630 [37269.423751] thunderbolt 0-1: Lenovo ThinkPad Thunderbolt 3 Dock [37270.096713] pci 0000:09:00.0: [8086:15d3] type 01 class 0x060400 [37270.096820] pci 0000:09:00.0: enabling Extended Tags [37270.096975] pci 0000:09:00.0: supports D1 D2 [37270.096976] pci 0000:09:00.0: PME# supported from D0 D1 D2 D3hot D3cold [37270.097068] pci 0000:09:00.0: 8.000 Gb/s available PCIe bandwidth, limited by 2.5 GT/s x4 link at 0000:07:01.0 (capable of 31.504 Gb/s with 8 GT/s x4 link) [37270.097187] pcieport 0000:07:01.0: ASPM: current common clock configuration is broken, reconfiguring [37270.108588] pci 0000:0a:00.0: [8086:15d3] type 01 class 0x060400 [37270.108705] pci 0000:0a:00.0: enabling Extended Tags [37270.108865] pci 0000:0a:00.0: supports D1 D2 [37270.108866] pci 0000:0a:00.0: PME# supported from D0 D1 D2 D3hot D3cold [37270.109066] pcieport 0000:07:02.0: ASPM: current common clock configuration is broken, reconfiguring [37270.109147] pci 0000:0b:00.0: [1b73:1100] type 00 class 0x0c0330 [37270.109221] pci 0000:0b:00.0: reg 0x10: [mem 0xbc000000-0xbc00ffff 64bit] [37270.109258] pci 0000:0b:00.0: reg 0x18: [mem 0xbc010000-0xbc010fff 64bit] [37270.109295] pci 0000:0b:00.0: reg 0x20: [mem 0xbc011000-0xbc011fff 64bit] [37270.109499] pci 0000:0b:00.0: supports D1 [37270.109500] pci 0000:0b:00.0: PME# supported from D0 D1 D3hot D3cold [37270.109686] pcieport 0000:07:04.0: ASPM: current common clock configuration is broken, reconfiguring [37270.109724] pci 0000:0a:00.0: devices behind bridge are unusable because [bus 0b] cannot be assigned for them [37270.109738] pci 0000:09:00.0: devices behind bridge are unusable because [bus 0a] cannot be assigned for them [37270.109766] pci 0000:0a:00.0: devices behind bridge are unusable because [bus 0b] cannot be assigned for them [37270.109779] pcieport 0000:07:02.0: bridge has subordinate 0a but max busn 0b [37270.109831] pci_bus 0000:3d: busn_res: can not insert [bus 3d-70] under [bus 07-0b] (conflicts with (null) [bus 07-0b]) [37270.109834] pcieport 0000:07:04.0: PCI bridge to [bus 3d-70] [37270.109843] pcieport 0000:07:04.0: bridge window [mem 0xd4000000-0xe9ffffff] [37270.109848] pcieport 0000:07:04.0: bridge window [mem 0x90000000-0xb9ffffff 64bit pref] [37270.109849] pcieport 0000:07:04.0: devices behind bridge are unusable because [bus 3d-70] cannot be assigned for them ProblemType: Bug DistroRelease: Ubuntu 19.04 Package: linux-image-5.0.0-13-generic 5.0.0-13.14 ProcVersionSignature: Ubuntu 5.0.0-13.14-generic 5.0.6 Uname: Linux 5.0.0-13-generic x86_64 ApportVersion: 2.20.10-0ubuntu27 Architecture: amd64 AudioDevicesInUse: USER PID ACCESS COMMAND /dev/snd/controlC0: roland 1690 F.... pulseaudio CurrentDesktop: ubuntu:GNOME Date: Thu Apr 18 09:40:22 2019 InstallationDate: Installed on 2019-03-29 (20 days ago) InstallationMedia: Ubuntu 19.04 "Disco Dingo" - Alpha amd64 (20190326.2) MachineType: LENOVO 20JGS01000 ProcEnviron: TERM=screen PATH=(custom, no user) XDG_RUNTIME_DIR=<set> LANG=en_US.UTF-8 SHELL=/bin/bash ProcFB: 0 inteldrmfb ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-5.0.0-13-generic root=UUID=323a265b-35d4-4a11-82f0-e47b38cac797 ro quiet splash vt.handoff=1 RelatedPackageVersions: linux-restricted-modules-5.0.0-13-generic N/A linux-backports-modules-5.0.0-13-generic N/A linux-firmware 1.178 SourcePackage: linux UpgradeStatus: No upgrade log present (probably fresh install) dmi.bios.date: 03/11/2019 dmi.bios.vendor: LENOVO dmi.bios.version: N1NET45W (1.32 ) dmi.board.asset.tag: Not Available dmi.board.name: 20JGS01000 dmi.board.vendor: LENOVO dmi.board.version: SDK0J40697 WIN dmi.chassis.asset.tag: No Asset Information dmi.chassis.type: 31 dmi.chassis.vendor: LENOVO dmi.chassis.version: None dmi.modalias: dmi:bvnLENOVO:bvrN1NET45W(1.32):bd03/11/2019:svnLENOVO:pn20JGS01000:pvrThinkPadX1Yoga2nd:rvnLENOVO:rn20JGS01000:rvrSDK0J40697WIN:cvnLENOVO:ct31:cvrNone: dmi.product.family: ThinkPad X1 Yoga 2nd dmi.product.name: 20JGS01000 dmi.product.sku: LENOVO_MT_20JG_BU_Think_FM_ThinkPad X1 Yoga 2nd dmi.product.version: ThinkPad X1 Yoga 2nd dmi.sys.vendor: LENOVO To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1825395/+subscriptions -- Mailing list: https://launchpad.net/~kernel-packages Post to : kernel-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~kernel-packages More help : https://help.launchpad.net/ListHelp