Pcornel
Hardware · Server Architecture

PCIe

Cheat sheet · https://pcornel.dk/topic.php?topic=6277

Back to the Topic

Answer

PCI Express is the point-to-point serial bus that connects NICs, NVMe drives, GPUs and storage controllers to the CPU. Each link has a generation (speed per lane) and width (lanes); both are negotiated at startup.

Remember

Bandwidth roughly doubles per generation: Gen3 8 GT/s, Gen4 16, Gen5 32, Gen6 64 GT/s per lane. A x16 card in a slot wired x8 runs at x8. Compare LnkCap (capable) with LnkSta (negotiated). Corrected AER errors are a warning sign; fatal ones break the link.

First checks

  • lspci -vv -s <bus:dev.fn> | grep -E 'LnkCap|LnkSta' — capable vs negotiated speed and width (root for full output).
  • lspci -tv — topology and root ports.
  • journalctl -k | grep -i 'PCIe Bus Error' — AER events.
  • dmesg | grep -i -E 'DMAR|IOMMU|AMD-Vi' — IOMMU enabled.

Verify in this order

CPU root port (or chipset) → slot/riser/bifurcation → link training (speed, width) → device → AER error reporting → driver

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=6277

Confirmation

Confirm action

Continue?