projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0d481ff
)
PCI: Fix 64GT/s effective data rate calculation
author
Ilpo Järvinen
<ilpo.jarvinen@linux.intel.com>
Tue, 2 Jan 2024 17:27:00 +0000
(19:27 +0200)
committer
Bjorn Helgaas
<bhelgaas@google.com>
Tue, 2 Jan 2024 18:06:47 +0000
(12:06 -0600)
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
patch
|
blob
|
history
diff --git
a/drivers/pci/pci.h
b/drivers/pci/pci.h
index 5ecbcf0411793e2242121d00ee776b3cd8f5d294..d9132029d6584c97333dce276a6ba23e2ce768e9 100644
(file)
--- a/
drivers/pci/pci.h
+++ b/
drivers/pci/pci.h
@@
-272,7
+272,7
@@
void pci_bus_put(struct pci_bus *bus);
/* PCIe speed to Mb/s reduced by encoding overhead */
#define PCIE_SPEED2MBS_ENC(speed) \
- ((speed) == PCIE_SPEED_64_0GT ? 64000*1
28/130
: \
+ ((speed) == PCIE_SPEED_64_0GT ? 64000*1
/1
: \
(speed) == PCIE_SPEED_32_0GT ? 32000*128/130 : \
(speed) == PCIE_SPEED_16_0GT ? 16000*128/130 : \
(speed) == PCIE_SPEED_8_0GT ? 8000*128/130 : \