]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
PCI/ASPM: Disable ASPM L1.2 Substate if we don't have LTR
authorBjorn Helgaas <bhelgaas@google.com>
Tue, 17 Apr 2018 16:25:51 +0000 (11:25 -0500)
committerStefan Bader <stefan.bader@canonical.com>
Fri, 1 Mar 2019 13:21:07 +0000 (14:21 +0100)
commit89cd06b70ed9966c69e1126096a2678703e4ee4f
tree651bfdd7eaba036a2f94db4b08bd57e6df3bfa7e
parent0335b8e1d09fa59610cd6ee49b848f0a0d1cf2ac
PCI/ASPM: Disable ASPM L1.2 Substate if we don't have LTR

BugLink: http://bugs.launchpad.net/bugs/1815234
[ Upstream commit 9ab105deb60fa76d66cae5548819b4e8703d2056 ]

When in the ASPM L1.0 state (but not the PCI-PM L1.0 state), the most
recent LTR value and the LTR_L1.2_THRESHOLD determines whether the link
enters the L1.2 substate.

If we don't have LTR enabled, prevent the use of ASPM L1.2.

PCI-PM L1.2 may still be used because it doesn't depend on
LTR_L1.2_THRESHOLD (see PCIe r4.0, sec 5.5.1).

Tested-by: Srinath Mannam <srinath.mannam@broadcom.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
drivers/pci/pcie/aspm.c