]> git.itanic.dy.fi Git - linux-stable/commit
PCI: Fix 64GT/s effective data rate calculation
authorIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Tue, 2 Jan 2024 17:27:00 +0000 (19:27 +0200)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 2 Jan 2024 18:06:47 +0000 (12:06 -0600)
commitac4f1897fa5433a1b07a625503a91b6aa9d7e643
treeaf0d274592e0c6e62f1fb5c09b252b47b7ac41ab
parent0d481ff35c9a85d775e5544bb2e331e7d5eb6c3c
PCI: Fix 64GT/s effective data rate calculation

Unlike the lower rates, the PCIe 64GT/s Data Rate uses 1b/1b encoding, not
128b/130b (PCIe r6.1 sec 1.2, Table 1-1).  Correct the PCIE_SPEED2MBS_ENC()
calculation to reflect that.

Link: https://lore.kernel.org/r/20240102172701.65501-1-ilpo.jarvinen@linux.intel.com
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/pci.h