You are not logged in.

#1 2019-10-14 16:00:11

seho
Member
Registered: 2019-10-07
Posts: 10

Thinkpad X1 Extreme - Thunderbolt Issues with Lenovo Dock

Hi all,

i'm running arch on the thinkpad x1 extreme (gen1) for arround a half year. But i haven't managed to get the lenovo "Thinkpad Thunderbolt 3 Workstation Dock" working reliable.

Without the thunderbolt dock everything is working. But using the dock it happens from time to time that are problems.

Until i decided to upgrade the BIOS to latest version (1.24) the usb-device were lost but the system was still usable. But with the latest BIOS update the system freezes completly after arround 30 seconds.

I was able to extract the part from the kernel log where i think the problem has occured.

[15663.326278] pcieport 0000:00:1b.4: pciehp: Slot(20): Link Down
[15663.326296] pcieport 0000:05:04.0: Refused to change power state, currently in D3
[15663.327471] pcieport 0000:05:02.0: Refused to change power state, currently in D3
[15663.430631] pcieport 0000:05:00.0: Refused to change power state, currently in D3
[15663.430754] pcieport 0000:08:04.0: Refused to change power state, currently in D3
[15663.643941] xhci_hcd 0000:3a:00.0: Refused to change power state, currently in D3
[15663.807222] xhci_hcd 0000:3a:00.0: Refused to change power state, currently in D3
[15663.807271] xhci_hcd 0000:3a:00.0: WARN: xHC restore state timeout
[15663.807276] xhci_hcd 0000:3a:00.0: PCI post-resume error -110!
[15663.807278] xhci_hcd 0000:3a:00.0: HC died; cleaning up
[15663.807310] xhci_hcd 0000:3a:00.0: remove, state 4
[15663.807318] usb usb6: USB disconnect, device number 1
[15663.807885] xhci_hcd 0000:3a:00.0: USB bus 6 deregistered
[15663.807902] xhci_hcd 0000:3a:00.0: remove, state 4
[15663.807909] usb usb5: USB disconnect, device number 1
[15663.808368] xhci_hcd 0000:3a:00.0: Host halt failed, -19
[15663.808373] xhci_hcd 0000:3a:00.0: Host not accessible, reset failed.
[15663.808587] xhci_hcd 0000:3a:00.0: USB bus 5 deregistered
[15663.809090] pcieport 0000:05:02.0: Refused to change power state, currently in D3
[15663.809252] pcieport 0000:08:04.0: Refused to change power state, currently in D3
[15663.809881] xhci_hcd 0000:09:00.0: remove, state 1
[15663.809895] usb usb4: USB disconnect, device number 1
[15663.809899] usb 4-2: USB disconnect, device number 2
[15663.809903] usb 4-2.1: USB disconnect, device number 3
[15663.809906] usb 4-2.1.2: USB disconnect, device number 5
[15663.810005] xhci_hcd 0000:09:00.0: xHCI host controller not responding, assume dead
[15663.810303] cdc_ether 4-2.1.2:2.0 ens1u2u1u2c2: unregister 'cdc_ether' usb-0000:09:00.0-2.1.2, CDC Ethernet Device
[15663.847917] usb 4-2.3: USB disconnect, device number 4
[15663.848612] xhci_hcd 0000:09:00.0: USB bus 4 deregistered
[15663.848623] xhci_hcd 0000:09:00.0: remove, state 1
[15663.848629] usb usb3: USB disconnect, device number 1
[15663.848631] usb 3-2: USB disconnect, device number 2
[15663.848633] usb 3-2.1: USB disconnect, device number 3
[15663.848634] usb 3-2.1.1: USB disconnect, device number 6
[15663.848636] usb 3-2.1.1.4: USB disconnect, device number 9
[15663.855606] audit: type=1130 audit(1571067364.056:325): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=NetworkManager-dispatcher comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[15663.876497] usb 3-2.1.5: USB disconnect, device number 8
[15663.876869] usb 3-2.2: USB disconnect, device number 12
[15663.876934] ftdi_sio ttyUSB0: error from flowcontrol urb
[15663.877065] ftdi_sio ttyUSB0: FTDI USB Serial Device converter now disconnected from ttyUSB0
[15663.877079] ftdi_sio 3-2.2:1.0: device disconnected
[15663.877216] usb 3-2.3: USB disconnect, device number 4
[15663.877219] usb 3-2.3.2: USB disconnect, device number 7
[15663.891132] audit: type=1131 audit(1571067364.093:326): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=gpsdctl@ttyUSB0 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[15663.917868] usb 3-2.3.3: USB disconnect, device number 10
[15664.016719] usb 3-2.3.4: USB disconnect, device number 11
[15664.151126] usb 3-2.5: USB disconnect, device number 5
[15664.151759] xhci_hcd 0000:09:00.0: Host halt failed, -19
[15664.151762] xhci_hcd 0000:09:00.0: Host not accessible, reset failed.
[15664.151903] xhci_hcd 0000:09:00.0: USB bus 3 deregistered
[15664.212220] ------------[ cut here ]------------
[15664.212222] thunderbolt 0000:06:00.0: interrupt for TX ring 0 is already enabled
[15664.212256] WARNING: CPU: 4 PID: 208 at drivers/thunderbolt/nhi.c:104 ring_interrupt_active+0x1ef/0x240 [thunderbolt]
[15664.212256] Modules linked in: xt_policy authenc echainiv esp4 ftdi_sio nvidia_drm(POE) nvidia_modeset(POE) nvidia_uvm(OE) nvidia(POE) ipmi_devintf ipmi_msghandler fuse veth xt_nat xt_tcpudp xt_MASQUERADE nf_conntrack_netlink xfrm_user xfrm_algo iptable_nat xt_addrtype iptable_filter xt_conntrack br_netfilter bridge stp llc overlay rfcomm cmac algif_hash algif_skcipher af_alg snd_usb_audio snd_usbmidi_lib snd_rawmidi snd_seq_device cdc_ether usbnet mii sd_mod nft_nat nft_chain_nat nf_nat bnep nft_counter btusb btrtl btbcm btintel uvcvideo bluetooth videobuf2_vmalloc videobuf2_memops wacom videobuf2_v4l2 videobuf2_common hid_generic videodev usbhid nft_reject_inet nf_reject_ipv4 joydev nf_reject_ipv6 mousedev hid nft_reject ecdh_generic mc ecc nft_ct nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 libcrc32c sof_pci_dev nf_tables snd_sof_intel_hda_common snd_sof_intel_hda snd_sof_intel_byt snd_sof_intel_ipc nfnetlink typec_displayport snd_sof snd_sof_xtensa_dsp snd_soc_skl snd_soc_hdac_hda
[15664.212272]  x86_pkg_temp_thermal snd_hda_ext_core intel_powerclamp snd_hda_codec_hdmi coretemp snd_soc_skl_ipc kvm_intel snd_soc_sst_ipc snd_soc_sst_dsp snd_hda_codec_realtek snd_soc_acpi_intel_match snd_soc_acpi snd_hda_codec_generic kvm snd_soc_core irqbypass snd_compress iTCO_wdt ac97_bus mei_hdcp iwlmvm 8250_dw iTCO_vendor_support intel_rapl_msr crct10dif_pclmul crc32_pclmul wmi_bmof uas intel_wmi_thunderbolt i915 ghash_clmulni_intel usb_storage snd_pcm_dmaengine mac80211 aesni_intel i2c_algo_bit aes_x86_64 crypto_simd drm_kms_helper libarc4 cryptd snd_hda_intel nls_iso8859_1 glue_helper intel_cstate drm snd_hda_codec nls_cp437 vfat intel_uncore fat iwlwifi snd_hda_core intel_rapl_perf intel_gtt tpm_crb snd_hwdep psmouse input_leds pcspkr thinkpad_acpi mei_me snd_pcm tpm_tis e1000e agpgart processor_thermal_device nvram i2c_i801 cfg80211 thunderbolt idma64 tpm_tis_core syscopyarea mei snd_timer ledtrig_audio intel_rapl_common intel_lpss_pci ucsi_acpi sysfillrect tpm sysimgblt rfkill
[15664.212287]  intel_lpss intel_pch_thermal typec_ucsi snd fb_sys_fops intel_soc_dts_iosf typec wmi rng_core battery soundcore int3403_thermal ac int340x_thermal_zone evdev int3400_thermal mac_hid acpi_thermal_rel vboxnetflt(OE) vboxnetadp(OE) vboxpci(OE) vboxdrv(OE) sg scsi_mod crypto_user bbswitch(OE) ip_tables x_tables ext4 crc32c_generic crc16 mbcache jbd2 serio_raw atkbd libps2 xhci_pci crc32c_intel xhci_hcd i8042 serio
[15664.212297] CPU: 4 PID: 208 Comm: irq/124-pciehp Tainted: P           OE     5.3.4-arch1-1-ARCH #1
[15664.212298] Hardware name: LENOVO 20MF000XGE/20MF000XGE, BIOS N2EET42W (1.24 ) 08/06/2019
[15664.212300] RIP: 0010:ring_interrupt_active+0x1ef/0x240 [thunderbolt]
[15664.212301] Code: 00 00 00 44 89 44 24 04 e8 8e 49 55 e0 44 8b 44 24 04 4d 89 f1 4c 89 e1 48 89 c6 4c 89 fa 48 c7 c7 50 d1 8d c0 e8 20 8a fc df <0f> 0b e9 1b ff ff ff 0f b6 43 78 d3 e0 09 c7 e9 dc fe ff ff 44 03
[15664.212302] RSP: 0018:ffffa0f9804abba8 EFLAGS: 00010086
[15664.212303] RAX: 0000000000000000 RBX: ffff9667f8ea2180 RCX: 0000000000000000
[15664.212303] RDX: 0000000000000003 RSI: 0000000000000086 RDI: 00000000ffffffff
[15664.212304] RBP: 00000000ffffffff R08: 0000000000000a92 R09: 0000000000000001
[15664.212304] R10: 0000000000000000 R11: 0000000000000001 R12: ffffffffc08dc671
[15664.212304] R13: 0000000000038200 R14: ffffffffc08dc660 R15: ffff9667fa94be10
[15664.212305] FS:  0000000000000000(0000) GS:ffff9667ff500000(0000) knlGS:0000000000000000
[15664.212306] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[15664.212306] CR2: 0000000003eaeff8 CR3: 00000007df942004 CR4: 00000000003626e0
[15664.212307] Call Trace:
[15664.212311]  tb_ring_start+0xbf/0x190 [thunderbolt]
[15664.212314]  tb_ctl_start+0x25/0x80 [thunderbolt]
[15664.212318]  tb_domain_runtime_resume+0x15/0x40 [thunderbolt]
[15664.212320]  pci_pm_runtime_resume+0x71/0xc0
[15664.212322]  ? pci_restore_standard_config+0x40/0x40
[15664.212323]  ? pci_restore_standard_config+0x40/0x40
[15664.212325]  __rpm_callback+0x7b/0x130
[15664.212326]  ? pci_restore_standard_config+0x40/0x40
[15664.212327]  rpm_callback+0x1f/0x70
[15664.212328]  ? pci_restore_standard_config+0x40/0x40
[15664.212329]  rpm_resume+0x591/0x790
[15664.212330]  __pm_runtime_resume+0x3b/0x60
[15664.212331]  ? irq_forced_thread_fn+0x80/0x80
[15664.212333]  device_release_driver_internal+0x75/0x1b0
[15664.212335]  pci_stop_bus_device+0x68/0x90
[15664.212336]  pci_stop_bus_device+0x2c/0x90
[15664.212337]  pci_stop_bus_device+0x3d/0x90
[15664.212338]  pci_stop_and_remove_bus_device+0xe/0x20
[15664.212340]  pciehp_unconfigure_device+0x83/0x136
[15664.212341]  pciehp_disable_slot+0x6b/0xf0
[15664.212343]  pciehp_handle_presence_or_link_change+0xdc/0x140
[15664.212344]  pciehp_ist+0x10f/0x120
[15664.212345]  irq_thread_fn+0x20/0x60
[15664.212346]  irq_thread+0xee/0x180
[15664.212347]  ? wake_threads_waitq+0x30/0x30
[15664.212348]  kthread+0xfb/0x130
[15664.212349]  ? irq_thread_dtor+0x90/0x90
[15664.212350]  ? kthread_park+0x80/0x80
[15664.212352]  ret_from_fork+0x35/0x40
[15664.212353] ---[ end trace 8111617a9cd5a7ff ]---
[15664.212361] ------------[ cut here ]------------
[15664.212361] thunderbolt 0000:06:00.0: interrupt for RX ring 0 is already enabled
[15664.212374] WARNING: CPU: 4 PID: 208 at drivers/thunderbolt/nhi.c:104 ring_interrupt_active+0x1ef/0x240 [thunderbolt]
[15664.212375] Modules linked in: xt_policy authenc echainiv esp4 ftdi_sio nvidia_drm(POE) nvidia_modeset(POE) nvidia_uvm(OE) nvidia(POE) ipmi_devintf ipmi_msghandler fuse veth xt_nat xt_tcpudp xt_MASQUERADE nf_conntrack_netlink xfrm_user xfrm_algo iptable_nat xt_addrtype iptable_filter xt_conntrack br_netfilter bridge stp llc overlay rfcomm cmac algif_hash algif_skcipher af_alg snd_usb_audio snd_usbmidi_lib snd_rawmidi snd_seq_device cdc_ether usbnet mii sd_mod nft_nat nft_chain_nat nf_nat bnep nft_counter btusb btrtl btbcm btintel uvcvideo bluetooth videobuf2_vmalloc videobuf2_memops wacom videobuf2_v4l2 videobuf2_common hid_generic videodev usbhid nft_reject_inet nf_reject_ipv4 joydev nf_reject_ipv6 mousedev hid nft_reject ecdh_generic mc ecc nft_ct nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 libcrc32c sof_pci_dev nf_tables snd_sof_intel_hda_common snd_sof_intel_hda snd_sof_intel_byt snd_sof_intel_ipc nfnetlink typec_displayport snd_sof snd_sof_xtensa_dsp snd_soc_skl snd_soc_hdac_hda
[15664.212385]  x86_pkg_temp_thermal snd_hda_ext_core intel_powerclamp snd_hda_codec_hdmi coretemp snd_soc_skl_ipc kvm_intel snd_soc_sst_ipc snd_soc_sst_dsp snd_hda_codec_realtek snd_soc_acpi_intel_match snd_soc_acpi snd_hda_codec_generic kvm snd_soc_core irqbypass snd_compress iTCO_wdt ac97_bus mei_hdcp iwlmvm 8250_dw iTCO_vendor_support intel_rapl_msr crct10dif_pclmul crc32_pclmul wmi_bmof uas intel_wmi_thunderbolt i915 ghash_clmulni_intel usb_storage snd_pcm_dmaengine mac80211 aesni_intel i2c_algo_bit aes_x86_64 crypto_simd drm_kms_helper libarc4 cryptd snd_hda_intel nls_iso8859_1 glue_helper intel_cstate drm snd_hda_codec nls_cp437 vfat intel_uncore fat iwlwifi snd_hda_core intel_rapl_perf intel_gtt tpm_crb snd_hwdep psmouse input_leds pcspkr thinkpad_acpi mei_me snd_pcm tpm_tis e1000e agpgart processor_thermal_device nvram i2c_i801 cfg80211 thunderbolt idma64 tpm_tis_core syscopyarea mei snd_timer ledtrig_audio intel_rapl_common intel_lpss_pci ucsi_acpi sysfillrect tpm sysimgblt rfkill
[15664.212395]  intel_lpss intel_pch_thermal typec_ucsi snd fb_sys_fops intel_soc_dts_iosf typec wmi rng_core battery soundcore int3403_thermal ac int340x_thermal_zone evdev int3400_thermal mac_hid acpi_thermal_rel vboxnetflt(OE) vboxnetadp(OE) vboxpci(OE) vboxdrv(OE) sg scsi_mod crypto_user bbswitch(OE) ip_tables x_tables ext4 crc32c_generic crc16 mbcache jbd2 serio_raw atkbd libps2 xhci_pci crc32c_intel xhci_hcd i8042 serio
[15664.212401] CPU: 4 PID: 208 Comm: irq/124-pciehp Tainted: P        W  OE     5.3.4-arch1-1-ARCH #1
[15664.212401] Hardware name: LENOVO 20MF000XGE/20MF000XGE, BIOS N2EET42W (1.24 ) 08/06/2019
[15664.212404] RIP: 0010:ring_interrupt_active+0x1ef/0x240 [thunderbolt]
[15664.212404] Code: 00 00 00 44 89 44 24 04 e8 8e 49 55 e0 44 8b 44 24 04 4d 89 f1 4c 89 e1 48 89 c6 4c 89 fa 48 c7 c7 50 d1 8d c0 e8 20 8a fc df <0f> 0b e9 1b ff ff ff 0f b6 43 78 d3 e0 09 c7 e9 dc fe ff ff 44 03
[15664.212405] RSP: 0018:ffffa0f9804abba8 EFLAGS: 00010086
[15664.212405] RAX: 0000000000000000 RBX: ffff9667f8ea29c0 RCX: 0000000000000000
[15664.212406] RDX: 0000000000000003 RSI: 0000000000000086 RDI: 00000000ffffffff
[15664.212406] RBP: 00000000ffffffff R08: 0000000000000ac4 R09: 0000000000000001
[15664.212407] R10: 0000000000000000 R11: 0000000000000001 R12: ffffffffc08dc679
[15664.212407] R13: 0000000000038200 R14: ffffffffc08dc660 R15: ffff9667fa94be10
[15664.212408] FS:  0000000000000000(0000) GS:ffff9667ff500000(0000) knlGS:0000000000000000
[15664.212408] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[15664.212409] CR2: 0000000003eaeff8 CR3: 00000007df942004 CR4: 00000000003626e0
[15664.212409] Call Trace:
[15664.212412]  tb_ring_start+0xbf/0x190 [thunderbolt]
[15664.212414]  tb_ctl_start+0x2f/0x80 [thunderbolt]
[15664.212417]  tb_domain_runtime_resume+0x15/0x40 [thunderbolt]
[15664.212419]  pci_pm_runtime_resume+0x71/0xc0
[15664.212420]  ? pci_restore_standard_config+0x40/0x40
[15664.212421]  ? pci_restore_standard_config+0x40/0x40
[15664.212422]  __rpm_callback+0x7b/0x130
[15664.212423]  ? pci_restore_standard_config+0x40/0x40
[15664.212424]  rpm_callback+0x1f/0x70
[15664.212425]  ? pci_restore_standard_config+0x40/0x40
[15664.212425]  rpm_resume+0x591/0x790
[15664.212426]  __pm_runtime_resume+0x3b/0x60
[15664.212427]  ? irq_forced_thread_fn+0x80/0x80
[15664.212428]  device_release_driver_internal+0x75/0x1b0
[15664.212430]  pci_stop_bus_device+0x68/0x90
[15664.212431]  pci_stop_bus_device+0x2c/0x90
[15664.212432]  pci_stop_bus_device+0x3d/0x90
[15664.212433]  pci_stop_and_remove_bus_device+0xe/0x20
[15664.212434]  pciehp_unconfigure_device+0x83/0x136
[15664.212435]  pciehp_disable_slot+0x6b/0xf0
[15664.212437]  pciehp_handle_presence_or_link_change+0xdc/0x140
[15664.212438]  pciehp_ist+0x10f/0x120
[15664.212439]  irq_thread_fn+0x20/0x60
[15664.212440]  irq_thread+0xee/0x180
[15664.212441]  ? wake_threads_waitq+0x30/0x30
[15664.212442]  kthread+0xfb/0x130
[15664.212442]  ? irq_thread_dtor+0x90/0x90
[15664.212443]  ? kthread_park+0x80/0x80
[15664.212444]  ret_from_fork+0x35/0x40
[15664.212445] ---[ end trace 8111617a9cd5a800 ]---

I'm running

5.3.4-arch1-1-ARCH

I use bb-switch with nvidia-xrun when the laptop is connected to the dock.

I someone using the same configuration (notebook and dock) which is working reliable?
Has some a hint for where to find further resources to get rid of the systemcrash?

Kind regards,
Sebastian

Offline

#2 2019-10-14 21:17:36

veridiam
Member
Registered: 2013-10-26
Posts: 9

Re: Thinkpad X1 Extreme - Thunderbolt Issues with Lenovo Dock

try to plug the AC adaptor in while it's docked. the laptop draws the full 135W under load, which most docking stations aren't able to provide and crash out

Offline

#3 2019-10-15 09:17:29

seho
Member
Registered: 2019-10-07
Posts: 10

Re: Thinkpad X1 Extreme - Thunderbolt Issues with Lenovo Dock

veridiam wrote:

try to plug the AC adaptor in while it's docked. the laptop draws the full 135W under load, which most docking stations aren't able to provide and crash out

Unfortunately i only got a combined power and thunderbolt cable with the dock. And the dock is also powered by two power-supplies. One 65W for the dock self and another 230W which is used to power the notebook.

https://support.lenovo.com/de/de/solutions/pd500252

I wanted to avoid buying another thunderbolt cable. but maybe i have to buy one.

Do you think it's worth to buy a dedicated thunderbolt cable?


Regards,
Sebastian

Last edited by seho (2019-10-15 09:17:55)

Offline

#4 2019-11-06 11:47:22

seho
Member
Registered: 2019-10-07
Posts: 10

Re: Thinkpad X1 Extreme - Thunderbolt Issues with Lenovo Dock

I finally managed to update the firmware of the dock. It's now running for about two days without any problems.

Currently it looks like that has solved the problem.

I will post an update here if the problem occurs again.

Offline

#5 2019-11-11 11:51:28

seho
Member
Registered: 2019-10-07
Posts: 10

Re: Thinkpad X1 Extreme - Thunderbolt Issues with Lenovo Dock

The problem still exists.

At least the system is not freezing anymore.

Offline

#6 2019-11-26 12:43:49

eblau
Member
Registered: 2016-02-11
Posts: 43

Re: Thinkpad X1 Extreme - Thunderbolt Issues with Lenovo Dock

I also am having issues with my Thunderbolt dock for my Thinkpad. I have this model:

https://support.lenovo.com/us/en/solutions/pd500252

When I plug in the dock, it seems to be powered off. When I run

sudo boltctl power

I see the dock seem to attach, but none of the USB ports, Thunderbolt, HDMI or Ethernet ports are seen on my laptop. I have authorized the device by disabling Thunderbolt security in the BIOS and with a udev rule but it does not seem to help. I also enabled Thunderbolt support in the BIOS. I see the following logs with the dock force powered on:

boltd[74576]: power: setting force_power to ON
boltd[74576]: power: state changed: supported/on
boltd[74576]: power: guard '3' for 'boltctl' active
kernel: pci 0000:04:00.0: [8086:15ea] type 01 class 0x060400
kernel: pci 0000:04:00.0: enabling Extended Tags
kernel: pci 0000:04:00.0: supports D1 D2
kernel: pci 0000:04:00.0: PME# supported from D0 D1 D2 D3hot D3cold
kernel: pci 0000:04:00.0: PTM enabled, 4dns granularity
kernel: pcieport 0000:00:1c.0: ASPM: current common clock configuration is broken, recon
boltd[74576]: probing: started [1000]
kernel: pci 0000:05:00.0: [8086:15ea] type 01 class 0x060400
kernel: pci 0000:05:00.0: enabling Extended Tags
kernel: pci 0000:05:00.0: supports D1 D2
kernel: pci 0000:05:00.0: PME# supported from D0 D1 D2 D3hot D3cold
kernel: pci 0000:05:01.0: [8086:15ea] type 01 class 0x060400
kernel: pci 0000:05:01.0: enabling Extended Tags
kernel: pci 0000:05:01.0: supports D1 D2
kernel: pci 0000:05:01.0: PME# supported from D0 D1 D2 D3hot D3cold
kernel: pci 0000:05:02.0: [8086:15ea] type 01 class 0x060400
kernel: pci 0000:05:02.0: enabling Extended Tags
kernel: pci 0000:05:02.0: supports D1 D2
kernel: pci 0000:05:02.0: PME# supported from D0 D1 D2 D3hot D3cold
kernel: pci 0000:05:04.0: [8086:15ea] type 01 class 0x060400
kernel: pci 0000:05:04.0: enabling Extended Tags
kernel: pci 0000:05:04.0: supports D1 D2
kernel: pci 0000:05:04.0: PME# supported from D0 D1 D2 D3hot D3cold
kernel: pci 0000:04:00.0: PCI bridge to [bus 05-6e]
kernel: pci 0000:04:00.0:   bridge window [mem 0x74000000-0xa20fffff]
kernel: pci 0000:04:00.0:   bridge window [mem 0x6000000000-0x6049ffffff 64bit pref]
kernel: pci 0000:06:00.0: [8086:15eb] type 00 class 0x088000
kernel: pci 0000:06:00.0: reg 0x10: [mem 0xa2000000-0xa203ffff]
kernel: pci 0000:06:00.0: reg 0x14: [mem 0xa2040000-0xa2040fff]
kernel: pci 0000:06:00.0: enabling Extended Tags
kernel: pci 0000:06:00.0: supports D1 D2
kernel: pci 0000:06:00.0: PME# supported from D0 D1 D2 D3hot D3cold
kernel: pci 0000:05:00.0: PCI bridge to [bus 06]
kernel: pci 0000:05:00.0:   bridge window [mem 0xa2000000-0xa20fffff]
kernel: pci 0000:05:01.0: PCI bridge to [bus 07-39]
kernel: pci 0000:05:01.0:   bridge window [mem 0x74000000-0x8befffff]
kernel: pci 0000:05:01.0:   bridge window [mem 0x6000000000-0x601fffffff 64bit pref]
kernel: pci 0000:05:02.0: PCI bridge to [bus 3a]
kernel: pci 0000:05:02.0:   bridge window [mem 0x8bf00000-0x8bffffff]
kernel: pci 0000:05:04.0: PCI bridge to [bus 3b-6e]
kernel: pci 0000:05:04.0:   bridge window [mem 0x8c000000-0xa1ffffff]
kernel: pci 0000:05:04.0:   bridge window [mem 0x6020000000-0x6049ffffff 64bit pref]
kernel: pci_bus 0000:05: Allocating resources
kernel: pci 0000:05:01.0: bridge window [io  0x1000-0x0fff] to [bus 07-39] add_size 1000
kernel: pci 0000:05:04.0: bridge window [io  0x1000-0x0fff] to [bus 3b-6e] add_size 1000
kernel: pci 0000:04:00.0: bridge window [io  0x1000-0x0fff] to [bus 05-6e] add_size 3000
kernel: pci 0000:04:00.0: BAR 13: no space for [io  size 0x3000]
kernel: pci 0000:04:00.0: BAR 13: failed to assign [io  size 0x3000]
kernel: pci 0000:04:00.0: BAR 13: no space for [io  size 0x3000]
kernel: pci 0000:04:00.0: BAR 13: failed to assign [io  size 0x3000]
kernel: pci 0000:05:01.0: BAR 13: no space for [io  size 0x1000]
kernel: pci 0000:05:01.0: BAR 13: failed to assign [io  size 0x1000]
kernel: pci 0000:05:04.0: BAR 13: no space for [io  size 0x1000]
kernel: pci 0000:05:04.0: BAR 13: failed to assign [io  size 0x1000]
kernel: pci 0000:05:04.0: BAR 13: no space for [io  size 0x1000]
kernel: pci 0000:05:04.0: BAR 13: failed to assign [io  size 0x1000]
kernel: pci 0000:05:01.0: BAR 13: no space for [io  size 0x1000]
kernel: pci 0000:05:01.0: BAR 13: failed to assign [io  size 0x1000]
kernel: pci 0000:05:00.0: PCI bridge to [bus 06]
kernel: pci 0000:05:00.0:   bridge window [mem 0xa2000000-0xa20fffff]
kernel: pci 0000:05:01.0: PCI bridge to [bus 07-39]
kernel: pci 0000:05:01.0:   bridge window [mem 0x74000000-0x8befffff]
kernel: pci 0000:05:01.0:   bridge window [mem 0x6000000000-0x601fffffff 64bit pref]
kernel: pci 0000:05:02.0: PCI bridge to [bus 3a]
kernel: pci 0000:05:02.0:   bridge window [mem 0x8bf00000-0x8bffffff]
kernel: pci 0000:05:04.0: PCI bridge to [bus 3b-6e]
kernel: pci 0000:05:04.0:   bridge window [mem 0x8c000000-0xa1ffffff]
kernel: pci 0000:05:04.0:   bridge window [mem 0x6020000000-0x6049ffffff 64bit pref]
kernel: pci 0000:04:00.0: PCI bridge to [bus 05-6e]
kernel: pci 0000:04:00.0:   bridge window [mem 0x74000000-0xa20fffff]
kernel: pci 0000:04:00.0:   bridge window [mem 0x6000000000-0x6049ffffff 64bit pref]
boltd[74576]: probing: adding /sys/devices/pci0000:00/0000:00:1c.0/0000:04:00.0 to roots
boltd[74576]: [c9030000-0060-domain0                    ] bootacl: synchronizing journal
boltd[74576]: [c9030000-0060-domain0                    ] connected: as domain0 [none] (/sys/devices/pci0000:00/0000:00:1c.0/0000:04:00.0/0000:05:00.0/0000:06:00.0/domain0)
boltd[74576]: [c9030000-0060-P52                        ] device added, status: authorized, at /sys/devices/pci0000:00/0000:00:1c.0/0000:04:00.0/0000:05:00.0/0000:06:00.0/domain0/0-0
boltd[74576]: [c9030000-0060-P52                        ] labeling device: Lenovo P52
boltd[74576]: [c9030000-0060-P52                        ] dbus: exported device at /org/freedesktop/bolt/devices/c9030000_0060...
boltd[74576]: probing: timeout, done: [2838505] (2000000)

lspci and lsusb show nothing with the dock force powered on. I don't mean to hijack this thread, but I'm curious as to what I'm missing here. It seems you've made it further along in getting your similar dock to work.

Last edited by eblau (2019-11-26 12:44:53)

Offline

#7 2019-11-26 13:08:07

seho
Member
Registered: 2019-10-07
Posts: 10

Re: Thinkpad X1 Extreme - Thunderbolt Issues with Lenovo Dock

Please See https://bbs.archlinux.org/viewtopic.php?id=250519

I tried so much stuff to get my dock working reliable. I can't remind exaclty what I tried.

I also disabled Thunderbolt Security in the BIOS and tweaked some other option. There was something with "PRE ... Thunderbolt Support" that is also enabled.

After I updated the Firmware of the dock is was not recognized anymore. Wether by Windows 10 nor by Archlinux.

When I called sudo boltctl it showed the dock as disconnected. See link above.

I performed a powercycle for the dock. My dock has two power supplys. one for the dock self and the other one for the thinkpad and other peripheral devices.
I disconnected both will arch was running. And replugged them.

After that boltctl showed the dock as online.

But when I remind right the USB devices have always "worked" until they stopped working somehow. That problem still persists until today. It also happens completly randomly. One time the system is running 48 hours without flaws, sometimes it happens only a few hours after starting the system.

Offline

#8 2019-11-26 13:11:07

eblau
Member
Registered: 2016-02-11
Posts: 43

Re: Thinkpad X1 Extreme - Thunderbolt Issues with Lenovo Dock

Thanks. I just updated the BIOS on my laptop and now the dock shows up in boltctl and the Ethernet and USB devices are all seen. I'm going to have to play around a bit more to try to get the display working through the dock, but this is further than I got before. I'll have to try some more things later. Thanks again for the hints.

Offline

#9 2019-11-26 13:40:55

seho
Member
Registered: 2019-10-07
Posts: 10

Re: Thinkpad X1 Extreme - Thunderbolt Issues with Lenovo Dock

Please give me a note if have managed to get the DisplayPorts/HDMI Ports on the dock working properly.

I have not managed to get them working reliable. Currently i'm using only the HDMI port of my thinkpad.

Testing the OPTIMUS-Manager is still on my task list, but I haven't found to time to test it out.

Offline

#10 2019-11-26 13:49:22

eblau
Member
Registered: 2016-02-11
Posts: 43

Re: Thinkpad X1 Extreme - Thunderbolt Issues with Lenovo Dock

I was able to get the DisplayPort working on the dock now. I went the bumblebee route to enable NVIDIA discrete graphics and then launch intel-virtual-output to allow the dock DisplayPort output to work with xrandr. I have bbswitch configured to disable NVIDIA graphics when I'm not docked and then launching intel-virtual-output enables it.

I tried optimus-manager initially and it worked for switching between Intel and NVIDIA graphics but bumblebee seems to work better for me. I don't remember the exact issue I had with optimus-manager that convinced me to go the bumblebee route but bumblebee gives me everything I need.

Here's the script I run as root with sudo to use to enable NVIDIA graphics and set the desired 4K mode on my external monitor. I grabbed this example script from somewhere (don't remember where) and customized it for my purposes:

#!/bin/sh
 
# Tell the intel card to create virtual screens on :0 and
# copy whatever they're displaying to equivalent screens on :8
intel-virtual-output

sleep 5

# Configure my monitors the way I like them.
xrandr --output VIRTUAL1 --mode VIRTUAL1.542-3840x2160 --pos 2880x0 --primary \
       --output eDP1 --mode 1600x900 --scale 1.5x1.5 --pos 0x0

Here's the script I run when I want to go back to Intel graphics when undocking. It kills the X server on DISPLAY :8 and bbswitch disables the NVIDIA graphics for me. I use HiDPI w/ my 4K monitor, hence the reason for the --scale option here and above:

#!/bin/sh

# Turn on the laptop screen and turn off the other screen.
xrandr --output eDP1 --auto --scale 1.5x1.5 --primary \
       --output VIRTUAL1 --off \
       --output VIRTUAL3 --off \
       --output VIRTUAL4 --off

# Kill the xorg server running on the nvidia card.
kill $(ps ax | grep Xorg | grep :8 | awk '{print $1}')

Offline

#11 2020-03-12 19:46:46

seho
Member
Registered: 2019-10-07
Posts: 10

Re: Thinkpad X1 Extreme - Thunderbolt Issues with Lenovo Dock

Hiho,

my problem with lost usb-devices still exists.

...
...
[ 8246.673936] pcieport 0000:05:02.0: can't change power state from D3cold to D0 (config space inaccessible)


[ 8262.434131] NETDEV WATCHDOG: enp9s0u2u1u2 (r8152): transmit queue 0 timed out
[ 8262.434154] WARNING: CPU: 7 PID: 0 at net/sched/sch_generic.c:442 dev_watchdog+0x26a/0x280
[ 8262.434156] Modules linked in: twofish_generic twofish_avx_x86_64 twofish_x86_64_3way twofish_x86_64 twofish_common serpent_avx2 serpent_avx_x86_64 serpent_sse2_x86_64 serpent_generic hidp fuse nvidia_drm(POE) nvidia_modeset(POE) nvidia_uvm(OE) nvidia(POE) ipmi_devintf ipmi_msghandler xt_nat xt_tcpudp veth xt_conntrack xt_MASQUERADE nf_conntrack_netlink xfrm_user xfrm_algo xt_addrtype iptable_filter iptable_nat br_netfilter bridge stp llc overlay ccm rfcomm cmac algif_hash algif_skcipher af_alg bonding cdc_ether usbnet r8152 mii wacom sd_mod snd_usb_audio snd_usbmidi_lib snd_rawmidi nft_nat snd_seq_device bnep nft_chain_nat nf_nat btusb uvcvideo btrtl btbcm btintel videobuf2_vmalloc videobuf2_memops nft_counter videobuf2_v4l2 bluetooth hid_generic joydev videobuf2_common videodev usbhid nft_reject_inet nf_reject_ipv4 nf_reject_ipv6 ecdh_generic hid mc ecc mousedev nft_reject nft_ct nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 typec_displayport libcrc32c snd_sof_pci snd_sof_intel_byt
[ 8262.434211]  snd_sof_intel_ipc snd_sof_xtensa_dsp snd_sof_intel_hda_common snd_soc_hdac_hda snd_sof_intel_hda nf_tables snd_sof snd_hda_codec_hdmi nfnetlink snd_soc_skl snd_soc_sst_ipc snd_soc_sst_dsp snd_hda_ext_core snd_soc_acpi_intel_match x86_pkg_temp_thermal snd_soc_acpi intel_powerclamp snd_hda_codec_realtek coretemp snd_hda_codec_generic snd_soc_core kvm_intel snd_compress iTCO_wdt kvm 8250_dw iwlmvm mei_hdcp iTCO_vendor_support intel_rapl_msr ac97_bus i915 irqbypass wmi_bmof intel_wmi_thunderbolt uas nls_iso8859_1 snd_pcm_dmaengine crct10dif_pclmul usb_storage nls_cp437 i2c_algo_bit mac80211 crc32_pclmul vfat snd_hda_intel ghash_clmulni_intel fat snd_intel_dspcfg aesni_intel libarc4 drm_kms_helper crypto_simd snd_hda_codec cryptd iwlwifi glue_helper ofpart intel_cstate intel_uncore snd_hda_core cmdlinepart intel_spi_pci intel_rapl_perf psmouse input_leds pcspkr tpm_crb drm intel_spi snd_hwdep e1000e thunderbolt spi_nor snd_pcm cfg80211 intel_gtt tpm_tis i2c_i801 mtd tpm_tis_core
[ 8262.434261]  agpgart ucsi_acpi mei_me typec_ucsi tpm syscopyarea processor_thermal_device intel_lpss_pci sysfillrect intel_rapl_common intel_lpss sysimgblt mei idma64 snd_timer intel_soc_dts_iosf fb_sys_fops intel_pch_thermal typec rng_core wmi thinkpad_acpi nvram ledtrig_audio rfkill battery snd soundcore int3403_thermal ac int340x_thermal_zone evdev int3400_thermal acpi_thermal_rel mac_hid vboxnetflt(OE) vboxnetadp(OE) vboxdrv(OE) sg scsi_mod crypto_user bbswitch(OE) ip_tables x_tables ext4 crc32c_generic crc16 mbcache jbd2 serio_raw atkbd libps2 crc32c_intel xhci_pci xhci_hcd i8042 serio
[ 8262.434297] CPU: 7 PID: 0 Comm: swapper/7 Tainted: P        W  OE     5.5.8-arch1-1 #1
[ 8262.434299] Hardware name: LENOVO 20MF000XGE/20MF000XGE, BIOS N2EET45W (1.27 ) 02/06/2020
[ 8262.434302] RIP: 0010:dev_watchdog+0x26a/0x280
[ 8262.434305] Code: 3a 03 80 ff eb 88 4c 89 f7 c6 05 9a 69 d1 00 01 e8 8b ae fa ff 44 89 e9 4c 89 f6 48 c7 c7 50 de da 86 48 89 c2 e8 38 df 88 ff <0f> 0b e9 66 ff ff ff 66 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00
[ 8262.434307] RSP: 0018:ffff8edac0310e60 EFLAGS: 00010286
[ 8262.434309] RAX: 0000000000000000 RBX: ffff88d539338200 RCX: 0000000000000000lc
[ 8262.434311] RDX: 0000000000000103 RSI: 0000000000000096 RDI: 00000000ffffffff
[ 8262.434312] RBP: ffff88d514c8b45c R08: 0000000000000600 R09: 0000000000000001
[ 8262.434314] R10: 0000000000000000 R11: 0000000000000001 R12: ffff88d514c8b480
[ 8262.434315] R13: 0000000000000000 R14: ffff88d514c8b000 R15: ffff88d539338280
[ 8262.434317] FS:  0000000000000000(0000) GS:ffff88d53f7c0000(0000) knlGS:0000000000000000
[ 8262.434319] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 8262.434320] CR2: fffff900c1ce3000 CR3: 00000007e760a005 CR4: 00000000003626e0
[ 8262.434322] Call Trace:
[ 8262.434324]  <IRQ>
[ 8262.434331]  ? qdisc_put_unlocked+0x30/0x30
[ 8262.434335]  call_timer_fn+0x2d/0x160
[ 8262.434338]  run_timer_softirq+0x1ad/0x510
[ 8262.434340]  ? qdisc_put_unlocked+0x30/0x30
[ 8262.434346]  __do_softirq+0x111/0x34d
[ 8262.434351]  irq_exit+0xac/0xd0
[ 8262.434355]  smp_apic_timer_interrupt+0xa6/0x1b0
[ 8262.434358]  apic_timer_interrupt+0xf/0x20
[ 8262.434360]  </IRQ>
[ 8262.434365] RIP: 0010:cpuidle_enter_state+0xc9/0x410
[ 8262.434367] Code: e8 dc 40 98 ff 80 7c 24 0f 00 74 17 9c 58 0f 1f 44 00 00 f6 c4 02 0f 85 1c 03 00 00 31 ff e8 be ad 9e ff fb 66 0f 1f 44 00 00 <45> 85 ed 0f 88 72 02 00 00 49 63 d5 4c 2b 64 24 10 48 8d 04 52 48
[ 8262.434368] RSP: 0018:ffff8edac0143e68 EFLAGS: 00000246 ORIG_RAX: ffffffffffffff13
[ 8262.434371] RAX: ffff88d53f7c0000 RBX: ffff88d53f7f7648 RCX: 000000000000001f
[ 8262.434372] RDX: 0000000000000000 RSI: 0000000039f897d9 RDI: 0000000000000000
[ 8262.434374] RBP: ffffffff870be740 R08: 00000783bf7347d8 R09: 000000000000103b
[ 8262.434375] R10: 000000000000055d R11: ffff88d53f7ebc24 R12: 00000783bf7347d8
[ 8262.434376] R13: 0000000000000006 R14: 0000000000000006 R15: ffff88d53bbf3d80
[ 8262.434384]  ? cpuidle_enter_state+0xa4/0x410
[ 8262.434388]  cpuidle_enter+0x29/0x40
[ 8262.434392]  do_idle+0x1e6/0x270
[ 8262.434397]  cpu_startup_entry+0x19/0x20
[ 8262.434402]  start_secondary+0x186/0x1d0
[ 8262.434406]  secondary_startup_64+0xb6/0xc0
[ 8262.434411] ---[ end trace 34ba773f4ac2247a ]---
[ 8262.434416] r8152 4-2.1.2:1.0 enp9s0u2u1u2: Tx timeout
[ 8262.434446] xhci_hcd 0000:09:00.0: xHCI host controller not responding, assume dead
[ 8262.434475] xhci_hcd 0000:09:00.0: HC died; cleaning up
[ 8262.434505] r8152 4-2.1.2:1.0 enp9s0u2u1u2: Tx status -108
[ 8262.434507] r8152 4-2.1.2:1.0 enp9s0u2u1u2: Tx status -108
[ 8262.434509] r8152 4-2.1.2:1.0 enp9s0u2u1u2: Tx status -108
[ 8262.434511] r8152 4-2.1.2:1.0 enp9s0u2u1u2: Tx status -108
[ 8262.434520] usb 3-2: USB disconnect, device number 2
[ 8262.434523] usb 3-2.1: USB disconnect, device number 3
[ 8262.434525] usb 3-2.1.1: USB disconnect, device number 7
[ 8262.434528] usb 3-2.1.1.4: USB disconnect, device number 11
[ 8262.434803] usb 4-2: USB disconnect, device number 2
[ 8262.434807] usb 4-2.1: USB disconnect, device number 3
[ 8262.434811] usb 4-2.1.2: USB disconnect, device number 5
[ 8262.470818] r8152 4-2.1.2:1.0 enp9s0u2u1u2: Invalid header when reading pass-thru MAC addr
[ 8262.470821] r8152 4-2.1.2:1.0 enp9s0u2u1u2: Get ether addr fail
[ 8262.487745] usb 3-2.1.5: USB disconnect, device number 10
[ 8262.487938] usb 3-2.3: USB disconnect, device number 4
[ 8262.487940] usb 3-2.3.3: USB disconnect, device number 6
[ 8262.518222] usb 4-2.3: USB disconnect, device number 4
[ 8262.530238] audit: type=1130 audit(1583918344.892:244): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=NetworkManager-dispatcher comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[ 8262.694394] usb 3-2.3.4: USB disconnect, device number 8
[ 8262.804447] usb 3-2.4: USB disconnect, device number 5
[ 8262.848332] usb 3-2.5: USB disconnect, device number 9
[ 8266.401910] device enp0s31f6 left promiscuous mode
[ 8266.401932] audit: type=1700 audit(1583918348.765:245): dev=enp0s31f6 prom=0 old_prom=256 auid=1000 uid=1000 gid=985 ses=2
[ 8268.776188] device enp0s31f6 entered promiscuous mode
[ 8268.776218] audit: type=1700 audit(1583918351.139:246): dev=enp0s31f6 prom=256 old_prom=0 auid=1000 uid=1000 gid=985 ses=2
[ 8272.599349] audit: type=1131 audit(1583918354.962:247): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=NetworkManager-dispatcher comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[ 8281.344914] device enp0s31f6 left promiscuous mode
...
lspci | grep 05:02.0
05:02.0 PCI bridge: Intel Corporation JHL7540 Thunderbolt 3 Bridge [Titan Ridge 4C 2018] (rev 06)

I'm running the latest kernel and also the latest bios for the Thinkpad X1 Extrem (gen1)

[sebastian@seb-arch ~]$ uname -a
Linux seb-arch 5.5.8-arch1-1 #1 SMP PREEMPT Fri, 06 Mar 2020 00:57:33 +0000 x86_64 GNU/Linux

From what I see in the logs, I assume that a problem on the powermanagement.  When is switches from D3Cold to D0.

Can I somehow disable the switching of the powerstate for specific device? 
I don't really care about more powerconsumption -The problem only happens on when my Laptop is connected to the docking station and its externally powered.

Kind regards,

Sebastian

Offline

Board footer

Powered by FluxBB