Files
nvdriver/docs/FIELD-REPORT-v100-sxm2.md
didier 2d50042933 docs(field-report): same 1290 MHz VOLT cap on two more GV100 boards (#532)
Adds two independent reproductions of the NV_ERR_NOT_SUPPORTED VOLT_LOAD cap at 5879d3b3:
a Tesla V100-PCIE-32GB (10de:1db6) on kernel 7.0.0-44 and a Tesla V100-SXM2-32GB (10de:1db5)
on kernel 6.8.0-151, both requesting NDIV 183 (1372.5 MHz) at 905 mV and both landing on 1290
MHz with the identical load=0xd6d6d6d6 get=0x56 set=0xffff signature, while HBM reaches
1107.0 MHz on both.

PCIe and SXM2 packages, two kernel series and two target voltages answer the same way, which
supports the existing conclusion that the missing piece is the PMU task stack rather than the
board or the RPC payload.
2026-12-04 20:50:53 -08:00

18 KiB
Raw Permalink Blame History

Field report: single V100-SXM2-32GB, Ubuntu 26.04, kernel 7.0.0-44 — install, tuning, and A/B against stock 580.178.04

Status: installed and working, boot-persistent. Written 2026-12-01 against master cbaa0fe (v0.2.0 era). Everything below was measured on the machine described; nothing is extrapolated from another host.

Host identifiers are redacted (hostname, GPU UUID, paths under /home/<user>).

Environment

  • GPU: 1× Tesla V100-SXM2-32GB (10de:1db5), bare metal, on a Supermicro SYS-6028R-T dual-Xeon board. No NVLink peers. Single IOMMU group.
  • OS: Ubuntu 26.04, kernel 7.0.0-44-generic, gcc 15.2.0, Secure Boot disabled.
  • nvdriver: master cbaa0fe, built with pinned rustc 1.100.0. make modules + uvm-bridge + modeset-bridge; check_kernel_module.py green (largest_stack: 1000, 0 GOT, 0 SIMD, 0 memcpy).
  • Firmware: gv100.fw extracted with tools/extract_gv100_firmware.py (85 records, sha256 681b0cee…), installed to /lib/firmware/nvidia-rs/580.178.04/.
  • Userspace: stock 580.178.04 (libcuda, libnvidia-ml, nvidia-smi), unmodified.
  • Workload: Strata engine (strata CLI, custom CUDA engine) serving a 251B-class MoE (IQ3_S, 84 GiB on NVMe, ~45 GiB of experts streamed), 256k context, --kv k8v4, --spec 4, 4k-token prompt, greedy-ish sampling, fixed seed.

Result: the driver is within noise — the workload's memory strategy is what moves

Two variables turned out to matter far more than the driver: whether the engine pages experts from disk (--mmap-experts) or keeps them resident, and whether the cache is warm. A first pass that compared only one arm against one arm credited the driver with a prefill doubling; the full matrix below shows that most of it was cold-cache and arm asymmetry.

All arms: same card, model, flags, 4k-token prompt, 256k context, two or three runs each.

Arm decode tok/s prefill tok/s
stock, experts resident (no paging), default clocks 44.42 798.5
stock, resident, SM locked 1290 43.59 / 42.36 807.5 / 798.5
nvidia_rs, resident, HBM 1107 43.72 / 41.98 815.3 / 818.4
nvidia_rs, resident, HBM stock 877 40.10 / 40.99 800.0 / 788.8
stock, paging, default clocks 23.74 / 22.68 133.3 / 264.7
stock, paging, SM locked 1290 22.32 / 23.12 268.3 / 271.7
nvidia_rs, paging, HBM 1107 21.93 / 22.67 / 22.50 266.6 / 274.0 / 275.2

Attribution

  • Paging vs resident is worth ~1.9x decode and ~3x prefill (43 vs 22 tok/s, 800 vs 270). That is Strata's expert paging, not the driver.
  • The driver is inside the noise band in both strategies. No arm separates by more than ~5%, and the direction flips with the run.
  • The HBM unlock is the only driver-side lever that shows a consistent sign: 1107 MHz beats 877 MHz in the resident arm (42.8 vs 40.5 tok/s averaged), ~5%, at the edge of significance. It does not rescue the paging arm, because that path is not HBM-bound.
  • The SM clock is not the binding constraint here. Under load the stock driver holds 1530 MHz at 100% utilisation and nvidia_rs holds 1290 MHz — stock is 19% higher — and still lands within noise. v100_p0_gpc_ndiv 190 and 204 both stay at 1290 on this card (VOLT HS scaling unavailable), so 1290 is this driver's ceiling here, not a tuning choice.

An earlier draft of this report claimed stock "never ramps" from 135 MHz. That reading was sampled at idle; stock ramps to 1530 the moment work arrives. The corrected statement is that the two drivers reach similar throughput by different means, and that the workload's memory strategy dominates both.

The 1290 MHz cap: VOLT_LOAD returns NV_ERR_NOT_SUPPORTED

v100_p0_gpc_ndiv=190/204 are inert here. The divider is only honoured above 172 when v100_p0_volt_uv is set, which routes through runtime_pmu_volt_init_and_scale; the cap target_gpc = if req_gpc > 172 && !volt_raised { 172 } then holds 1290 MHz. That is the conservative branch: above 1290 the silicon needs 950–1015 mV, which is what the VOLT unit exists to request.

v100_p0_volt_uv is 0444 (load-time only), so this was tested with the override in /etc/modprobe.d and a reboot. Observed:

nvidia_rs: GV100 PMU VOLT gpu=0x00008100 load=0xd6d6d6d6 get=0x56 set=0xffff
           uv=830000->950000 vid0_pwm1=0x00000043->0x00000043
nvidia_rs: GV100 PMU PMGR gpu=0x00008100 load=0x0 poll=0xdead ch0=0 mW ch7=0 mW

0x56 is NV_ERR_NOT_SUPPORTED, and it comes back for all four VOLT RPCs — including the read-only VOLT_RAIL_GET_VOLTAGE — so it is the unit, not the payload. set_st stays 0xffff because the stepping loop never runs.

Narrowing done so far:

  • The transport is fine: PMGR_LOAD on the same path returns 0x0, and nvidia-smi -pl reaches RM_CONTROL 0x2080a613 (which also answers 0x56).
  • Framing is not the difference: build_volt_load_rpc and build_pmgr_load_rpc emit the same header ([0]=0, [1]=unit, [2]=func); the PMGR builder adds a patch_mask u32 at 0x10 and the VOLT RPC is bare per its _nv060702rm rpc_size = 0x10.
  • Prerequisites are missing. Stock's task stack is VFE -> THERM -> VOLT -> CLK -> PMGR -> PERF. pmu_task_stack exists but is bookkeeping only — bring-up constructs it and marks Vfe loaded without sending anything. Sending bare VFE_LOAD (0x09/0x03) and THERM_LOAD (0x0d/0x02) before VOLT (added on this branch, noted as 5646_00<unit>) returns 0x56 for both as well, so those loads need their own BOARDOBJGRP payloads.
  • The PMU init handshake never runs on this path. pmu_init/pmu_post_init exist and are referenced from kernel/pci.rs, but pmu_bringup.rs never invokes them.

Further narrowing (all instrumented, all negative):

  • The super-surface writes succeed. The three BOARDOBJGRP uploads return 0 (5353_0001/2 notes) — the payloads land where intended, so it is not a write or offset failure.
  • The override reaches the driver (5056_0001 = 0x000e7ef0 = 950000 uV) and is clamped correctly, so the parameter path is fine.
  • Retries do not help. Three attempts with 2–6 ms settling still answer 0x56.
  • Payload shape is not it either. PMGR_LOAD carries a patch_mask u32 at 0x10 and succeeds; sending VOLT_LOAD in the same 0x14 form instead of the documented bare 0x10 still answers 0x56.
  • 0x56 means "bad request", not "absent unit". A bare func-3 RPC to every unit id 0x00..=0x20 returns 0x56 — including PMGR (0x18), which works fine with a real payload. So unit presence cannot be read from that probe.

Static analysis of 580.178.04 (objdump + relocations on nv-kernel.o_binary) shows what the RPCs actually need:

  • _nv060702rm (VOLT_LOAD) begins cmpq $0x0,0x2120(%rdi) and returns 0x3d early when that pointer is null; the real path passes *(rm+0x2120)+0xf68 as the device to the RPC sender. _nv012207rm (BOARDOBJ_GRP_CMD) has the same null test and returns 0x40. rm+0x2120 is the VOLT device object, so both RPCs need it to exist first.
  • The RPC body is confirmed correct: _nv060702rm zeroes 0x14 then 0x10 bytes, writes 0x0e00 (unit 0x0e at +1) and movb $0x3,0x2 (func 3), then sends exactly 0x10 bytes — so the bare builder in this tree matches, and the 0x14 experiment was redundant.
  • That object is built by a construct chain dispatched through an ops table (no direct call): _nv060807rm → _nv060808rm → _nv060704rm / _nv060971rm / _nv060941rm (device constructor). _nv060807rm is reached only via a data relocation at 0x4dc7850.
  • Sweeping the GRP_CMD command byte 0..4 against VOLT_DEVICE returns 0x56 for every value, so the command byte is not the discriminator either.

What is left is the PMU task stack itself: VFE -> THERM -> VOLT -> CLK -> PMGR -> PERF. pmu_task_stack is bookkeeping only, the VFE_LOAD/THERM_LOAD payloads are not derived, and the PMU init handshake (pmu_init/pmu_post_init, referenced from kernel/pci.rs) is never invoked from the bring-up path. Until the stack is driven in order, 1290 MHz is the honest ceiling here — 19% below the 1530 MHz stock reaches.

Same cap on two more boards (2026-12-04)

The signature is not specific to that machine. Two independent hosts, both at 5879d3b3, asking for a lower 905 mV (NDIV 183 = 1372.5 MHz), so the payload differs from the 950 mV case above:

Host GPU Kernel dmesg
10.1.1.200 Tesla V100-PCIE-32GB (10de:1db6) 7.0.0-44-generic GV100 PMU VOLT gpu=0x00000200 load=0xd6d6d6d6 get=0x56 set=0xffff uv=830000->905000 vid0_pwm1=0x000
10.1.1.122 Tesla V100-SXM2-32GB (10de:1db5) 6.8.0-151-generic GV100 PMU VOLT gpu=0x00000100 load=0xd6d6d6d6 get=0x56 set=0xffff uv=830000->905000 vid0_pwm1=0x000

Both then log GV100 P0 boost active: GPC 555.0 -> 1290.0 MHz, XBAR 1380.0 MHz and report clocks.sm = 1290, while v100_p0_gpc_ndiv=183 and v100_p0_volt_uv=905000 are confirmed loaded from /etc/modprobe.d/nvdriver.conf. HBM (v100_hbm_ndiv=82) does reach 1107.0 MHz on both, so what holds is exactly the !volt_raised branch — not the divider, the NAFLL, or the V/F table.

Across PCIe and SXM2 packages, two kernel series, two gpu= ids and two target voltages the answer is identical, which supports the conclusion above: the missing piece is the PMU task stack, not the board or the RPC payload.

Installation notes (what the documented path needed here)

install.sh could not complete as shipped, for two reasons:

  1. Stock modules cannot be unloaded. rmmod nvidia_drm fails with in use while nothing holds /dev/nvidia* and lsof/fuser show no holders — the refcount is internal DRM/fbdev registration, and unbinding the vtconsole does not clear it. The installer's unload loop aborted under set -e. Patch: tolerate the failure and unbind the device from stock instead, then let the blacklist keep stock out at the next boot.
  2. The udev rule only published /dev/nvidiactl. NVML resolves the device through /dev/char/<major>:<minor>, so nvidia-smi failed with "GPU access blocked by the operating system" even though /dev/nvidiactl existed and pointed at the right node. Patch: SYMLINK+="nvidiactl char/195:255" (and char/195:%n, char/504:0, char/195:254 for the GPU/UVM/modeset nodes).

The live-swap also leaves stale stock device nodes at /dev/nvidia* which shadow the udev symlinks; delete them and re-trigger udev. A clean boot avoids both problems entirely.

Working configuration (persisted in /etc/modprobe.d/nvdriver.conf):

options nvidia_rs runtime_engines=1 pci_target=* v100_hbm_ndiv=82 \
        v100_p0_gpc_ndiv=172 nvlink=0 enable_resizable_bar=0

nvlink=0 and enable_resizable_bar=0 are from the #160 workaround set; on a single GPU without NVLink peers they are the conservative choice.

Operational behaviour

  • Live clock writes work. echo 78 > /sys/module/nvidia_rs/parameters/v100_hbm_ndiv moved the memory clock to 1053 MHz within a second, no reload.
  • Do not write clocks while a model is loading. Two consecutive engine starts died (native head upload: out of memory) when the divider was changed mid-load. Set clocks while the GPU is idle.
  • First start after boot is flaky. Twice the engine failed at bring-up (cublasCreate: cuBLAS status 3, once native head upload: out of memory) with the GPU otherwise idle and 0 MiB in use; the immediate retry succeeded and served normally at 12 GiB VRAM free. A Restart=on-failure / RestartSec=15 drop-in papers over it.
  • power.draw is N/A and the power limit cannot be set (#136). The card enforces 300 W on its own. Do not tune against the power reading.
  • nvidia-smi process table is empty while VRAM is demonstrably in use. (An earlier draft also claimed utilization.gpu was stuck at 0%; that was sampled during model load and is wrong — it tracks load correctly, see the soak below.)
  • Going back to stock needs a reboot — the module refcount does not reach zero, so rmmod refuses after a workload has run.

Verification performed

  • nvidia-smi native, no namespace launcher: 1107 MHz mem, 1290 MHz SM, P0, 41–44 °C, 0 volatile ECC errors.
  • Survived a reboot: udev recreated /dev/nvidiactl and /dev/char/195:255, the module autoloaded with the tuned options, X (VNC) started, engine served, chat completed.
  • Concurrency: 4 simultaneous CUDA processes at 30.6 / 31.4 / 33.9 / 34.2 tok/s, no 0x65, no back-off. (Not the target workload — single-stream is — but it did not fall over.)
  • Clean rmmod after a single-process run in the VFIO harness: clean_unload: true.
  • The heaviest paging workload on this box (DeepSeek V4.1 Flash IQ1_M, 112 GiB, 32 GB card, expert streaming) loads in 60 s and serves coherently at 6.9 tok/s decode / 8.4 tok/s prompt — it runs, on a driver whose SM ceiling is 19% below stock's.

Harness changes carried in this branch

tools/vm/run_vfio_guest.py gained two opt-in options for large-model work in the guest, both off by default so the stock parity-suite guest is unchanged on any host:

  • --home-mount PATH shares a host directory read-only over 9p at the same path.
  • --extra-blk DEV[:MOUNTPOINT] attaches a raw block device read-only as virtio-blk and mounts it in the guest (default mountpoints /mnt/extra0, /mnt/extra1, …). The guest loads virtio_blk and its dependencies first, staged into the initramfs only when a disk is attached. The device must contain an ext4 filesystem — the guest mount is hardcoded -t ext4 -o ro,noload, so an XFS or btrfs partition attaches but does not mount.

Plus NV_RS_VM_RAM_MB to override the guest RAM size, which the 4 GiB default cannot cover for a 45 GiB expert set.

The reason the block path exists: 9p is single-threaded, and an 84 GiB model took >20 min to load over it versus ~90 s over virtio-blk with cache=writeback; cache=none (O_DIRECT) is ~10% slower again.

Reproduction

git clone https://github.com/nvdriver/nvdriver && cd nvdriver
git checkout cbaa0fe         # the revision every number in this report was measured on
PATH=/usr/sbin:$PATH make modules uvm-bridge modeset-bridge
# NB: ./install.sh at cbaa0fe predates the two installer fixes (they landed in 627e607, which is
# newer): it aborts on a pinned stock module and does not publish /dev/char/195:*. Either run the
# install step from 627e607 or later, or apply those two changes by hand before installing.
sudo ./install.sh
# add the tuning options to /etc/modprobe.d/nvdriver.conf, then reboot

Bench (Strata, 256k, 4k prompt, 3 runs, warm cache) — swap --mmap-experts for the resident arena as the workload dictates:

strata --pack <pack> --tokens-file <4k-ids> --native <shard1.gguf> --ple-gguf <shard1.gguf> \
       --expert-profile <profile.bin> --expert-cache auto --mmap-experts \
       --prefill 2048 --spec 4 --max-context 262144 --kv k8v4 --max-new 128 --stats

Stability soak

30 minutes of continuous load (llama-bench, 4B BF16, 512/512, 400 repetitions), telemetry sampled every 30 s. This is the run that decides whether the card is safe to leave on this driver.

Metric Result
Sustained utilisation 94–96%
Peak die temperature 71 °C (the driver steps GPC down at 80 °C)
Clocks 1290 MHz SM / 1107 MHz HBM, no stepping
ECC 0 corrected, 0 uncorrected across the whole run
Xid none
Throughput pp512 5228 ± 59, tg512 136.05 ± 0.06
Cool-down 41 °C at 0% utilisation afterwards

The ±0.06 tok/s spread over 400 repetitions is the meaningful part: no drift, no silent throttling, no degradation as the run progressed. Nothing in dmesg.

For contrast, the adapter-board V100-SXM2-16GB in #136 settles at 84 °C at the same 1290 MHz and steps to 1200 MHz at ~80 °C. On a real server chassis (SYS-6028R-T, stock fans) the same silicon holds 71 °C, so that gap is the heatsink and airflow, not the driver.

Operational recovery notes

Two failure modes cost real time on this host and are worth writing down.

A stale BAR reservation blocks every subsequent bind. After a module unload/reload cycle the device can end up with BAR 0 reserved by a driver instance that no longer exists. Symptoms: echo <bdf> > /sys/bus/pci/drivers/nvidia_rs/bind fails with I/O error, dmesg shows BAR 0: can't reserve [mem ...] and probe with driver nvidia_rs failed with error -16, and reading /sys/bus/pci/devices/<bdf>/resource0 returns EIO even with no driver bound and the device in D0. Rebinding does not clear it; rmmod nvidia_rs plus a fresh modprobe does, because the unload releases the reservation.

A device handed to vfio-pci needs its BARs enabled and must be awake. A freshly bound device comes up with Region 0 ... [disabled] in D3hot; QEMU then reports Failed to mmap BAR 0: Device or resource busy and every vfio_region_read fails, so the guest never probes the GPU. echo 1 > enable plus echo on > power/control after the bind fixes that. Separately, rmmod while the device is still bound leaks the BAR for the next guest — unbind first.

Telemetry that does work: utilization.gpu tracks load correctly on this build (94% under a sustained llama-bench run, 0% idle). An earlier draft of this report claimed it was stuck at 0%; that was sampled while the engine was still loading the model. power.draw stays N/A and the process table stays empty — both real gaps, covered above.

#58 (default OC), #63 (second process 0x65), #76 (PCIe instability at 82/78, live-write wedge), #133 (bare metal NVML "blocked by the OS"), #136 (power limit / synthetic power), #160 (SXM2 0x65, and the workaround set used here).