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

Last commit made on 2022-11-16
Get this branch:
git clone -b bug-1996620/vmd-enable-pcie-aspm-ltr/kinetic 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/kinetic
Repository:
lp:~vicamo/+git/ubuntu-kernel

Recent commits

73cd358... by You-Sheng Yang

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

2d94d2f... 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>
(backported from https://<email address hidden>/)
[vicamo: fix missed entries in vmd_ids]
Signed-off-by: You-Sheng Yang (vicamo) <email address hidden>

c5125fd... 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>
(backported from https://<email address hidden>/)
[vicamo: fix missed entries in vmd_ids]
Signed-off-by: You-Sheng Yang (vicamo) <email address hidden>

d0461fd... 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>
(backported from https://<email address hidden>/)
[vicamo: fix missed entries in vmd_ids]
Signed-off-by: You-Sheng Yang (vicamo) <email address hidden>

51c1a1f... 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>

250bf08... 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 7b6eb21da1241f5bfcb55b9bdd85c62f4af2fdbe.

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

25a0a04... 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 a8951f369fde3832721fe7330e08a87d2d8b9a45.

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

633c654... 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 9942df2fda840b06964fa2d945fc0e519c15230c.

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

8d48e2e... by You-Sheng Yang

Experimental linux/kinetic changes

946a15a... 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>