You are not logged in.

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

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

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: 9

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: 9

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: 9

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: 23

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: 9

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: 23

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: 9

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: 23

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

Board footer

Powered by FluxBB