Bug Report: Wayland-only: dmaAllocMapping_GM107 VA mapping failures (does not reproduce on X11)

Corroborating data point for internal ticket 5762513 (Wayland-only dmaAllocMapping_GM107 / gpu_vaspace failures). Full environment, error signature and per-hour log timeline are in [610.57.04 / GA102] Mapping-node failures in gpu_vaspace.c (both 4635/2066 and 4551/2021 forms) after sustained Vulkan load pins VRAM at ~96% under Wayland · Issue #1364 · NVIDIA/open-gpu-kernel-modules · GitHub

Summary:

  • RTX 4060 8 GB (AD107, 10de:2882), nvidia-open 595.84, CUDA 13.2, kernel 7.1.5, Pop!_OS 24.04 + COSMIC 1.8.0 Wayland, game through Xwayland, Proton Experimental 11.0-100.
  • 1706 NVRM lines in a single boot while playing one game. No Xid, no GPU fall-off, compositor stayed responsive; frametimes degrade progressively and stay degraded.
  • Rate: 0 lines until VRAM reached ~94 %, then 36 in the first 18 min, 998 in the next hour, then 0 during a 1-hour pause, then 671 in 27 min on resume (roughly +50 %).
  • nvidia-smi BAR1 “Used” stayed at 60 MiB of 8192 MiB while failing.
  • Resizable BAR is already enabled on this system (BAR1 Total 8192 MiB, PCI Region 1 = 8G), so the BIOS ReBAR workaround suggested in post #17 does not cover this configuration.
  • Both signature forms appear on this box: the 4550 / 2025 gpuMask duplicate-node rejection, plus 47 intermapRegisterDmaMapping lines.
  • Untested here: the proprietary kernel module. The A/B result reported in open-gpu-kernel-modules#1364 (same userspace, proprietary module, 30+ min clean at 11.4 GiB VRAM) is the next experiment I plan to run.

Sanitized nvidia-bug-report.log.gz attached in the GitHub issue above.

partialfix.zip (2.0 KB)

Here is a patch I made that partially fixes the issue (disclaimer: AI generated, I am not a gpu driver / linux kernel expert but I have tested it for a few weeks now and it works), instead of crashing / hanging your DE it will now simply sig kill the tab. A more robust fix to make chrome work properly with rebar is beyond me, but I think this could be shipped fairly harmlessly.

If you have a GPU that supports NVIDIA’s open kernel module you can apply this patch, compile and install it.

Hi, I’ve been having an issue where game rendering freezes while the game keeps running. It’s outside my usual knowledge, so I worked through it with Claude’s help and local testing until I could trigger it on purpose.

Possibly related to internal bug 5762513. I’m on a GPU without Resizable BAR support, so the ReBAR workaround isn’t an option. I can trigger it on purpose, though not every time. Redacted nvidia-bug-report log attached (username, hostname and MAC addresses replaced).

System:

  • GPU: NVIDIA GeForce RTX 2060 SUPER, 8 GB (Turing), VBIOS 90.06.44.40.0F
  • Resizable BAR: not supported, BAR1 = 256 MiB
  • Driver: 620.70.06, open kernel modules (errors also logged on 615.78.08; seen on earlier versions too, not logged)
  • Kernel: 6.18.60-gentoo-dist
  • Distro: Gentoo Linux (OpenRC)
  • Compositor: niri 26.04 (8ed0da4)
  • XWayland: xwayland-satellite 0.8.3
  • Monitors: 1920x1080 + 2560x1080

Symptom:
The game stops updating on screen but keeps running. Sound, input and cursor changes on mouse-over still work. Only restarting the game fixes it. Alt-tab, or switching between mouse-lock and free-cursor modes in the game, does not bring it back.

Trigger:
A focus change at the same moment as an in-game UI change. For example: opening an in-game menu just as focus moves away from the game (using niri msg action focus-window-previous on a timer). Switching UI elements quickly (under about 0.5 s apart) also triggers it.

Seen in:

  • Icarus, no launch options (runs through xwayland-satellite)
  • Helldivers 2 (Proton)
  • Palworld
  • Likely others in the past (not logged at the time)

Kernel log (repeats many times while testing, always the same range):

NVRM: intermapRegisterDmaMapping: Failed to insert new mapping node for range 0xDF7DFC0000-0xDF7DFCFFFF!
NVRM: GPU0 nvAssertFailedNoLog: Assertion failed: NV_OK == status @ gpu_vaspace.c:4155
NVRM: GPU0 nvAssertFailedNoLog: Assertion failed: NV_OK == status @ gpu_vaspace.c:1846
NVRM: nvCheckOkFailedNoLog: Check failed: Invalid argument to call [NV_ERR_INVALID_ARGUMENT] (0x0000001F) returned from _gvaspaceMappingInsert(...) @ gpu_vaspace.c:1804
NVRM: dmaAllocMapping_GM107: can't update VA space for mapping @vaddr=0x15ce00000

Differences from the original report:

  • My log says “can’t update VA space” (not “can’t alloc VA space”).
  • It returns NV_ERR_INVALID_ARGUMENT, not NV_ERR_NO_MEMORY.
  • VRAM at 100% did NOT cause the freeze by itself.
  • Many of these errors happen without a freeze. The freeze seems to happen only when one particular mapping fails.

Happy to test patches or collect more logs.

nvidia-report.log.gz (534.2 KB)

Possibly related to internal bug 5762513, but in my case it still happens with Resizable BAR enabled (BAR1 = 4096 MiB), so enabling ReBAR is not a fix here. The error is the “can’t update VA space” variant, not “can’t alloc VA space”.

System:

  • GPU: GeForce RTX 3050 Laptop, 4 GB VRAM (Optimus: Intel iGPU + NVIDIA offload)
  • Driver: nvidia-open-dkms 610.57.04
  • Kernel: 7.2.4-arch1, Arch Linux
  • Compositor: Hyprland (Wayland)
  • Game: Assassin’s Creed Shadows (DX12 via vkd3d-proton)

Symptom:
The rendered image freezes when the game loads a new area of the map. Audio and game logic keep running, and the rest of the system stays responsive. GPU utilization drops to 0% and does not recover. VRAM usage at the moment of the freeze is ~3.7/4.0 GB. No Xid errors are logged. Otherwise the game runs at a stable 60 fps with no stutter.

Kernel log during the freeze:
NVRM: nvCheckFailedNoLog: Check failed: 0 == (pMapNode->gpuMask & gpuMask) @ gpu_vaspace.c:4551
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:2021
NVRM: nvCheckFailedNoLog: Check failed: NV_OK == status @ virt_mem_allocator_gm107.c:2560
NVRM: dmaAllocMapping_GM107: can’t update VA space for mapping

A freeze in a previous boot logged instead:
NVRM: Out of memory [NV_ERR_NO_MEMORY] (0x00000051) returned from rmMemPoolReserve(…) @ ctx_buf_pool.c:315
NVRM: ctxBufPoolReserve: Failed to reserve memory

Already tried, no change:

  • Proton Experimental, GE-Proton11-1, Proton 11.0
  • PROTON_ENABLE_WAYLAND=1
  • VKD3D_CONFIG=single_queue
  • Lowest texture settings
  • Cleared the shader cache
  • Steam overlay on and off
  • No other processes using significant VRAM (game ~3480 MiB, everything else ~90 MiB)
  • vm.max_map_count = 1048576
  • Downgrading to 610.43.03 is not possible: its DKMS module fails to build on kernel 7.2.4

No system, driver or game updates since September 2026. The freezes started on November 5, 2026.

nvidia-bug-report.log.gz attached (generated a few minutes after a freeze, same boot).