Bug 205119

Summary: It takes long time to wake up from s2idle on Dell XPS 7390 2-in-1
Product: Drivers Reporter: AceLan Kao (acelan)
Component: PCIAssignee: drivers_pci (drivers_pci)
Status: RESOLVED INVALID    
Severity: normal CC: nikodll, wendy.wang, ztuowen
Priority: P1    
Hardware: All   
OS: Linux   
Kernel Version: 5.4-rc2 Subsystem:
Regression: No Bisected commit-id:
Attachments: dmesg log

Description AceLan Kao 2019-10-08 02:56:27 UTC
Created attachment 285395 [details]
dmesg log

1. Enter s2idle at 28.39s
2. Press power button at 246.10s
3. The machine stuck until 412.30s and spit out thunderbolt warning messages
4. thunderbolt port keeps working after s2idle, plug-in Dell WD19TB dock(472.45s), and the "boltctl list" shows the dock info correctly.

BTW, I also found that there are 2 tbt ports on the machine, and if I plug in one TBT dock, and the wakeup time could be reduced by 80 seconds. And if I plug in 2 docks in both TBT ports, the machine wakes up from s2idle quick enough as the normal system.

I believe the 2 lines are related.
[  330.388604] thunderbolt 0000:00:0d.3: failed to send driver ready to ICM
[  412.308083] thunderbolt 0000:00:0d.2: failed to send driver ready to ICM
Comment 1 wendy.wang 2019-10-14 02:24:54 UTC
It should be the BIOS issue. 
Please contact Dell BIOS engineer to understand whether BIOS 1.0.9 08/02/2019 is based on the latest Intel reference BIOS code. 

If not, please try with the latest BIOS version (should base on the Intel reference BIOS code version newer than v3241).
Comment 2 AceLan Kao 2019-10-14 05:59:34 UTC
Yes, after upgraded the BIOS to v1.0.13, the issue is gone.
Sorry for the noise.