mbox series

[v3,0/1,SRU,OEM-OSP1-B] UBUNTU: SAUCE: pci: Speed up the process of s3 resume

Message ID 20200514072142.18100-1-koba.ko@canonical.com
Headers show
Series UBUNTU: SAUCE: pci: Speed up the process of s3 resume | expand

Message

Koba Ko May 14, 2020, 7:21 a.m. UTC
BugLink: https://bugs.launchpad.net/bugs/1876844

[Impact]
Process of s3 resume takes 7s and it's too long which is over 5s.

[Fix]
Respect the link_active_reporting field of a PCI device to determine whether a
delay should be added or not.  Actual delay would be determined by taking
maximum between 100ms and pci device's d3cold delay.

[test]
With the patch, the total time s3 resume is 3874.298 ms which is smaller than 5s.

[Regression Potential]
Medium. This patch only changes the rules to determine whether delay is taken or
not. Reference the right field(link_active_reporting), but not speed of pci
device.

v3: Correct the patch submission process.

Mika Westerberg (1):
  UBUNTU: SAUCE: PCI: Do not use pcie_get_speed_cap() to determine when
    to start waiting

 drivers/pci/pci.c | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)