Bug 1241375

Summary: dell xps fails to suspend
Product: [Fedora] Fedora Reporter: ramez hanna <ramez.hanna>
Component: kernelAssignee: Kernel Maintainer List <kernel-maint>
Status: CLOSED INSUFFICIENT_DATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 22CC: gansalmon, itamar, jonathan, kernel-maint, madhu.chinakonda, mchehab, ramez.hanna, rpolli
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-11-23 17:12:48 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Description Flags
dmesg log
dmesg from boot
lspci output none

Description ramez hanna 2015-07-09 06:45:25 UTC
Created attachment 1050111 [details]
dmesg log

Description of problem:
Dell XPS 13 fails to suspend randomly

Version-Release number of selected component (if applicable):
kernel 4.0.6-300.fc22.x86_64
How reproducible:
50% of the time

Steps to Reproduce:
1. systemctl suspend

Actual results:
sometimes it fails to suspend and wakes up

Expected results:

Additional info:
attached is a dmesg log correlating with the issue

the part that ismost relevant IMO

[154209.076171] pci_pm_suspend(): hcd_pci_suspend+0x0/0x30 returns -16
[154209.076175] dpm_run_callback(): pci_pm_suspend+0x0/0x170 returns -16
[154209.076178] PM: Device 0000:00:14.0 failed to suspend async: error -16
[154210.807576] PM: Some devices failed to suspend, or early wake event detected

Comment 1 Josh Boyer 2015-07-09 11:56:17 UTC
Please provide a full dmesg from a fresh boot, and the output of "lspci -nnvv"

Comment 2 ramez hanna 2015-07-20 14:20:29 UTC
Created attachment 1053923 [details]
dmesg from boot

Comment 3 ramez hanna 2015-07-20 14:20:57 UTC
Created attachment 1053925 [details]
lspci output

Comment 4 ramez hanna 2015-07-20 22:30:27 UTC
[root ~]\>$ cat /proc/acpi/wakeup 
Device  S-state   Status   Sysfs node
P0P1      S4    *disabled
GLAN      S4    *disabled
EHC1      S4    *enabled   pci:0000:00:1d.0
EHC2      S4    *disabled
XHC       S4    *enabled   pci:0000:00:14.0
HDEF      S4    *disabled  pci:0000:00:1b.0
TPD4      S4    *disabled
TPD7      S0    *disabled
TPD8      S0    *disabled
RP01      S4    *disabled  pci:0000:00:1c.0
PXSX      S4    *disabled
RP02      S4    *disabled
PXSX      S4    *disabled
RP03      S4    *disabled  pci:0000:00:1c.2
PXSX      S4    *disabled  pci:0000:02:00.0
RP04      S4    *disabled
PXSX      S4    *disabled
RP05      S4    *disabled
PXSX      S4    *disabled
RP06      S4    *disabled
PXSX      S4    *disabled
RP07      S4    *disabled
PXSX      S4    *disabled
RP08      S4    *disabled
PXSX      S4    *disabled
PEG0      S4    *disabled
PEGP      S4    *disabled
PEG1      S4    *disabled
PEG2      S4    *disabled
LID0      S3    *enabled   platform:PNP0C0D:00

suspend fails

[root ~]\>$ echo XHC > /proc/acpi/wakeup
[root ~]\>$ cat /proc/acpi/wakeup 
Device  S-state   Status   Sysfs node
P0P1      S4    *disabled
GLAN      S4    *disabled
EHC1      S4    *enabled   pci:0000:00:1d.0
EHC2      S4    *disabled
XHC       S4    *disabled  pci:0000:00:14.0
HDEF      S4    *disabled  pci:0000:00:1b.0
TPD4      S4    *disabled
TPD7      S0    *disabled

now it works

Comment 5 Justin M. Forbes 2015-10-20 19:23:04 UTC
*********** MASS BUG UPDATE **************

We apologize for the inconvenience.  There is a large number of bugs to go through and several of them have gone stale.  Due to this, we are doing a mass bug update across all of the Fedora 22 kernel bugs.

Fedora 22 has now been rebased to 4.2.3-200.fc22.  Please test this kernel update (or newer) and let us know if you issue has been resolved or if it is still present with the newer kernel.

If you have moved on to Fedora 23, and are still experiencing this issue, please change the version to Fedora 23.

If you experience different issues, please open a new bug report for those.

Comment 6 Fedora Kernel Team 2015-11-23 17:12:48 UTC
*********** MASS BUG UPDATE **************
This bug is being closed with INSUFFICIENT_DATA as there has not been a response in over 4 weeks. If you are still experiencing this issue, please reopen and attach the relevant data from the latest kernel you are running and any data that might have been requested previously.

Comment 7 Roberto Polli 2017-11-07 13:16:07 UTC
A possible fix:

add this script in /usr/lib/systemd/system-sleep/xhci.sh  that disable/reenable XHCI at suspend/resume.