linux-stable/drivers/pci
Bjorn Helgaas 94ac327e04 PCI/ASPM: Account for downstream device's Port Common_Mode_Restore_Time
Every Port that supports the L1.2 substate advertises its Port
Common_Mode_Restore_Time, i.e., the time the Port requires to re-establish
common mode when exiting L1.2 (see PCIe r3.1, sec 7.33.2).

Per sec 5.5.3.3.1, when exiting L1.2, the Downstream Port (the device at
the upstream end of the link) must send TS1 training sequences for at least
T(COMMONMODE) after it detects electrical idle exit on the Link.  We want
this to be long enough for both ends of the Link, so we should set it to
the maximum of the Port Common_Mode_Restore_Time for the upstream and
downstream components on the Link.

Previously we only looked at the Port Common_Mode_Restore_Time of the
upstream device, so if the downstream device required more time, we didn't
program the upstream device's T(COMMONMODE) correctly.

Fixes: f1f0366dd6 ("PCI/ASPM: Calculate and save the L1.2 timing parameters")
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Vidya Sagar <vidyas@nvidia.com>
Acked-by: Rajat Jain <rajatja@google.com>
CC: stable@vger.kernel.org	# v4.11+
2017-11-13 15:05:24 -06:00
..
dwc Merge branch 'pci/trivial' into next 2017-09-07 13:24:20 -05:00
endpoint PCI: endpoint: Use correct "end of test" interrupt 2017-09-20 13:56:06 -05:00
host pci-v4.14-changes 2017-09-08 15:47:43 -07:00
hotplug Merge branch 'pci/misc' into next 2017-09-07 13:24:16 -05:00
pcie PCI/ASPM: Account for downstream device's Port Common_Mode_Restore_Time 2017-11-13 15:05:24 -06:00
switch Merge branch 'pci/switchtec' into next 2017-07-02 18:51:10 -05:00
access.c PCI: Provide Kconfig option for lockless config space accessors 2017-06-28 22:32:56 +02:00
ats.c PCI: Restore PRI and PASID state after Function-Level Reset 2017-05-30 15:40:50 -05:00
bus.c
ecam.c
host-bridge.c
hotplug-pci.c
htirq.c
iov.c PCI: Disable VF decoding before pcibios_sriov_disable() updates resources 2017-08-29 17:24:02 -05:00
irq.c pci-v4.12-changes 2017-05-08 19:03:25 -07:00
Kconfig PCI: Provide Kconfig option for lockless config space accessors 2017-06-28 22:32:56 +02:00
Makefile PCI: Build setup-irq.o on all arches 2017-07-02 16:14:27 -05:00
mmap.c
msi.c pci-v4.14-changes 2017-09-08 15:47:43 -07:00
of.c
pci-acpi.c ACPI / PCI / PM: Rework acpi_pci_propagate_wakeup() 2017-08-01 14:05:03 +02:00
pci-driver.c ACPI updates for v4.14-rc1 2017-09-05 12:45:03 -07:00
pci-label.c PCI: Constify label attribute_group structures 2017-08-10 15:21:41 -05:00
pci-mid.c PCI / PM: Simplify device wakeup settings code 2017-06-28 01:52:45 +02:00
pci-stub.c
pci-sysfs.c PCI: Fix race condition with driver_override 2017-09-25 18:34:54 -05:00
pci.c Revert "PCI: Avoid race while enabling upstream bridges" 2017-09-15 01:33:51 -05:00
pci.h PCI: Mark Broadcom HT2100 Root Port Extended Tags as broken 2017-07-31 14:31:22 -05:00
probe.c pci-v4.14-changes 2017-09-08 15:47:43 -07:00
proc.c
quirks.c dmi: Mark all struct dmi_system_id instances const 2017-09-14 11:59:30 +02:00
remove.c
rom.c
search.c
setup-bus.c
setup-irq.c PCI: Inline and remove pcibios_update_irq() 2017-08-10 12:49:57 -05:00
setup-res.c PCI: Add a generic weak pcibios_align_resource() 2017-08-02 14:53:16 -05:00
slot.c
syscall.c
vc.c
vpd.c
xen-pcifront.c