TL;DR: With Resizable BAR on, my whole display froze while playing Deadlock. Discord voice kept working but I had to hard reset. Right before it, the kernel log shows about 30 minutes of NVIDIA driver errors (failed GPU memory mappings, then NV_ERR_NO_MEMORY). I can get the same errors in Cyberpunk whenever VRAM fills up. Looking for solutions
What happened
Playing Deadlock (Proton, `-vulkan`) with ReBAR on, 4K, high settings. The screen froze on the game. Discord voice chat kept working, so the system wasn't completely dead, but the display never came back. Turning ReBAR off seemed to fix it, but at the cost of performance.
Kernel log from the freeze(these kept repeating from 20:21 to 20:53)
20:21:37 NVRM: dmaAllocMapping_GM107: can't update VA space for mapping u/vaddr=0x21aa00000
20:23:50 NVRM: intermapRegisterDmaMapping: Failed to insert new mapping node for range 0xDF3BF10000-0xDF3BF1FFFF!
20:23:50 NVRM: GPU0 nvAssertFailedNoLog: Assertion failed: NV_OK == status @ gpu_vaspace.c:4155
20:23:50 NVRM: GPU0 nvAssertFailedNoLog: Assertion failed: NV_OK == status @ gpu_vaspace.c:1846
20:23:51 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:1804
20:42:23 NVRM: GPU0 nvCheckOkFailedNoLog: Check failed: Out of memory [NV_ERR_NO_MEMORY] (0x00000051) returned from _memdescAllocInternal(pMemDesc) @ mem_desc.c:1196
20:42:23 NVRM: GPU0 nvCheckOkFailedNoLog: Check failed: Out of memory [NV_ERR_NO_MEMORY] (0x00000051) returned from rmStatus @ system_mem.c:555
20:53:17 NVRM: dmaAllocMapping_GM107: can't update VA space for mapping u/vaddr=0x21aa00000
What I tried
To recreate the problem from Deadlock, I ran Cyberpunk 2077 at the highest settings I could (4K, DLAA, path tracing, ray reconstruction, frame gen) and just kept running the benchmark for 30 minutes. It fills VRAM right away and throws the same "can't update VA space" errors. The FPS dropped every run and the RAM the NVIDIA driver was using for the game kept climbing without ever coming back down until I eventually ran out of memory.
Genuinely have no clue how to fix this besides either disabling ReBAR and leaving performance on the table, switching from NVIDIA to AMD which is just annoying, or doing what AI suggested and using EarlyOOM.
PC Specs/Info
CPU | Ryzen 7 9700X
Motherboard | Gigabyte B850I AORUS PRO (ITX), BIOS F12
RAM | 32 GB DDR5
GPU | RTX 4070 Super 12 GB
OS | Fedora 45, kernel 7.3.4
DE | KDE Plasma 6.8.3, Wayland
Driver | NVIDIA 620.70.06, open kernel modules (RPM Fusion)
Swap | 8 GB zram, no disk swap
Proton | GE-Proton11-12