[615.78.08] "can't update VA space" when VRAM is full: user space driver reuses stale VAs

Follow-up to my earlier report in the 615 release feedback thread (615 release feedback & discussion - #231 by hurikhan77), now with a trace that shows when the problem starts and that it is not a race.

System

RTX 3080 Ti (GA102, 12 GB, VBIOS 94.02.71.40.4C), Gentoo, kernel 6.18.59, KDE Plasma on Wayland, open kernel modules with default module options. Marvel’s Guardians of the Galaxy (Steam 1088850), D3D12 via vkd3d-proton (Proton Experimental 11.0-20261027b, vkd3d-proton cae2e003b), no dxgi.maxDeviceMemory and no VKD3D_CONFIG workarounds.

Symptom

Once VRAM is full, the kernel log shows blocks like:

NVRM: nvCheckFailedNoLog: Check failed: 0 == (pMapNode->gpuMask & gpuMask) @ gpu_vaspace.c:4502
NVRM: nvCheckOkFailedNoLog: Check failed: Invalid argument to call [NV_ERR_INVALID_ARGUMENT] (0x0000001F) returned from _gvaspaceMappingInsert(pGVAS, pGpu, pVASBlock, vaLo, vaHi, flags) @ gpu_vaspace.c:2035
NVRM: nvCheckFailedNoLog: Check failed: NV_OK == status @ virt_mem_allocator_gm107.c:2585
NVRM: dmaAllocMapping_GM107: can't update VA space for mapping @vaddr=0x2e69a0000

The game runs smoothly until VRAM runs full. Then frame times become unstable with heavy stutter. After the errors it partly recovers, but with GPU load above 95 % instead of about 75 %.

Not caused by local patches

The same blocks appear with unpatched drivers: 8 with 615.71.09 (2026-09-26), 30 and 99 with stock 615.78.08 (2026-10-11 to 2026-10-19). I now run 615.78.08 with an experimental patch series for the open kernel modules (sysmem fallbacks, locking, nvidia-drm). Those patches do not touch the RM VA space code, and in the trace RM rejects every bad request correctly. The bad requests come from the game process, i.e. from the user space driver.

Trace

I traced the ioctl syscall tracepoints and logged the parameter blocks of RM_ALLOC, RM_FREE, RM_DUP_OBJECT, RM_MAP_MEMORY_DMA and RM_UNMAP_MEMORY_DMA at entry and exit (bpftrace tracer by Bober from the “Native DirectX 12 on Linux” thread). Two sessions on the same boot and driver:

  • 29 minutes without VRAM pressure: 21244 RM calls, all successful, 564 moves through a temporary virtual object, no failure.
  • 87 minutes that ran into the VRAM limit: no failure for 56 minutes. The first failed unmap comes 1.2 s after RM starts placing allocations in sysmem (sysmemConstruct_IMPL: Sysmem alloc of 0x1000000 bytes with page size 0x10000 failed, retrying with page size 0x1000). After that: 662 failed unmaps (NV_ERR_OBJECT_NOT_FOUND) and 11 failed maps (NV_ERR_INVALID_ARGUMENT). The 11 failed maps match the 11 dmesg blocks to the millisecond.

Every failed map follows the same sequence (A = virtual object, T = temporary virtual object, M = memory):

46197.509 DeferedReleaseThread  map    T <- M  flags 0x208  VA 0xe64b0000   ok
46197.518 DeferedReleaseThread  unmap  A                    VA 0x2e69a0000  ok
46197.518 DeferedReleaseThread  map    A <- M  flags 0x0    VA 0x2e69a0000  ok
46208.765 ZRenderManager        unmap  A                    VA 0xe64b0000   NV_ERR_OBJECT_NOT_FOUND
46208.765 ZRenderManager        map    A <- M  flags 0x40000208             NV_ERR_INVALID_ARGUMENT

A is unmapped at the VA that T had during the last move. The unmap misses, A keeps its mapping, and the next map into A collides with it.

Not a race between threads

No failed call overlaps a call on the same object from another thread. 440 of the 662 failed unmaps target a handle that the same thread freed microseconds before. The failed maps use state that has been stale for 11 s to 438 s. The calls run strictly one after the other, so this looks like stale bookkeeping in the user space driver’s eviction/move path, not a timing problem.

Data

Traces, scripts and analysis:

nvidia-bug-report.log.gz is attached.

P.S. nvidia-bug-report.sh produces a corrupt .gz on systems where gzip is pigz: report_skip() and report_and_store_error() append their own gzip member from inside a block that is already piped into gzip -c >> $LOG_FILENAME. GNU gzip writes nothing before its input ends, but pigz writes the header at once, so the inner member ends up inside the outer one. Writing the helper output to the block’s stdout instead of appending to the file directly would fix it.

nvidia-bug-report.log-2026-11-01.gz (758,6 KB)

Related reports

The same signature (0 == (pMapNode->gpuMask & gpuMask), can't update VA space, NV_ERR_INVALID_ARGUMENT) is reported in NVIDIA/open-gpu-kernel-modules#1364 with 610.57.04 and 595.84 on GA102, AD107 and TU104, for Deadlock with native Vulkan (no DXVK) and Borderlands 4 via vkd3d-proton, also with VRAM at about 96 %. So it is not specific to vkd3d-proton, this game or 615.

This is not internal bug 5762513 (Bug Report: Wayland-only: dmaAllocMapping_GM107 VA mapping failures (does not reproduce on X11)): that one is “can’t alloc VA space” with NV_ERR_NO_MEMORY from BAR1 exhaustion and goes away with Resizable BAR. ReBAR is enabled here (BAR1 16 GB). See also 357407 (general VRAM oversubscription) and 372435 (“can’t alloc VA space”, NV_ERR_NO_MEMORY in mapping_reuse.c).