]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
PCI: Decode PCIe 64 GT/s link speed
authorGustavo Pimentel <Gustavo.Pimentel@synopsys.com>
Wed, 18 Nov 2020 22:49:20 +0000 (23:49 +0100)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 20 Nov 2020 18:35:27 +0000 (12:35 -0600)
commit341917490d7d68d2f7267a265b8820fc3f8ead1b
treeca48ff6435e4cadf0b01da73e3566ce911f6927c
parentf8394f232b1eab649ce2df5c5f15b0e528c92091
PCI: Decode PCIe 64 GT/s link speed

PCIe r6.0, sec 7.5.3.18, defines a new 64.0 GT/s bit in the Supported Link
Speeds Vector of Link Capabilities 2.

This patch does not affect the speed of the link, which should be
negotiated automatically by the hardware; it only adds decoding when
showing the speed to the user.

Decode this new speed.  Previously, reading the speed of a link operating
at this speed showed "Unknown speed" instead of "64.0 GT/s".

Link: https://lore.kernel.org/r/aaaab33fe18975e123a84aebce2adb85f44e2bbe.1605739760.git.gustavo.pimentel@synopsys.com
Signed-off-by: Gustavo Pimentel <gustavo.pimentel@synopsys.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Krzysztof WilczyƄski <kw@linux.com>
drivers/pci/pci.h
drivers/pci/probe.c
include/linux/pci.h
include/uapi/linux/pci_regs.h