# 2 · The Board and the Platform: V620 as a Physical Device Chapter 1 described the die. This chapter describes everything wrapped around it — the V620 as a product, its power and thermal personality, the host platform it plugs into, and the fleet-hygiene rules that keep a multi-card machine alive. Almost every hard crash, bus drop, and "impossible" error in the source research traces to something in this chapter, not to the silicon. --- ## 2.1 What a V620 actually is The Radeon PRO V620 is a **datacenter *graphics* card**: Navi 21 with 32 GB GDDR6, built and qualified for SR-IOV cloud gaming and virtual desktop workloads, sold without display outputs on most units, cooled passively (server airflow assumed), and priced — on the used market — far below anything else offering 32 GB and ~0.5 TB/s. | | | |---|---| | PCI identity (reference board) | device `1002:73a1`, subsystem `1002:0e34` (full 4-tuple `1002:73a1:1002:0e34`) — RX 6900 XT/6800 are `1002:73bf` | | VRAM | 32 GB GDDR6, large-BAR capable (full 32 GB BAR with Resizable BAR / `amdgpu` large-BAR active) | | TBP | 300 W spec; boards commonly report a **232 W cap** and expose only 232/250/275 W settings | | Host interface | PCIe 4.0 ×16 | | Cooling | none of its own worth speaking of — **you must provide airflow and verify it** | | ROCm support status | *unsupported* for compute by AMD; no vendor wheel, image, or kernel library ships gfx1030 code | Two consequences of the "SR-IOV graphics" heritage matter enormously for inference: 1. **Nothing in its qualification envelope covers sustained lockstep compute collectives.** Multi-GPU tensor parallelism — per-layer all-reduce kernels in tight cadence for hours — is a workload the board was never validated for, and on marginal platforms it can wedge the command processor (§2.5). 2. **The VBIOS lies about the power floor.** It declares 250 W as the *minimum* power limit and `amdgpu` trusts it, so `power1_cap` writes below that are rejected (`Invalid argument`). The SMU firmware actually accepts down to **120 W**. A small, PCI-ID-gated kernel patch to `sienna_cichlid_get_power_limit()` (in `sienna_cichlid_ppt.c`) unlocks the real floor — it touches no VBIOS, pp_table, or ppfeatures, works on kernels ≥5.15, and community tooling (`v620_toolbox`) scripts the module rebuild for Ubuntu and Fedora, with a boot-cap service (default 180 W) and verification scripts. Secure Boot must be off or the module signed. ## 2.2 Power and thermals: the personality - **Decode is bandwidth-bound, and bandwidth does not track core clock.** Cards capped at 232 W serve decode at *identical* speed to 250 W despite ~30% clock throttling at the bottom of the swing — measured to three significant figures across contexts. Sustained decode draws only ~180 W on tensor-parallel MoE configs, and 64–83 W on dispatch-bound models. **The safety margin is free.** Lower caps (160–180 W via the unlock above) cost nothing measurable and directly blunt the transients implicated in stability incidents. - **Transients cluster at idle→full-burst transitions** — the first heavy prefill after boot, or power-state churn under kernel-launch storms. The llama.cpp community reached the same conclusion independently: *"tensor-split prefill can spike power — try a 160 W cap."* - Under sustained concurrent load a 232 W-capped card peaks at 239 W momentarily (the cap bounds the average, not the transients) and clocks fall as low as ~1675 MHz from a 2435 peak. This throttling lands on compute-bound prefill, not on decode. - **Thermals silently cap everything.** These cards have no self-sufficient cooling; a missing or crashed fan controller produces 60 W collapsed-clock "inference" that looks like a software problem and once made a machine appear 3× slower than it was. **Verify fan control is actually running before trusting any measurement** — and beware duplicate controller instances fighting each other. External fan controllers key on PCI bus address; on-card fan telemetry via `rocm-smi` may be meaningless for externally cooled cards. - Kernel power-management flags interact with stability: the reference platform runs `amdgpu.ppfeaturemask=0xfff77fff` (driver default + OverDrive for fan control, with GFXOFF and GFX_DCS — the idle↔burst power-state churn suspects — disabled). See §2.5. ## 2.3 The host platform: PCIe topology is load-bearing Consumer/HEDT platforms (the natural home of cheap V620s) have PCIe topologies that must be *measured*, not read off: - **Slot width halves communication.** Measured P2P: **14.0 GB/s** between two Gen3 ×16-rooted cards, **7.0 GB/s** on ×8-rooted pairs. Tensor-parallel pairs belong on the widest slots; a topology-blind ring runs at the speed of its worst hop. - **sysfs lies about link width on some boards.** `current_link_width` may claim x16 @ 16 GT/s for cards that throughput-test at x8 — the value reflects a GPU-to-bridge hop, not the end-to-end path. `pp_dpm_pcie` is more honest. **Throughput-test your links before making topology decisions.** - **Link speed can be worth capping.** Links that *train* at Gen4 may deliver less than at Gen3 on marginal signal paths (risers, older boards). `amdgpu.pcie_gen_cap=0x00070007` (cap at Gen3) was part of the stack that made 4-card TP stable on the reference machine. - **ACS on CPU root ports can silently block or degrade GPU P2P** — a documented cause of "P2P enabled but slower/broken". Check `lspci -vvv | grep -i 'Access Control'` on the root ports above your GPUs. The community ships a four-gate readiness check (`v620-p2p-readiness.sh`: kernel config, hardware, ACS/IOMMU, runtime). - **NUMA:** multi-socket hosts (and multi-die single-socket parts like Threadripper in NPS2 modes) can put GPU root complexes on different dies; community testing prefers single-socket EPYC for TP. Check `numactl -H`, `lstopo`, and each GPU's `numa_node` sysfs entry. Measured cross-NUMA penalty on small transfers was only 1–5 µs on the reference machine — but it remains an unexcluded variable in TP stability patterns. - **P2P is real but "unsupported but functional":** AMD validates PCIe P2P on Instinct only. With `amdgpu.pcie_p2p=Y`, large BAR, and `amd_iommu=on iommu=pt`, kernel-level peer access works on V620 fleets (verified 12/12 pairs on 4-card rigs by multiple parties). **P2P can still be a pessimization** on bad topologies (Gen3 ×4 links, southbridge-routed slots, ACS-blocked ports) — always A/B against P2P-off; `NCCL_P2P_LEVEL=PXB` (P2P within a root complex, shared-memory across) is the commonly winning middle setting. - **PCIe fabric stress has side effects beyond GPUs.** Under heavy generation traffic on one reference machine, a SAS HBA audibly re-initialized its tape drive, and cards on *different* root complexes dropped off the bus together. GPU workloads that poll host memory across the fabric at high rate (see §4) can destabilize unrelated devices. ## 2.4 Cross-device memory semantics (the coherence rules) These four measured facts constrain every custom multi-GPU kernel on this platform, and violating them produces silent data corruption or hangs rather than errors. Full treatment in Chapter 4; stated here because they are *platform* facts: 1. **Coarse-grained device memory (plain `hipMalloc`) is invisible to a peer mid-kernel.** A peer's writes land in DRAM correctly, but the owner's running kernel reads its own stale L2 forever. No fence (`__threadfence_system()` included) and no system-scope atomic load fixes it — coherence is only guaranteed at kernel-dispatch boundaries. 2. **`hipDeviceMallocFinegrained` is a silent no-op on this part.** Allocation succeeds, returns no error, and delivers stale data. Fine-grained is effectively an APU/XGMI feature. The working allocation for cross-device exchange staging is **`hipExtMallocWithFlags(..., hipDeviceMallocUncached)`** — device-uncached memory that peers can push into and the owner reads coherently. 3. **Device-memory flags cannot be spin-polled across PCIe.** A kernel spinning on a peer-written flag in ordinary VRAM never observes the write under any fence or atomic scope. Host-resident coherent memory (`hipHostMalloc(..., hipHostMallocCoherent)`) works — 1.58 µs one-way handshake — and flags in the rank's *own uncached VRAM*, pushed by peers with posted P2P stores, work and are the production-correct pattern (see §4 for the ordering subtlety that makes host-coherent flags unsafe when payloads go peer-to-peer). 4. **Peer atomics work exactly** — `atomicAdd`/`atomicCAS` into a peer's VRAM verified lossless in all directions. Working atomics do **not** imply a peer's plain write becomes *observable* to a spinning reader (fact 3). These are different mechanisms. ## 2.5 Platform stability: the bus-drop class and its mitigation stack **Symptom:** under flat tensor parallelism across 3–4 cards, GPUs die mid-boot or at the first heavy request: kernel log shows `qcm fence timeout` → `device lost from bus`. With `amdgpu.gpu_recovery=0` the card is gone until reboot. The same cards run multi-GPU llama.cpp layer-split for days. **Mechanism (best-evidenced account):** GPU-resident, tightly synchronized per-layer collective kernels wedge the command processor. **It is not peer-to-peer DMA:** the cleanest incident killed a TP pair with P2P disabled at every layer, vLLM's custom all-reduce off, and every byte host-mediated — while the other pair, running identical machinery as a pipeline stage, survived. What kills is the *cadence* — paired collective kernels in lockstep, hundreds of times a second, for minutes — on a board whose qualification never covered it. Corroborating: llama.cpp's CPU-orchestrated multi-GPU path (no GPU-side communication kernels holding queues open) runs the same fleets daily with RCCL P2P *enabled* and no drops. **The mitigation stack that made flat TP=4 stable** (validated ~2.5 h sustained, zero events; treat all of it as load-bearing until an unwind experiment says otherwise): | Layer | Setting | Why | |---|---|---| | kernel cmdline | `amdgpu.pcie_gen_cap=0x00070007` | cap links at Gen3 — links train Gen4 but deliver less on marginal signaling | | kernel cmdline | `amdgpu.aspm=0 amdgpu.runpm=0` | no link/device low-power exits racing an idle→burst transition (where drops clustered) | | kernel cmdline | `amdgpu.gpu_recovery=1` | a wedge becomes a GPU reset instead of a card lost until reboot — *but see the recovery trade-off below* | | kernel cmdline (seen in later configs) | `amdgpu.noretry=1`, `amdgpu.ppfeaturemask=0xfff77fff` | fault-retry off; GFXOFF/GFX_DCS off | | env | `HSA_NO_SCRATCH_RECLAIM=1` | no mid-flight scratch reclaim/regrow — queue surgery at dispatch time of the largest kernels. Standard in every community llama.cpp RDNA2 recipe; also the likely truth behind llama.cpp's classic "batch 4096+ is crashy" lore | | env | `NCCL_P2P_LEVEL=PXB` | RCCL P2P within a root complex, SHM across | | workload | max batched tokens ≈ 2048 | **batch size is a TIMING knob on graphics silicon**: it sets unpreemptible dispatch length, scratch-crossing odds, DMA burst duration, and power-ramp width all at once. Keep work items frame-sized. (The llama.cpp community independently standardized on batch 2048 / ubatch 256.) | | per boot | moderate power caps (232 W or lower) | gentler transients; free for decode | **The recovery trade-off:** `gpu_recovery=1` turns wedges into resets, but a GPU reset with busy P2P peers has itself wedged whole machines; `gpu_recovery=0` converts hangs into a dead process instead of a dead machine but loses the card until reboot. Both settings appear in validated configs from different eras of the same research — the honest statement is that recovery *on* is right for the mitigated TP stack, and recovery *off* was right during the un-mitigated, crash-hunting era. Related hard rule either way: **never leave a GPU stream-memory wait pending** (`hipStreamWaitValue32` / WAIT_REG_MEM) — KFD queue eviction (`svm_range_restore`, frequent with big mmaps/pinned buffers) cannot preempt a parked queue, the eviction times out, the driver resets the GPU, and the reset can drop the card off the bus. Synchronize CPU→GPU handshakes on the host instead (see §4 and §8). **Pipeline parallelism is the zero-kludge fallback:** sparse host-paced send/recv never holds collective kernels open; PP=3 configs ran for days with no special measures. Also in the launch-storm crash class: `AMD_SERIALIZE_KERNEL` / `HIP_LAUNCH_BLOCKING` on multi-GPU cold-compile boots dramatically amplify launch churn — never set them there; and TunableOp autotuning churn correlated with `svm_range_restore_work` kernel storms preceding two hard host crashes (Chapter 8). A crash mid-compile can leave a truncated artifact in the torch-compile cache (`module ... has no attribute 'triton_poi_...'`) — wipe the cache directory. **After any ROCm illegal-memory fault, reset the affected GPUs or reboot before drawing conclusions from later tests.** Queues can remain poisoned and fail unrelated subsequent launches. ## 2.6 Fleet hygiene: what may share the machine ### 2.6.1 The pre-Vega rule **Do not put pre-gfx9 (Polaris/GCN3 and earlier) silicon in a ROCm compute machine — even display-only.** One obsolete display card poisons a healthy fleet at three independent layers, each with a misleading symptom (full diagnostic ladders in Chapter 9): 1. **Enumeration abort.** ROCR-Runtime device discovery is all-or-nothing: agent creation walks every KFD node, and an unhandled property on *any* node (a pre-Vega doorbell type) throws `HSA_STATUS_ERROR`, aborting enumeration of *every* GPU. Four healthy cards report as "no ROCm devices." `ROCR_VISIBLE_DEVICES` cannot help — filtering happens after the crash point. (If removal is temporarily impossible: the throw is one byte in the shipped `libhsa-runtime64.so` — flip the error code `HSA_STATUS_ERROR` 0x1000 → `HSA_STATUS_ERROR_INVALID_ISA` 0x100F at the deprecated-doorbell throw site and the caller's existing catch skips the node. Locate by string-xref on "deprecated doorbell type".) 2. **Identity contamination.** `amdsmi` enumerates *physical* devices and ignores `ROCR_VISIBLE_DEVICES`/`HIP_VISIBLE_DEVICES` entirely. Any software that indexes raw amdsmi handles with *logical* device ids (vLLM's ROCm platform layer did, in several places) reads the wrong card's name, VRAM size, and topology when a hidden card sits first on the bus. Fix class: filter amdsmi handles to compute-capable (gfx9+) devices so the index spaces match. 3. **Kernel-side KFD poisoning — unreachable from userspace.** The unsupported card's KFD node corrupts system-scoped memory-mapping (VMM) paths: exactly the substrate under `expandable_segments` and CUDA/HIP-graph memory pools. Signature: eager compute fine, graph capture dies with `hipErrorOutOfMemory` on arithmetically impossible allocations (64-byte tensors with GiBs free). No userspace patch reaches this; remove the card. The gfx1030 community wiki documents the same rule reached independently (their symptom: `Failed to map remapped mmio page on gpu_mem 0`). ROCm 7.x dropped pre-gfx9 ASIC support; no kernel new enough for RDNA2 work is old enough for gfx803. ### 2.6.2 Mixed-generation RDNA and the HSA override A gfx1031/gfx1032 card (RX 6700 XT etc.) coexists fine but runs gfx1030 code only under `HSA_OVERRIDE_GFX_VERSION=10.3.0` — and that override must **never reach unsupported silicon** (gfx1030 code on gfx803 faults). Always pair the override with an explicit `ROCR_VISIBLE_DEVICES` pinned to the intended cards. ### 2.6.3 Device identity bookkeeping - **PCI bus address:** stable across reboots; changes only on re-slotting. Key external fan tables and launcher device maps on this. - **Unique ID** (`rocm-smi --showuniqueid`): burned into the ASIC — survives re-slotting. The authoritative "which physical card is this." - **rocm-smi index and GUID:** assigned per boot; never persist them. - **drm `cardN`:** per-boot kernel enumeration; `card0` ≠ `GPU[0]`. - **ROCR device ordering ≠ `/dev/dri/cardN` ordering** — `rocm-smi --showbus` is the authority. - **Adding or removing any card renumbers ROCR devices.** Every "devices 1,3" style config note in scripts and docs silently goes stale; re-map by PCI address after any hardware change. - Run side jobs (harnesses, builds) on a card the server does not use — a stray harness on a serving card put "Runlist is getting oversubscribed" in the kernel log during graph capture. ## 2.7 Reference platform capsule For calibration, the machine most numbers in this guide come from: > AMD X399 (Threadripper 2950X, 16C/32T), 128 GB DDR4, Ubuntu LTS 26.04, kernel 7.x. Four > Radeon PRO V620s across the four GPU slots (Gen3 root ports: ×16/×8/×16/×8), display on a > separate small GPU. Power caps 232 W (later 150–180 W), external fan controller keyed on PCI > addresses. Kernel line: `amdgpu.pcie_gen_cap=0x00070007 amdgpu.aspm=0 amdgpu.runpm=0 > amdgpu.gpu_recovery=1 amdgpu.noretry=1 amdgpu.ppfeaturemask=0xfff77fff amd_iommu=on iommu=pt`. A sibling community-validated rig: single-socket EPYC 7452, Fedora, 4× V620, all-pairs P2P 12/12 — the "clean topology" counterpart. --- *Provenance: hardware/recipe docs (`00-HARDWARE.md`, `02-VERSIONS.md`), troubleshooting corpora, the platform-stability campaign records (T29, T41 and nightly notes), DEVICE-MAP.md, the hsa-doorbell-skip artifact, and community material (gfx1030 wiki, `v620_toolbox`). See [SOURCES.md](SOURCES.md).*