Comment 0 for bug 1775875

Revision history for this message
Roman (malro) wrote : Lenovo X1 Carbon 5th fails to suspend after detaching dock station

lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04 LTS
Release: 18.04
Codename: bionic

uname -r
4.15.0-22-generic

How to reproduce:
1) connect dock station
2) disconnect dock station
3) type: systemctl suspend

Result: system doesn't respond. Only Alt + Print Screen + SUB works.

There is a workaround for this issue - disable USB for thunderbolt 3 in BIOS. But this is slightly an overkill.

Error from kern.log:

Jun 4 12:09:33 ya-x1 kernel: [ 375.060038] pcieport 0000:0a:03.0: Refused to change power state, currently in D3
Jun 4 12:09:33 ya-x1 kernel: [ 375.061527] xhci_hcd 0000:0d:00.0: remove, state 1
Jun 4 12:09:33 ya-x1 kernel: [ 375.061532] usb usb6: USB disconnect, device number 1
Jun 4 12:09:33 ya-x1 kernel: [ 375.061533] usb 6-1: USB disconnect, device number 2
Jun 4 12:09:33 ya-x1 kernel: [ 375.061572] xhci_hcd 0000:0d:00.0: xHCI host controller not responding, assume dead
Jun 4 12:09:33 ya-x1 kernel: [ 375.061578] r8152 6-1:1.0 enx0050b68eac7d: Stop submitting intr, status -108
Jun 4 12:09:33 ya-x1 kernel: [ 375.116210] xhci_hcd 0000:0d:00.0: USB bus 6 deregistered
Jun 4 12:09:33 ya-x1 kernel: [ 375.116217] xhci_hcd 0000:0d:00.0: remove, state 1
Jun 4 12:09:33 ya-x1 kernel: [ 375.116220] usb usb5: USB disconnect, device number 1
Jun 4 12:09:33 ya-x1 kernel: [ 375.116222] usb 5-3: USB disconnect, device number 3
Jun 4 12:09:33 ya-x1 kernel: [ 375.117197] xhci_hcd 0000:0d:00.0: Host halt failed, -19
Jun 4 12:09:33 ya-x1 kernel: [ 375.117199] xhci_hcd 0000:0d:00.0: Host not accessible, reset failed.
Jun 4 12:09:33 ya-x1 kernel: [ 375.117307] xhci_hcd 0000:0d:00.0: USB bus 5 deregistered
Jun 4 12:09:33 ya-x1 kernel: [ 375.147887] pcieport 0000:0a:02.0: Refused to change power state, currently in D3
Jun 4 12:09:33 ya-x1 kernel: [ 375.149415] pcieport 0000:0a:01.0: Refused to change power state, currently in D3
Jun 4 12:09:33 ya-x1 kernel: [ 375.150959] xhci_hcd 0000:0b:00.0: remove, state 4
Jun 4 12:09:33 ya-x1 kernel: [ 375.150965] usb usb4: USB disconnect, device number 1
Jun 4 12:09:33 ya-x1 kernel: [ 375.151217] xhci_hcd 0000:0b:00.0: USB bus 4 deregistered
Jun 4 12:09:33 ya-x1 kernel: [ 375.151223] xhci_hcd 0000:0b:00.0: xHCI host controller not responding, assume dead
Jun 4 12:09:33 ya-x1 kernel: [ 375.151230] xhci_hcd 0000:0b:00.0: remove, state 1
Jun 4 12:09:33 ya-x1 kernel: [ 375.151233] usb usb3: USB disconnect, device number 1
Jun 4 12:09:33 ya-x1 kernel: [ 375.151234] usb 3-1: USB disconnect, device number 2
Jun 4 12:09:33 ya-x1 kernel: [ 375.192843] usb 3-4: USB disconnect, device number 3
Jun 4 12:09:33 ya-x1 kernel: [ 375.194286] BUG: unable to handle kernel NULL pointer dereference at 0000000000000034
Jun 4 12:09:33 ya-x1 kernel: [ 375.194294] IP: tty_unregister_driver+0xd/0x70
Jun 4 12:09:33 ya-x1 kernel: [ 375.194295] PGD 0 P4D 0
Jun 4 12:09:33 ya-x1 kernel: [ 375.194298] Oops: 0000 [#1] SMP PTI
Jun 4 12:09:33 ya-x1 kernel: [ 375.194300] Modules linked in: cdc_ether usbnet r8152 mii hid_generic snd_usb_audio usbhid snd_usbmidi_lib ccm thunderbolt bnep snd_hda_codec_hdmi snd_hda_codec_conexant snd_hda_codec_generic nls_iso8859_1 intel_rapl x86_pkg_temp_thermal intel_powerclamp coretemp arc4 kvm_intel snd_soc_skl kvm snd_soc_skl_ipc snd_hda_ext_core snd_soc_sst_dsp irqbypass snd_soc_sst_ipc crct10dif_pclmul snd_soc_acpi crc32_pclmul snd_soc_core ghash_clmulni_intel snd_compress ac97_bus pcbc snd_pcm_dmaengine snd_seq_midi snd_hda_intel snd_hda_codec snd_seq_midi_event snd_hda_core snd_hwdep aesni_intel uvcvideo snd_rawmidi aes_x86_64 input_leds crypto_simd glue_helper snd_pcm videobuf2_vmalloc cryptd intel_cstate intel_rapl_perf videobuf2_memops iwlmvm videobuf2_v4l2 joydev mac80211 serio_raw btusb videobuf2_core snd_seq
Jun 4 12:09:33 ya-x1 kernel: [ 375.194335] thinkpad_acpi btrtl btbcm intel_wmi_thunderbolt wmi_bmof btintel nvram iwlwifi rtsx_pci_ms videodev bluetooth snd_seq_device snd_timer media cfg80211 memstick snd ecdh_generic mei_me mei intel_pch_thermal ucsi_acpi shpchp typec_ucsi typec soundcore mac_hid acpi_pad tpm_crb sch_fq_codel parport_pc ppdev lp parport ip_tables x_tables autofs4 rtsx_pci_sdmmc i915 i2c_algo_bit drm_kms_helper syscopyarea sysfillrect sysimgblt fb_sys_fops e1000e psmouse ptp nvme pps_core nvme_core drm rtsx_pci wmi i2c_hid video hid
Jun 4 12:09:33 ya-x1 kernel: [ 375.194366] CPU: 0 PID: 4588 Comm: kworker/u8:3 Not tainted 4.15.0-22-generic #24-Ubuntu
Jun 4 12:09:33 ya-x1 kernel: [ 375.194367] Hardware name: LENOVO 20HQS47H00/20HQS47H00, BIOS N1MET46W (1.31 ) 03/02/2018
Jun 4 12:09:33 ya-x1 kernel: [ 375.194372] Workqueue: kacpi_hotplug acpi_hotplug_work_fn
Jun 4 12:09:33 ya-x1 kernel: [ 375.194375] RIP: 0010:tty_unregister_driver+0xd/0x70
Jun 4 12:09:33 ya-x1 kernel: [ 375.194376] RSP: 0018:ffffa935841afaf0 EFLAGS: 00010246
Jun 4 12:09:33 ya-x1 kernel: [ 375.194378] RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000
Jun 4 12:09:33 ya-x1 kernel: [ 375.194379] RDX: ffff9c5c59261780 RSI: ffffef381192a880 RDI: 0000000000000000
Jun 4 12:09:33 ya-x1 kernel: [ 375.194381] RBP: ffffa935841afaf8 R08: ffff9c5c64aa2c38 R09: 00000001801e000e
Jun 4 12:09:33 ya-x1 kernel: [ 375.194382] R10: ffffef380fcb4200 R11: 0000000000000000 R12: ffff9c5bf79ce230
Jun 4 12:09:33 ya-x1 kernel: [ 375.194383] R13: ffff9c5bf79ce27c R14: ffff9c5bf79ce390 R15: 0000000000000060
Jun 4 12:09:33 ya-x1 kernel: [ 375.194385] FS: 0000000000000000(0000) GS:ffff9c5ca1400000(0000) knlGS:0000000000000000
Jun 4 12:09:33 ya-x1 kernel: [ 375.194387] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
Jun 4 12:09:33 ya-x1 kernel: [ 375.194388] CR2: 0000000000000034 CR3: 000000033340a004 CR4: 00000000003606f0
Jun 4 12:09:33 ya-x1 kernel: [ 375.194390] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
Jun 4 12:09:33 ya-x1 kernel: [ 375.194391] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Jun 4 12:09:33 ya-x1 kernel: [ 375.194392] Call Trace:
Jun 4 12:09:33 ya-x1 kernel: [ 375.194397] xhci_dbc_tty_unregister_driver+0x15/0x30
Jun 4 12:09:33 ya-x1 kernel: [ 375.194399] xhci_dbc_exit+0x2e/0x50
Jun 4 12:09:33 ya-x1 kernel: [ 375.194402] xhci_stop+0x5b/0x1e0
Jun 4 12:09:33 ya-x1 kernel: [ 375.194404] usb_remove_hcd+0x105/0x250
Jun 4 12:09:33 ya-x1 kernel: [ 375.194407] usb_hcd_pci_remove+0x74/0x130
Jun 4 12:09:33 ya-x1 kernel: [ 375.194409] xhci_pci_remove+0x6b/0x70
Jun 4 12:09:33 ya-x1 kernel: [ 375.194412] pci_device_remove+0x3e/0xb0
Jun 4 12:09:33 ya-x1 kernel: [ 375.194415] device_release_driver_internal+0x15b/0x220
Jun 4 12:09:33 ya-x1 kernel: [ 375.194417] device_release_driver+0x12/0x20
Jun 4 12:09:33 ya-x1 kernel: [ 375.194420] pci_stop_bus_device+0x7f/0xa0
Jun 4 12:09:33 ya-x1 kernel: [ 375.194422] pci_stop_bus_device+0x30/0xa0
Jun 4 12:09:33 ya-x1 kernel: [ 375.194424] pci_stop_bus_device+0x41/0xa0
Jun 4 12:09:33 ya-x1 kernel: [ 375.194426] pci_stop_and_remove_bus_device+0x12/0x20
Jun 4 12:09:33 ya-x1 kernel: [ 375.194429] trim_stale_devices+0x11d/0x150
Jun 4 12:09:33 ya-x1 kernel: [ 375.194432] trim_stale_devices+0xa9/0x150
Jun 4 12:09:33 ya-x1 kernel: [ 375.194434] trim_stale_devices+0xbb/0x150
Jun 4 12:09:33 ya-x1 kernel: [ 375.194436] ? get_slot_status+0xa3/0xe0
Jun 4 12:09:33 ya-x1 kernel: [ 375.194438] acpiphp_check_bridge.part.7+0x100/0x140
Jun 4 12:09:33 ya-x1 kernel: [ 375.194440] acpiphp_hotplug_notify+0x18e/0x220
Jun 4 12:09:33 ya-x1 kernel: [ 375.194443] ? free_bridge+0x100/0x100
Jun 4 12:09:33 ya-x1 kernel: [ 375.194445] acpi_device_hotplug+0xa4/0x4b0
Jun 4 12:09:33 ya-x1 kernel: [ 375.194447] acpi_hotplug_work_fn+0x1e/0x30
Jun 4 12:09:33 ya-x1 kernel: [ 375.194450] process_one_work+0x1de/0x410
Jun 4 12:09:33 ya-x1 kernel: [ 375.194452] worker_thread+0x32/0x410
Jun 4 12:09:33 ya-x1 kernel: [ 375.194455] kthread+0x121/0x140
Jun 4 12:09:33 ya-x1 kernel: [ 375.194456] ? process_one_work+0x410/0x410
Jun 4 12:09:33 ya-x1 kernel: [ 375.194459] ? kthread_create_worker_on_cpu+0x70/0x70
Jun 4 12:09:33 ya-x1 kernel: [ 375.194462] ret_from_fork+0x35/0x40
Jun 4 12:09:33 ya-x1 kernel: [ 375.194463] Code: c2 1f 33 74 9f 48 c7 c7 d0 0d c4 9f e8 ed 92 ee ff 48 89 df e8 c5 c6 c6 ff 5b 5d c3 66 90 0f 1f 44 00 00 55 48 89 e5 53 48 89 fb <8b> 77 34 8b 7f 2c c1 e7 14 0b 7b 30 e8 62 14 ca ff 48 c7 c7 e0
Jun 4 12:09:33 ya-x1 kernel: [ 375.194503] RIP: tty_unregister_driver+0xd/0x70 RSP: ffffa935841afaf0
Jun 4 12:09:33 ya-x1 kernel: [ 375.194504] CR2: 0000000000000034
Jun 4 12:09:33 ya-x1 kernel: [ 375.194506] ---[ end trace 38139ba5c9de0063 ]---
Jun 4 12:09:34 ya-x1 kernel: [ 375.730916] thinkpad_acpi: EC reports that Thermal Table has changed
Jun 4 12:10:00 ya-x1 kernel: [ 401.621461] wlp4s0: deauthenticating from 2c:d0:2d:6b:10:6f by local choice (Reason: 3=DEAUTH_LEAVING)
Jun 4 12:10:00 ya-x1 kernel: [ 401.636505] wlp4s0: failed to remove key (1, ff:ff:ff:ff:ff:ff) from hardware (-22)
Jun 4 12:10:00 ya-x1 kernel: [ 401.787737] PM: suspend entry (deep)