Use it when placing adapters in slots, checking that a card runs at full speed and width, and diagnosing PCIe bus errors.
PCIe
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.
1. Does LnkSta match LnkCap (speed and width)?
2. Is the slot wired for the card's width and on the right socket?
3. Any AER errors on this device?
4. Is the card seated, cooled and on current firmware?
CPU root port (or chipset) → slot/riser/bifurcation → link training (speed, width) → device → AER error reporting → driver
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
journalctl -k | grep -i 'PCIe Bus Error'Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Read-only Verification Verify boundary
# Find the device, then compare capability with negotiated state
lspci | grep -i -E 'ethernet|nvme|non-volatile|3d|raid'
sudo lspci -vv -s 41:00.0 | grep -E 'LnkCap:|LnkSta:'
# LnkCap: Port #0, Speed 16GT/s, Width x16 ...
# LnkSta: Speed 16GT/s, Width x16 ...
# Topology and socket
lspci -tv
cat /sys/bus/pci/devices/0000:41:00.0/numa_node
# AER and IOMMU
journalctl -k | grep -i 'PCIe Bus Error'
journalctl -k | grep -i -E 'DMAR|IOMMU|AMD-Vi' | head
LnkSta showing a lower speed or width than LnkCap (and lspci marking it (downgraded)) is the clearest sign of a slot, riser or seating problem. Some devices drop to a lower speed when idle to save power, so check under load.
Step 2 Common mistakes Narrow the fault
- Trusting the slot's physical size instead of its electrical width.
- Putting a Gen5 adapter on a Gen4 riser and expecting Gen5 throughput.
- Ignoring corrected AER errors.
- Forgetting bifurcation for multi-NVMe carrier cards.
Step 3 Troubleshooting Narrow the fault
NIC or NVMe slower than expected. Negotiated width or speed is lower than capable — wrong slot (x8 wiring), riser generation, or bifurcation setting.
Bursts of corrected PCIe errors. Reseat the card, check riser/cable, update adapter and BIOS firmware; replace if errors persist on the same device.
Device disappears after a fatal AER error. The link went down; the BMC log often has the same event. A reboot may bring it back temporarily — plan replacement.
SR-IOV virtual functions do not appear. IOMMU or SR-IOV disabled in BIOS, adapter firmware mode, or driver parameter not set.
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.
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.
ReferenceWhat it is2 sections · depth on demand
Direct Answer
PCIe connects adapters to the CPU over lanes. A link's bandwidth is its generation (Gen3 8 GT/s, Gen4 16 GT/s, Gen5 32 GT/s, Gen6 64 GT/s per lane) times its width (x1, x4, x8, x16). Both are negotiated when the link trains, so a Gen5 x16 card can end up running at Gen3 or x8 because of the slot, a riser, a cable or a fault. Check the negotiated link (LnkSta) against the capability (LnkCap), and watch for AER errors, which report problems on the link.
Scope and canonical references
- Platform and locality: Server Architecture, NUMA.
- NVMe over PCIe: PCIe under Storage → NVMe and PCIe under Storage Interfaces.
- Passing devices to VMs: PCIe Passthrough, SR-IOV.
ReferenceImportant terms & boundaries1 section · depth on demand
In depth
Generations
| Generation | Transfer rate per lane | Approx. throughput per lane, each direction | x16 each direction |
|---|---|---|---|
| Gen3 | 8 GT/s | ~1 GB/s | ~16 GB/s |
| Gen4 | 16 GT/s | ~2 GB/s | ~32 GB/s |
| Gen5 | 32 GT/s | ~4 GB/s | ~64 GB/s |
| Gen6 | 64 GT/s (PAM4, FLIT) | ~8 GB/s | ~128 GB/s |
Links are full duplex. Devices and slots negotiate the highest generation and width both support.
Where lanes come from
Server CPUs provide most lanes; each slot, OCP NIC slot and NVMe bay is wired to a specific CPU (sometimes through a PCIe switch or retimer). A physical x16 slot may only be wired x8. Bifurcation in BIOS splits a x16 slot into x8x8 or x4x4x4x4, needed for adapter cards that hold several NVMe drives without a switch.
Errors (AER)
Advanced Error Reporting classifies link problems as correctable (fixed by hardware, logged), non-fatal uncorrectable (a transaction failed, link still up) and fatal (link unreliable, reset required). Bursts of correctable errors usually mean signal-integrity problems: seating, riser, cable, dust, or a failing card.
IOMMU and SR-IOV
The IOMMU (Intel VT-d, AMD-Vi) translates and restricts device DMA; it must be enabled in BIOS (and often on the kernel command line) for device passthrough and SR-IOV. SR-IOV also needs BIOS support and adapter firmware support; virtual functions then appear as additional PCIe functions.
Other BIOS options
Above 4G decoding and Resizable BAR matter for GPUs and devices with large memory windows; ASPM (link power management) can add latency and is often disabled on servers.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.
Deep reference
Healthy vs suspicious evidence
Output interpretation
LnkCap vs LnkSta: capability is what the device and slot support; status is what was negotiated. Speed 8GT/s, Width x8 on a x16 Gen4 card is a down-train — check slot, riser, seating and BIOS bifurcation. Some devices lower speed when idle, so read it under load.
lspci -tv: devices behind a switch or on a slot wired to fewer lanes than the card share bandwidth.
AER messages: Corrected errors (for example Receiver Error, Bad TLP) logged repeatedly from one device indicate a marginal link; Uncorrected (Fatal) usually comes with a device reset or crash.
IOMMU lines (DMAR/AMD-Vi) confirm the IOMMU is enabled, which passthrough and SR-IOV need.
Design & tradeoffs
Design decisions
Lane budget: count lanes per socket and per slot before buying NICs, NVMe and GPUs; bifurcation settings must match adapters that carry several drives.
Generation: a Gen5 device in a Gen4 slot works at Gen4 speed — fine for many NICs, limiting for fast NVMe or GPUs.
Locality: put each high-bandwidth device on the socket that runs its workload.
Passthrough and SR-IOV require IOMMU, ACS-capable topology and firmware support; plan these with the hypervisor, not after installation.