summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorStian Halseth <stian@itx.no>2026-10-07 15:13:04 +0200
committerBjorn Helgaas <bhelgaas@google.com>2026-10-14 12:09:13 -0500
commit926767a9be8866d26cc27ca46c46c03d921e2193 (patch)
tree62e5ce1ad10100f6246ba21f621aa715d40545bc /tools/perf/scripts/python
parentcee9395acd8043be0644b25c34bfa86623f2b935 (diff)
PCI: Set supported_speeds in set_pcie_port_type()
sparc64 and powerpc create PCI devices from the device tree in of_create_pci_dev(), which calls set_pcie_port_type() but not pci_setup_device(). Since d2bd39c0456b, supported_speeds is only set in pci_setup_device(), so it stays 0 for these devices. pcie_get_speed_cap() then returns PCI_SPEED_UNKNOWN, the sysfs 'max_link_speed' attribute reads "Unknown", and the failed link retraining quirk passes PCI_SPEED_UNKNOWN to pcie_set_target_speed(), which warns on a SPARC T7-1: WARNING: drivers/pci/pcie/bwctrl.c:125 at pcie_set_target_speed+0x284/0x2e0 Set supported_speeds in set_pcie_port_type(), which all three paths call. Fixes: d2bd39c0456b ("PCI: Store all PCIe Supported Link Speeds") Closes: https://github.com/sparclinux/issues/issues/109 Signed-off-by: Stian Halseth <stian@itx.no> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Tested-by: Tony Rodriguez <unixpro1970@gmail.com> Cc: stable@vger.kernel.org Link: https://patch.msgid.link/20261007131304.309511-1-stian@itx.no
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions