Skip to content

Commit ac4f189

Browse files
ij-intelbjorn-helgaas
authored andcommitted
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/[email protected] Signed-off-by: Ilpo Järvinen <[email protected]> Signed-off-by: Bjorn Helgaas <[email protected]>
1 parent 0d481ff commit ac4f189

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/pci/pci.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ void pci_bus_put(struct pci_bus *bus);
272272

273273
/* PCIe speed to Mb/s reduced by encoding overhead */
274274
#define PCIE_SPEED2MBS_ENC(speed) \
275-
((speed) == PCIE_SPEED_64_0GT ? 64000*128/130 : \
275+
((speed) == PCIE_SPEED_64_0GT ? 64000*1/1 : \
276276
(speed) == PCIE_SPEED_32_0GT ? 32000*128/130 : \
277277
(speed) == PCIE_SPEED_16_0GT ? 16000*128/130 : \
278278
(speed) == PCIE_SPEED_8_0GT ? 8000*128/130 : \

0 commit comments

Comments
 (0)