2. PCIe Gen4 x16 on all cards in about 35 s

Russian: 02-pcie-gen4-fast.ru.md

The method and the tools are darkmaniac7's (cmp170hx-8gb-vfi-tools tools/pcie, cmp170hx-10gb-pcie-gen4) and are documented on cmp.wiki ("PCIe Gen4 on a burned 8 GB card"). Gen4 is volatile: it is brought up on every boot. Per card the sequence is: walk Gen1 -> Gen2 -> Gen3 through RM (cmp-rmwalk), seven E1 PHY writes in BAR0 (cmp-e1steps), one retrain to Gen4 (cmp-gen4retrain).

What we added

The stock cmp-pcie-boot handles cards one after another with long settle times: 12-13 minutes for 8 cards.

Wiring: a systemd drop-in replaces ExecStart of cmp-pcie-boot.service with cmp-pcie-fast (server/systemd/cmp-pcie-boot.service.d/local.conf).

Safety net

Checking

for d in /sys/bus/pci/devices/*; do [ "$(cat $d/device 2>/dev/null)" = 0x20c2 ] && \
  echo "$(basename $d) $(cat $d/current_link_speed) x$(cat $d/current_link_width)"; done

nvidia-smi reports "gen max 3" here; trust sysfs or lspci.

Limits