[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#790660: thinkpad yoga sometimes fails to suspend when xhci-pci is loaded



Package: src:linux
Version: 4.0.5-1
Severity: normal

on my thinkpad yoga, suspending sometimes doesn't work, and the device
gets stuck in a state of spinning fan, active LEDs but disabled screen,
not reacting to mouse or keyboard events.  fortunately, a roughly 2s
press on the power key wakes it up completely again.

the misbehavior happens roughtly on every second suspend, and can be
worked around by rmmod'ing the xhci-pci module before suspending.  i
can't pinpoint since when this has happened, as there are other suspend
issues on the same machine i'm trying to track down and tell apart.
i've observed the very same behavior using sysvinit and systemd; the
rmmod workarounds differ, but the behavior is identical.  as the boot
command line shows, this report is being written from inside systemd.

the below kernel log is the sniplet around a failed suspend. the
"[usbcore] returns -16" / "failed to syspend async: error -16" lines
(which have shown up exactly when an attempted suspend failed) were what
tipped me off towards rmmod'ing usb modules.


there have been other reports on usbcore returning -16 (#592767,
#588907), but as they were reported on ancient kernel versions, i assume
this is a different issue.

-- Package-specific info:
** Version:
Linux version 4.0.0-2-amd64 (debian-kernel@lists.debian.org) (gcc version 4.9.2 (Debian 4.9.2-21) ) #1 SMP Debian 4.0.5-1 (2015-06-16)

** Command line:
BOOT_IMAGE=/vmlinuz-4.0.0-2-amd64 root=/dev/mapper/root ro rootflags=subvol=debian-sid-root verbose thinkpad_acpi.fan_control=1 init=/bin/systemd

** Tainted: O (4096)
 * Out-of-tree module has been loaded.

** Kernel log:
[  518.959470] cfg80211:   (2457000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
[  518.959473] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (N/A, 2000 mBm), (N/A)
[  518.959475] cfg80211:   (5170000 KHz - 5250000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (N/A)
[  518.959478] cfg80211:   (5250000 KHz - 5330000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (0 s)
[  518.959480] cfg80211:   (5490000 KHz - 5730000 KHz @ 160000 KHz), (N/A, 2000 mBm), (0 s)
[  518.959482] cfg80211:   (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 2000 mBm), (N/A)
[  518.959484] cfg80211:   (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 0 mBm), (N/A)
[  520.157442] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[  524.181029] thinkpad_ec: thinkpad_ec_read_row: failed requesting row: (0x01:0x00)->0xfffffff0
[  524.181034] thinkpad_ec: initial ec test failed
[  526.327960] PM: Syncing filesystems ... done.
[  527.655513] PM: Preparing system for mem sleep
[  527.655829] (NULL device *): firmware: direct-loading firmware intel/ibt-hw-37.7.10-fw-1.80.2.3.d.bseq
[  527.655894] (NULL device *): firmware: direct-loading firmware iwlwifi-7260-10.ucode
[  527.655912] Freezing user space processes ... (elapsed 0.001 seconds) done.
[  527.657737] Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done.
[  527.658912] PM: Entering mem sleep
[  527.658940] Suspending console(s) (use no_console_suspend to debug)
[  527.860577] sd 1:0:0:0: [sdb] Synchronizing SCSI cache
[  527.860597] sd 0:0:0:0: [sda] Synchronizing SCSI cache
[  527.860697] sd 1:0:0:0: [sdb] Stopping disk
[  527.860698] sd 0:0:0:0: [sda] Stopping disk
[  528.101604] pci_pm_suspend(): hcd_pci_suspend+0x0/0x30 [usbcore] returns -16
[  528.101611] dpm_run_callback(): pci_pm_suspend+0x0/0x160 returns -16
[  528.101613] PM: Device 0000:00:14.0 failed to suspend async: error -16
[  528.444484] PM: Some devices failed to suspend, or early wake event detected
[  528.445258] sd 0:0:0:0: [sda] Starting disk
[  528.445285] sd 1:0:0:0: [sdb] Starting disk
[  528.446003] rtc_cmos 00:01: System wakeup disabled by ACPI
[  528.469124] tpm_tis 00:06: TPM is disabled/deactivated (0x6)
[  528.760923] ata2: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
[  528.761345] ata2.00: ACPI cmd ef/02:00:00:00:00:a0 (SET FEATURES) succeeded
[  528.761347] ata2.00: ACPI cmd f5/00:00:00:00:00:a0 (SECURITY FREEZE LOCK) filtered out
[  528.762174] ata2.00: ACPI cmd ef/02:00:00:00:00:a0 (SET FEATURES) succeeded
[  528.762176] ata2.00: ACPI cmd f5/00:00:00:00:00:a0 (SECURITY FREEZE LOCK) filtered out
[  528.762272] ata2.00: configured for UDMA/133
[  528.776891] ahci 0000:00:1f.2: port does not support device sleep
[  529.102636] psmouse serio1: synaptics: queried max coordinates: x [..5710], y [..4696]
[  529.153590] psmouse serio1: synaptics: queried min coordinates: x [1232..], y [1156..]
[  529.153596] psmouse serio1: synaptics: quirked min/max coordinates: x [1232..5710], y [1156..4696]
[  529.564493] PM: resume of devices complete after 1120.759 msecs
[  529.564988] PM: Finishing wakeup.
[  529.564993] Restarting tasks ... done.
[  529.825558] PM: Syncing filesystems ... done.
[  531.884434] PM: Preparing system for freeze sleep
[  531.884557] Freezing user space processes ... (elapsed 0.001 seconds) done.
[  531.886064] Freezing remaining freezable tasks ... (elapsed 0.000 seconds) done.

** Model information
sys_vendor: LENOVO
product_name: 20CD0035GE
product_version: ThinkPad S1 Yoga
chassis_vendor: LENOVO
chassis_version: Not Available
bios_vendor: LENOVO
bios_version: GQET34WW (1.14 )
board_vendor: LENOVO
board_name: 20CD0035GE
board_version: SDK0E50512 Std

** Loaded modules:
xhci_pci
rfcomm
ctr
ccm
bnep
binfmt_misc
cpufreq_userspace
cpufreq_stats
cpufreq_powersave
cpufreq_conservative
pci_stub
vboxpci(O)
vboxnetadp(O)
vboxnetflt(O)
vboxdrv(O)
nls_utf8
nls_cp437
vfat
fat
ext4
mbcache
jbd2
msr
acpi_call(O)
hid_sensor_accel_3d
hid_sensor_incl_3d
hid_sensor_als
hid_sensor_magn_3d
hid_sensor_rotation
hid_sensor_gyro_3d
hid_sensor_trigger
hid_sensor_iio_common
industrialio_triggered_buffer
uvcvideo
videobuf2_vmalloc
kfifo_buf
industrialio
videobuf2_memops
iTCO_wdt
videobuf2_core
iTCO_vendor_support
v4l2_common
videodev
btusb
hid_sensor_hub
media
x86_pkg_temp_thermal
joydev
arc4
hid_multitouch
snd_hda_codec_hdmi
snd_hda_codec_conexant
snd_hda_codec_generic
intel_powerclamp
intel_rapl
iosf_mbi
bluetooth
snd_hda_intel
coretemp
snd_hda_controller
crc16
snd_hda_codec
iwlmvm
mac80211
kvm_intel
snd_hwdep
snd_pcm
iwlwifi
kvm
snd_timer
thinkpad_acpi
nvram
efi_pstore
i2c_i801
mei_me
evdev
pcspkr
i915
psmouse
serio_raw
lpc_ich
snd
efivars
drm_kms_helper
drm
i2c_algo_bit
rtsx_pci_ms
memstick
mei
soundcore
cfg80211
shpchp
rfkill
sg
intel_smartconnect
wmi
tpm_tis
tpm
battery
ac
video
button
processor
cuse
fuse
parport_pc
ppdev
lp
parport
efivarfs
autofs4
btrfs
xor
raid6_pq
algif_skcipher
af_alg
wacom
dm_crypt
dm_mod
md_mod
usbhid
hid
sd_mod
rtsx_pci_sdmmc
mmc_core
crct10dif_pclmul
crc32_pclmul
crc32c_intel
ghash_clmulni_intel
xhci_hcd
ahci
libahci
aesni_intel
aes_x86_64
lrw
gf128mul
glue_helper
ablk_helper
libata
cryptd
usbcore
rtsx_pci
scsi_mod
mfd_core
usb_common
thermal
thermal_sys

** PCI devices:
00:00.0 Host bridge [0600]: Intel Corporation Haswell-ULT DRAM Controller [8086:0a04] (rev 09)
	Subsystem: Lenovo Device [17aa:2217]
	Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
	Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort+ >SERR- <PERR- INTx-
	Latency: 0
	Capabilities: <access denied>

00:02.0 VGA compatible controller [0300]: Intel Corporation Haswell-ULT Integrated Graphics Controller [8086:0a16] (rev 09) (prog-if 00 [VGA controller])
	Subsystem: Lenovo Device [17aa:2217]
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
	Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 0
	Interrupt: pin A routed to IRQ 43
	Region 0: Memory at f0000000 (64-bit, non-prefetchable) [size=4M]
	Region 2: Memory at e0000000 (64-bit, prefetchable) [size=256M]
	Region 4: I/O ports at 3000 [size=64]
	Expansion ROM at <unassigned> [disabled]
	Capabilities: <access denied>
	Kernel driver in use: i915

00:03.0 Audio device [0403]: Intel Corporation Haswell-ULT HD Audio Controller [8086:0a0c] (rev 09)
	Subsystem: Lenovo Device [17aa:2217]
	Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
	Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 0, Cache Line Size: 64 bytes
	Interrupt: pin A routed to IRQ 42
	Region 0: Memory at f0610000 (64-bit, non-prefetchable) [size=16K]
	Capabilities: <access denied>
	Kernel driver in use: snd_hda_intel

00:14.0 USB controller [0c03]: Intel Corporation 8 Series USB xHCI HC [8086:9c31] (rev 04) (prog-if 30 [XHCI])
	Subsystem: Lenovo Device [17aa:2217]
	Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
	Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 0
	Interrupt: pin A routed to IRQ 47
	Region 0: Memory at f0600000 (64-bit, non-prefetchable) [size=64K]
	Capabilities: <access denied>
	Kernel driver in use: xhci_hcd

00:16.0 Communication controller [0780]: Intel Corporation 8 Series HECI #0 [8086:9c3a] (rev 04)
	Subsystem: Lenovo Device [17aa:2217]
	Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
	Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 0
	Interrupt: pin A routed to IRQ 44
	Region 0: Memory at f0619000 (64-bit, non-prefetchable) [size=32]
	Capabilities: <access denied>
	Kernel driver in use: mei_me

00:1b.0 Audio device [0403]: Intel Corporation 8 Series HD Audio Controller [8086:9c20] (rev 04)
	Subsystem: Lenovo Device [17aa:2217]
	Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
	Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 0, Cache Line Size: 64 bytes
	Interrupt: pin A routed to IRQ 46
	Region 0: Memory at f0614000 (64-bit, non-prefetchable) [size=16K]
	Capabilities: <access denied>
	Kernel driver in use: snd_hda_intel

00:1c.0 PCI bridge [0604]: Intel Corporation 8 Series PCI Express Root Port 1 [8086:9c10] (rev e4) (prog-if 00 [Normal decode])
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
	Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 0, Cache Line Size: 64 bytes
	Bus: primary=00, secondary=02, subordinate=02, sec-latency=0
	Secondary status: 66MHz- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- <SERR- <PERR-
	BridgeCtl: Parity- SERR- NoISA- VGA- MAbort- >Reset- FastB2B-
		PriDiscTmr- SecDiscTmr- DiscTmrStat- DiscTmrSERREn-
	Capabilities: <access denied>
	Kernel driver in use: pcieport

00:1c.2 PCI bridge [0604]: Intel Corporation 8 Series PCI Express Root Port 3 [8086:9c14] (rev e4) (prog-if 00 [Normal decode])
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
	Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 0, Cache Line Size: 64 bytes
	Bus: primary=00, secondary=04, subordinate=04, sec-latency=0
	Memory behind bridge: f0500000-f05fffff
	Secondary status: 66MHz- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- <SERR- <PERR-
	BridgeCtl: Parity- SERR- NoISA- VGA- MAbort- >Reset- FastB2B-
		PriDiscTmr- SecDiscTmr- DiscTmrStat- DiscTmrSERREn-
	Capabilities: <access denied>
	Kernel driver in use: pcieport

00:1c.3 PCI bridge [0604]: Intel Corporation 8 Series PCI Express Root Port 4 [8086:9c16] (rev e4) (prog-if 00 [Normal decode])
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
	Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 0, Cache Line Size: 64 bytes
	Bus: primary=00, secondary=05, subordinate=05, sec-latency=0
	Memory behind bridge: f0400000-f04fffff
	Secondary status: 66MHz- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- <SERR- <PERR-
	BridgeCtl: Parity- SERR- NoISA- VGA- MAbort- >Reset- FastB2B-
		PriDiscTmr- SecDiscTmr- DiscTmrStat- DiscTmrSERREn-
	Capabilities: <access denied>
	Kernel driver in use: pcieport

00:1f.0 ISA bridge [0601]: Intel Corporation 8 Series LPC Controller [8086:9c43] (rev 04)
	Subsystem: Lenovo Device [17aa:2217]
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
	Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 0
	Capabilities: <access denied>
	Kernel driver in use: lpc_ich

00:1f.2 SATA controller [0106]: Intel Corporation 8 Series SATA Controller 1 [AHCI mode] [8086:9c03] (rev 04) (prog-if 01 [AHCI 1.0])
	Subsystem: Lenovo Device [17aa:2217]
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
	Status: Cap+ 66MHz+ UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 0
	Interrupt: pin B routed to IRQ 41
	Region 0: I/O ports at 3088 [size=8]
	Region 1: I/O ports at 3094 [size=4]
	Region 2: I/O ports at 3080 [size=8]
	Region 3: I/O ports at 3090 [size=4]
	Region 4: I/O ports at 3060 [size=32]
	Region 5: Memory at f061c000 (32-bit, non-prefetchable) [size=2K]
	Capabilities: <access denied>
	Kernel driver in use: ahci

00:1f.3 SMBus [0c05]: Intel Corporation 8 Series SMBus Controller [8086:9c22] (rev 04)
	Subsystem: Lenovo Device [17aa:2217]
	Control: I/O+ Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
	Status: Cap- 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Interrupt: pin C routed to IRQ 18
	Region 0: Memory at f0618000 (64-bit, non-prefetchable) [size=256]
	Region 4: I/O ports at efa0 [size=32]

04:00.0 Network controller [0280]: Intel Corporation Wireless 7260 [8086:08b2] (rev 83)
	Subsystem: Intel Corporation Dual Band Wireless-AC 7260 [8086:4270]
	Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
	Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 0, Cache Line Size: 64 bytes
	Interrupt: pin A routed to IRQ 45
	Region 0: Memory at f0500000 (64-bit, non-prefetchable) [size=8K]
	Capabilities: <access denied>
	Kernel driver in use: iwlwifi

05:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS5227 PCI Express Card Reader [10ec:5227] (rev 01)
	Subsystem: Lenovo Device [17aa:2217]
	Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
	Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 0, Cache Line Size: 64 bytes
	Interrupt: pin A routed to IRQ 40
	Region 0: Memory at f0400000 (32-bit, non-prefetchable) [size=4K]
	Capabilities: <access denied>
	Kernel driver in use: rtsx_pci


** USB devices:
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 006: ID 056a:00ec Wacom Co., Ltd 
Bus 001 Device 005: ID 0483:91d1 STMicroelectronics 
Bus 001 Device 004: ID 0bda:5720 Realtek Semiconductor Corp. 
Bus 001 Device 003: ID 04f3:0254 Elan Microelectronics Corp. 
Bus 001 Device 002: ID 8087:07dc Intel Corp. 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub


-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.0.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)

Versions of packages linux-image-4.0.0-2-amd64 depends on:
ii  debconf [debconf-2.0]                   1.5.56
ii  initramfs-tools [linux-initramfs-tool]  0.120
ii  kmod                                    20-1
ii  linux-base                              3.5

Versions of packages linux-image-4.0.0-2-amd64 recommends:
ii  firmware-linux-free  3.3
ii  irqbalance           1.0.6-3

Versions of packages linux-image-4.0.0-2-amd64 suggests:
pn  debian-kernel-handbook  <none>
ii  extlinux                3:6.03+dfsg-7
ii  grub-efi                2.02~beta2-26
ii  linux-doc-4.0           4.0.5-1

Versions of packages linux-image-4.0.0-2-amd64 is related to:
pn  firmware-atheros        <none>
pn  firmware-bnx2           <none>
pn  firmware-bnx2x          <none>
pn  firmware-brcm80211      <none>
pn  firmware-intelwimax     <none>
pn  firmware-ipw2x00        <none>
pn  firmware-ivtv           <none>
ii  firmware-iwlwifi        0.44
pn  firmware-libertas       <none>
pn  firmware-linux          <none>
ii  firmware-linux-nonfree  0.44
pn  firmware-myricom        <none>
pn  firmware-netxen         <none>
pn  firmware-qlogic         <none>
pn  firmware-ralink         <none>
pn  firmware-realtek        <none>
pn  xen-hypervisor          <none>

-- debconf information:
  linux-image-4.0.0-2-amd64/postinst/mips-initrd-4.0.0-2-amd64:
  linux-image-4.0.0-2-amd64/postinst/depmod-error-initrd-4.0.0-2-amd64: false
  linux-image-4.0.0-2-amd64/prerm/removing-running-kernel-4.0.0-2-amd64: true

-- 
To use raw power is to make yourself infinitely vulnerable to greater powers.
  -- Bene Gesserit axiom

Attachment: signature.asc
Description: Digital signature


Reply to: