Bug 203265

Summary: boot/suspend/resume performance: slow suspend/resume in pceiport device on Dell XPS13 9380
Product: Power Management Reporter: Todd Brandt (todd.e.brandt)
Component: Hibernation/SuspendAssignee: Zhang Rui (rui.zhang)
Status: NEEDINFO ---    
Severity: normal CC: lenb, rui.zhang
Priority: P1    
Hardware: Intel   
OS: Linux   
Kernel Version: 5.0.0 Subsystem:
Regression: No Bisected commit-id:
Bug Depends on:    
Bug Blocks: 178231    
Attachments: dell-XPS-13-9380_freeze.html
dell-XPS-13-9380_mem.html
issue.def
issue.def
issue.def

Description Todd Brandt 2019-04-10 23:30:18 UTC
Created attachment 282307 [details]
dell-XPS-13-9380_freeze.html

The pcieport device takes almost 2 seconds to suspend and 1.5 seconds to resume on the Dell XPS 13 9380. The time is taken executing the ON/OFF code for this BIOS function:

Suspend:
acpi_ps_execute_method(fullpath=\_SB.PCI0.RP09.PXP._OFF) ret=0x4001 (2076.271ms)

Resume:
acpi_ps_execute_method(fullpath=\_SB.PCI0.RP09.PXP._ON) ret=0x4001 (1582.116ms)

See the attached timeline.

BIOS info:
bios-release-date       : 06/21/2018
bios-vendor             : Dell Inc.
bios-version            : 99.2.10[W10]
Comment 1 Zhang Rui 2019-04-18 07:25:51 UTC
please attach the output of lspci -tv and this can show what the pcieport actually connects.
Comment 2 Todd Brandt 2019-04-19 12:30:34 UTC
Created attachment 282411 [details]
dell-XPS-13-9380_mem.html

Here's a timeline from 5.1.0-rc4 where the _ON call happens in usb4 and took 1.6 Sec.
Comment 3 Todd Brandt 2019-04-26 02:37:09 UTC
Created attachment 282533 [details]
issue.def
Comment 4 Todd Brandt 2019-05-09 12:28:45 UTC
Created attachment 282697 [details]
issue.def

applies to more than dell machines
Comment 5 Todd Brandt 2019-05-09 13:45:10 UTC
Created attachment 282701 [details]
issue.def

applies to more than dell machines, changing the maximum time to 100ms
Comment 6 Zhang Rui 2019-09-03 07:18:54 UTC
need to see how the things are going in the latest suspend stress test.
Comment 7 Len Brown 2019-10-02 23:58:39 UTC
For 100ms criteria:
# function call time more than N ms
calltime: acpi_ps_execute_method(fullpath=\\_SB\.PCI0\.RP09\.PXP\._O[NF]*) > 100


We see this on these machines in 5.3.0:

5.3.0+	otcpl-dell-7390-cmlu	freeze-x2618	2618	100.00%
5.3.0+	otcpl-whl-u	mem-x2497	2497	100.00%
5.3.0+	otcpl-dell-9380-cfl	freeze-x2441	2441	100.00%
5.3.0+	otcpl-dell-7390-cmlu	mem-x2386	2386	100.00%
5.3.0+	otcpl-dell-9380-cfl	mem-x2053	2053	100.00%
5.3.0+	otcpl-icl-u-2	mem-x2571	2	0.08%