]> www.infradead.org Git - users/jedix/linux-maple.git/commit
PCI: Track Flit Mode Status & print it with link status
authorIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Fri, 7 Feb 2025 16:18:35 +0000 (18:18 +0200)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 21 Feb 2025 23:31:35 +0000 (17:31 -0600)
commit79c731e20d7401cc39e4f0e633b135b966a04f62
treecb73c411e1200a47ceedd9ba44c969a2f2e8f95b
parentfab874e12593b68f9a7fcb1a31a7dcf4829e88f7
PCI: Track Flit Mode Status & print it with link status

PCIe r6.0 added Flit mode, which mainly alters HW behavior, but there are
some OS visible changes. The OS visible changes include differences in the
layout of some capabilities and interpretation of the TLP headers (in
diagnostics situations).

To be able to determine which mode the PCIe Link is using, store the Flit
Mode Status (PCIe r6.1 sec 7.5.3.20) information in addition to the Link
speed into struct pci_bus in pcie_update_link_speed().

Link: https://lore.kernel.org/r/20250207161836.2755-2-ilpo.jarvinen@linux.intel.com
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
[bhelgaas: use unsigned int:1 instead of bool, update flit_mode setting]
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/hotplug/pciehp_hpc.c
drivers/pci/pci.c
drivers/pci/pci.h
drivers/pci/probe.c
include/linux/pci.h