~vicamo/+git/ubuntu-kernel:bug-1996620/vmd-enable-pcie-aspm-ltr/unstable

Last commit made on 2022-11-16
Get this branch:
git clone -b bug-1996620/vmd-enable-pcie-aspm-ltr/unstable https://git.launchpad.net/~vicamo/+git/ubuntu-kernel
Only You-Sheng Yang can upload to this branch. If you are You-Sheng Yang please log in for upload directions.

Branch merges

Branch information

Name:
bug-1996620/vmd-enable-pcie-aspm-ltr/unstable
Repository:
lp:~vicamo/+git/ubuntu-kernel

Recent commits

6cc4e82... by You-Sheng Yang

Bug 1996620: vmd: Enable PCIe ASPM and LTR on select hardware

636777b... by David Box

UBUNTU: SAUCE: PCI: vmd: Add quirk to configure PCIe ASPM and LTR

BugLink: https://bugs.launchpad.net/somerville/+bug/1996620

PCIe ports reserved for VMD use are not visible to BIOS and therefore not
configured to enable PCIe ASPM or LTR values (which BIOS will configure if
they are not set). Lack of this programming results in high power
consumption on laptops as reported in bugzilla. For affected products use
pci_enable_link_state to set the allowed link states for devices on the
root ports. Also set the LTR value to the maximum value needed for the SoC.

This is a workaround for products from Rocket Lake through Alder Lake.
Raptor Lake, the latest product at this time, has already implemented LTR
configuring in BIOS. Future products will move ASPM configuration back to
BIOS as well. As this solution is intended for laptops, support is not
added for hotplug or for devices downstream of a switch on the root port.

Link: https://bugzilla.kernel.org/show_bug.cgi?id=212355
Link: https://bugzilla.kernel.org/show_bug.cgi?id=215063
Link: https://bugzilla.kernel.org/show_bug.cgi?id=213717

Signed-off-by: Michael Bottini <email address hidden>
Signed-off-by: David E. Box <email address hidden>
Reviewed-by: Jon Derrick <email address hidden>
Reviewed-by: Nirmal Patel <email address hidden>
(cherry picked from https://<email address hidden>/)
Signed-off-by: You-Sheng Yang (vicamo) <email address hidden>

44e7bcb... by David Box

UBUNTU: SAUCE: PCI: vmd: Create feature grouping for client products

BugLink: https://bugs.launchpad.net/somerville/+bug/1996620

Simplify the device ID list by creating a grouping of features shared by
client products.

Suggested-by: Jon Derrick <email address hidden>
Signed-off-by: David E. Box <email address hidden>
(cherry picked from https://<email address hidden>/)
Signed-off-by: You-Sheng Yang (vicamo) <email address hidden>

4851132... by David Box

UBUNTU: SAUCE: PCI: vmd: Use PCI_VDEVICE in device list

BugLink: https://bugs.launchpad.net/somerville/+bug/1996620

Refactor the PCI ID list to use PCI_VDEVICE.

Signed-off-by: David E. Box <email address hidden>
Reviewed-by: Jon Derrick <email address hidden>
Reviewed-by: Nirmal Patel <email address hidden>
(cherry picked from https://<email address hidden>/)
Signed-off-by: You-Sheng Yang (vicamo) <email address hidden>

bacaabb... by Michael Bottini <email address hidden>

UBUNTU: SAUCE: PCI/ASPM: Add pci_enable_link_state()

BugLink: https://bugs.launchpad.net/somerville/+bug/1996620

Add pci_enable_link_state() to allow devices to change the default BIOS
configured states. Clears the BIOS default settings then sets the new
states and reconfigures the link under the semaphore. Also add
PCIE_LINK_STATE_ALL macro for convenience for callers that want to enable
all link states.

Signed-off-by: Michael Bottini <email address hidden>
Signed-off-by: David E. Box <email address hidden>
Acked-by: Bjorn Helgaas <email address hidden>
(cherry picked from https://<email address hidden>/)
Signed-off-by: You-Sheng Yang (vicamo) <email address hidden>

947f8cc... by You-Sheng Yang

Revert "UBUNTU: SAUCE: PCI/ASPM: Enable ASPM for links under VMD domain"

BugLink: https://bugs.launchpad.net/somerville/+bug/1996620

This reverts commit 8c192e4896d8a058bd36a2d013363762852746fa.

Signed-off-by: You-Sheng Yang (vicamo) <email address hidden>

1118de5... by You-Sheng Yang

Revert "UBUNTU: SAUCE: PCI/ASPM: Enable LTR for endpoints behind VMD"

BugLink: https://bugs.launchpad.net/somerville/+bug/1996620

This reverts commit 2dc0ee8890de5968764a50ff90ddd614f41a9640.

Signed-off-by: You-Sheng Yang (vicamo) <email address hidden>

27afc4a... by You-Sheng Yang

Revert "UBUNTU: SAUCE: vmd: fixup bridge ASPM by driver name instead"

BugLink: https://bugs.launchpad.net/somerville/+bug/1996620

This reverts commit efc9c968514a4f64af1ea38f786ae8908972498d.

Signed-off-by: You-Sheng Yang (vicamo) <email address hidden>

aa4a221... by You-Sheng Yang

Experimental linux-unstable/lunar changes

eb02b5a... by You-Sheng Yang

Revert "Revert "UBUNTU: [Config] enable Intel DMA remapping options by default""

This reverts commit 55154cf860ec1266b7e3e7adcff19f59ed771b5c.

Signed-off-by: You-Sheng Yang (vicamo) <email address hidden>