[GIT PULL] PCI fixes for v6.13

From: Krzysztof Wilczyński
Date: Sat Dec 21 2024 - 08:13:06 EST


Hello Linus,

The following changes since commit 40384c840ea1944d7c5a392e8975ed088ecf0b37:

Linux 6.13-rc1 (2024-12-01 14:28:56 -0800)

are available in the Git repository at:

ssh://git@xxxxxxxxxxxxxxxxxxx/pub/scm/linux/kernel/git/pci/pci.git tags/pci-v6.13-fixes-2

for you to fetch changes up to 774c71c52aa487001c7da9f93b10cedc9985c371:

PCI/bwctrl: Enable only if more than one speed is supported (2024-12-19 16:36:36 +0000)

----------------------------------------------------------------
PCI fixes for Linux 6.13

Two small patches that are important for fixing boot time hang on Intel JHL7540
"Titan Ridge" platforms equipped with a Thunderbolt controller.

The boot time issue manifests itself when a PCI Express bandwidth control is
unnecessarily enabled on the Thunderbolt controller downstream ports, which
only supports a link speed of 2.5 GT/s in accordance with USB4 v2 specification
(p. 671, sec. 11.2.1, "PCIe Physical Layer Logical Sub-block").

As such, there is no need to enable bandwidth control on such downstream port
links, which also works around the issue.

Both patches were tested by the original reporter on the hardware on which the
failure origin golly manifested itself. Both fixes were proven to resolve the
reported boot hang issue, and both patches have been in linux-next this week
with no reported problems.

Signed-off-by: Krzysztof Wilczyński <kwilczynski@xxxxxxxxxx>

----------------------------------------------------------------
Lukas Wunner (2):
PCI: Honor Max Link Speed when determining supported speeds
PCI/bwctrl: Enable only if more than one speed is supported

drivers/pci/pci.c | 6 ++++--
drivers/pci/pcie/portdrv.c | 4 +++-
2 files changed, 7 insertions(+), 3 deletions(-)