Files
nvdriver/docs/FIELD-REPORT-rtx-a4500-ga102gl.md
Miguel A acd2bdb58e docs: add RTX A4500 (GA102GL) field report and update support matrix (#505)
* docs: add RTX A4500 (GA102GL) field report and update support matrix (#504)

* docs: limit RTX A4500 parity claim to llama bench throughput
2026-12-04 20:28:28 -08:00

9.3 KiB
Raw Permalink Blame History

Field report: single RTX A4500 (GA102GL, 20 GB), NixOS 27.05, kernel 7.3.6 — GA102 GSP-RM bring-up, CUDA, and llama bench throughput parity

Status: working on live silicon (GSP-RM boot/unload, NVML/nvidia-smi, CUDA Driver API, hwmon, and llama bench throughput parity verified — tokens/s only: llama bench does not compare logits against the stock driver, and the CUDA smoke test verifies memory transfer, not kernel results; reverted to stock driver afterwards because this host serves production k3s/CDI lanes). Written 2026-12-04 against master 19a0d16 (19a0d16f3ce637c20dc8af212b3cae14e5ba12f7, tracked in #504). Everything below was measured on the machine described; evidence categories are tagged [A] (static analysis) vs [O] (observed on live silicon).

Host identifiers are redacted (hostname, GPU UUID, serial number, local paths).

Environment

  • GPU: 1× NVIDIA RTX A4500 (GA102GL, 10de:2232, rev a1, subsys 17aa:163c), 20470 MiB GDDR6, ECC disabled, compute 8.6, VBIOS 94.02.88.00.04, PCIe Gen3 x16, 200 W limit. Primary framebuffer GPU.
  • Host: Lenovo ThinkStation P520c, Xeon W-2225, bare metal, intel_iommu=on iommu=pt, Secure Boot disabled. 0000:65:00.0 (VGA) and 0000:65:00.1 (HDA) share an IOMMU group.
  • OS: NixOS 27.05, kernel 7.3.6 (7.3.6 SMP preempt mod_unload), rust-bin.stable."1.100.0" with x86_64-unknown-none (via oxalica/rust-overlay) + pahole.
  • nvdriver: master 19a0d16, make modules against the host's exact linux-7.3.6-dev tree. tools/check_kernel_module.py passed ("passed": true, largest_stack: 1016, data_relocations_to_code: 305, no_SIMD_x87_registers: true, no_unsupported_GOT_relocations: true, ibt_gate_enforced: true).
  • Firmware: nvidia/580.178.04/gsp_ga10x.bin (72 MiB, sha256 3b89a63f…) extracted from NVIDIA-Linux-x86_64-580.178.04.run and staged via /sys/module/firmware_class/parameters/path; bundled GA10x bootloader and SEC2 booters.
  • Userspace: Tested with both unmodified 580.178.04 (nvidia-smi, libnvidia-ml.so.1, libcuda.so.1, libnvidia-ptxjitcompiler.so.1) and the host's native 620.73.04 userspace.
  • Stock baseline: NVIDIA 620.73.04 open kernel modules, same card, same ghcr.io/ggml-org/llama.cpp:server-cuda binary (build: ee4671584 (12949)), same GGUF weights, GPU idle.

What worked [O]

1. First-open hardware inventory (bringup=0)

tools/run_hardware_first_open.py --pci 0000:65:00.0 --confirm 0000:65:00.0 --label rtx-a4500 --expect-arch 0x17:

  • "passed": true, "first_open": "ENOTSUP", "driver_after_load": "nvidia_rs", "driver_final": "nvidia".
  • 107 inventory words, 0 static mismatches.
  • tools/arch_gate.py: 000a00 = 172a1000 (arch 0x17 Ampere, implementation 2 GA102, major_rev 10, minor_rev 1).
  • Notes: 47530002 00000004 (Ga10x), 47530001 00000001 (NOTE_GSP_STAGE = 1).

2. Full GA102 GSP-RM boot & clean unload (ga10x_gsp=1, runtime_engines=1)

tools/run_hardware_first_open.py --pci 0000:65:00.0 --confirm 0000:65:00.0 --label rtx-a4500-ga10x-boot --expect-arch 0x17 --bringup 0 --module-param runtime_engines=1:

  • "passed": true, "first_open": "succeeded", "driver_final": "nvidia", "module_loaded_final": false.
  • Key milestones from dmesg:
nvidia_rs 0000:65:00.0: nvdriver: skipping BAR1 ReBAR resize on active primary/framebuffer GPU
nvidia_rs 0000:65:00.0: streaming DMA mask raised to 47 bits (DMA leases and the coherent mask stay at 32)
nvidia_rs 0000:65:00.0: ga10x: PMC_BOOT_0, GFW boot, WPR2 hi b72000a1 3ff 0 0
nvidia_rs 0000:65:00.0: ga10x: VBIOS: image0, image 0xe0 at, FWSEC desc, ucode id fe00 24600 4128c 9
nvidia_rs 0000:65:00.0: ga10x: gsp_ga10x.bin: .fwimage bytes, pages, runs, signature bytes 4783000 4783 24 1000
nvidia_rs 0000:65:00.0: ga10x: WPR2: start, heap, ELF, FRTS 4f2b00000 4f2c00000 4fac70000 4ff400000
nvidia_rs 0000:65:00.0: ga10x: fwsec-frts (halted, mbox0, mbox1, falcon) 1 0 0 110000
nvidia_rs 0000:65:00.0: ga10x: fwsec-frts: result, error, WPR2 lo, hi 0 0 4ff4000 4ff4e00
nvidia_rs 0000:65:00.0: ga10x: booter-load (halted, mbox0, mbox1, falcon) 1 0 0 840000
nvidia_rs 0000:65:00.0: ga10x: sequencer: writes, modifies, polls, other 138 0 68 4
nvidia_rs 0000:65:00.0: ga10x: GSP-RM up: ms after booter-load, result 6d3 0 0 0
nvidia_rs 0000:65:00.0: ga10x: static info: FB length, heap base, limit, BAR1 root 4ff600000 5100000 4ef1dffff 4f12ac000
nvidia_rs 0000:65:00.0: ga10x: BAR1 check: window->BAR1, BAR1->window (want 6a102b1a, 51de0ba1) 6a102b1a 51de0ba1 0 0
nvidia_rs 0000:65:00.0: ga10x: runlists: GR0, CE2, NVDEC0, NVENC0 0 1 3 6
nvidia_rs 0000:65:00.0: ga10x: fwsec-sb (halted, mbox0, mbox1, falcon) 1 0 0 110000
nvidia_rs 0000:65:00.0: ga10x: booter-unload (halted, mbox0, mbox1, falcon) 1 0 ff 840000
nvidia_rs 0000:65:00.0: ga10x: booter-unload: result, WPR2 lo, hi 0 1ffffe00 0 0

3. Live runtime (driver_version=580.178.04 runtime_engines=1 + tools/bind_dev_nodes.sh --bind + 580.178.04 userspace)

  • nvidia-smi (rc=0): NVIDIA RTX A4500, Fan 30%, Temp 39C, Perf P0, Power 59W / 200W, VRAM 0MiB / 20470MiB, ECC Off, Compute M Default.
  • hwmon: /sys/class/hwmon/hwmon2/name = nvdriver, temp1_input = 55312 (55.3 °C after llama bench).
  • CUDA Driver API: cuInit(0) == 0, cuDeviceGetCount == 1, cuDeviceGetName == "NVIDIA RTX A4500", cuDeviceTotalMem_v2 == 20567818240 (19615 MiB), cuCtxCreate_v2 == 0, cuMemAlloc_v2(4 MiB) == 0, cuMemcpyHtoD_v2 == 0, cuMemcpyDtoH_v2 == 0 (verified byte-for-byte), cuMemFree_v2 == 0. llama bench --list-devices reported CUDA0: NVIDIA RTX A4500 (19615 MiB, 19433 MiB free), VMM: yes.
  • Clean post-benchmark unload: fwsec-sb (result=0), booter-unload (result=0, WPR2 lo=1ffffe00 hi=0), zero DMAR/IOMMU faults, zero Xids.

Benchmarks (llama bench, build ee4671584 (12949))

Same GGUF files, same flags (-ngl 99 -r 3 -fa on -b 4096 -ub 2048), GPU otherwise idle. Caveat: the stock arm used vendor 620.73.04 userspace/GSP-RM (with k3s idle), while the nvidia_rs arm used 580.178.04 userspace/GSP-RM (with k3s stopped); the small +0.8%–2.7% delta is reported for completeness, not claimed as a driver speedup.

Model KV Test Stock 620.73.04 nvidia_rs (580.178.04) Delta
Qwen3.8-27B UD-Q3_K_XL (12.23 GiB) q4_0/q4_0 pp512 1038.42 ± 3.62 t/s 1064.87 ± 2.33 t/s +2.5%
tg128 32.31 ± 0.14 t/s 32.73 ± 0.13 t/s +1.3%
pp4096 1033.17 ± 0.70 t/s 1061.39 ± 3.10 t/s +2.7%
tg128 (4k) 31.54 ± 0.10 t/s 32.24 ± 0.08 t/s +2.2%
gemma-4-26B-A4B IQ4_NL (12.66 GiB) q8_0/q8_0 pp512 3454.47 ± 7.36 t/s 3497.15 ± 2.86 t/s +1.2%
tg128 104.28 ± 0.12 t/s 105.09 ± 0.07 t/s +0.8%

What did not work (actionable findings)

1. R620 userspace (620.73.04) against ga10x_gsp=1 (580.178.04 GSP-RM) [O] + [A]

With driver_version=620.73.04 runtime_engines=1 (default ga10x_gsp=1), nvidia-smi (620.73.04) printed ERR! / Invalid Argument for Name, Brand, Fan, Power, MIG, PDI, Module Id, and Uptime, and libcuda.so.1 (620.73.04) failed cuInit(0) with 100 (CUDA_ERROR_NO_DEVICE). dmesg logged four status=0x1f (NV_ERR_INVALID_ARGUMENT) controls:

  • 0x20800102 (GPU_GET_INFO_V2): 580 size 564 B vs R620 size 588 B (src/nvidia/src/rmapi/server.rs:235)
  • 0x20800110 (GPU_GET_NAME_STRING): 580 size 132 B vs R620 size 68 B (server.rs:236)
  • 0x2080852e (CMD_THERM_852E): 580 size 528 B vs R620 size 1432 B (server.rs:240)
  • 0x20810108 (CMD_BINARY_API_108 / LICENSE_QUERY): 580 size 992 B vs R620 size 1376 B (server.rs:243)
  • Plus 0xde0001 status=0x56 (NV_ERR_NOT_SUPPORTED).

[A] server.rs accepts the R620 sizes, but gsp_route.rs forwards those buffers straight to 580.178.04 GSP-RM, which rejects the R620 lengths with 0x1f. Switching userspace to 580.178.04 resolved all four immediately.

2. Alternate ga10x_gsp=0 path (gsp_bringup.rs + gsp_abi=620 + 620.73.04/gsp_ga10x.bin) [O]

With gsp_abi=620 ga10x_gsp=0 bringup=1 runtime_engines=0:

  • Loaded nvidia/620.73.04/gsp_ga10x.bin (47530003 0116e898 = 18 278 552 bytes).
  • Missed nvidia/ga102/gsp/booter_load-580.bin (-2), logged 47530001 00000002, and returned ETIMEDOUT (110).
  • After unbind + rmmod nvidia_rs, stock nvidia failed probe with addr: 0x110100 regvalue: 0xbadf5620, kflcnWaitForHalt_TU102: Timeout waiting for Falcon to halt, gpuWaitForGfwBootComplete_TU102: progress 0xff, RmInitAdapter failed! (0x62:0x65:2205). A clean reboot recovered the card immediately.

3. NixOS portability notes [O]

  • Building on NixOS requires pahole in the shell (for gen-btf.sh) and a toolchain with x86_64-unknown-none core (e.g. oxalica/rust-overlay, since nixpkgs#rustc lacks it).
  • tools/run_hardware_first_open.py:119 hardcodes "/usr/bin/python3" instead of sys.executable.
  • tools/bind_dev_nodes.sh:1 uses #!/bin/bash instead of #!/usr/bin/env bash.
  • On a live swap (rmmod nvidia), udev's PCI modalias rule re-loads stock nvidia within ~1 s unless udevadm control --stop-exec-queue is used first.
  • nvdriver: skipping BAR1 ReBAR resize on active primary/framebuffer GPU on a single-GPU host where the card owns the boot framebuffer.