Bug 203265 - boot/suspend/resume performance: slow suspend/resume in pceiport device on Dell XPS13 9380
Summary: boot/suspend/resume performance: slow suspend/resume in pceiport device on De...
Status: NEEDINFO
Alias: None
Product: Power Management
Classification: Unclassified
Component: Hibernation/Suspend (show other bugs)
Hardware: Intel Linux
: P1 normal
Assignee: Zhang Rui
URL:
Keywords:
Depends on:
Blocks: 178231
  Show dependency tree
 
Reported: 2019-04-10 23:30 UTC by Todd Brandt
Modified: 2021-03-12 01:58 UTC (History)
2 users (show)

See Also:
Kernel Version: 5.0.0
Subsystem:
Regression: No
Bisected commit-id:


Attachments
dell-XPS-13-9380_freeze.html (803.31 KB, text/html)
2019-04-10 23:30 UTC, Todd Brandt
Details
dell-XPS-13-9380_mem.html (571.74 KB, text/html)
2019-04-19 12:30 UTC, Todd Brandt
Details
issue.def (554 bytes, text/plain)
2019-04-26 02:37 UTC, Todd Brandt
Details
issue.def (515 bytes, text/plain)
2019-05-09 12:28 UTC, Todd Brandt
Details
issue.def (515 bytes, text/plain)
2019-05-09 13:45 UTC, Todd Brandt
Details

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%

Note You need to log in before you can comment on or make changes to this bug.