Skip to content

RTX 5070 (GB205): __nv_drm_gem_nvkms_map composes a mapping that spans BAR1→BAR3, causing mapping_reuse.c:273 NV_ERR_NO_MEMORY and krcWatchdog GPU lock — driver 595.71.05 (open kernel modules), Resizable BAR disabled #1132

Open

Description

@BadPackage

NVIDIA Open GPU Kernel Modules Version

595.71.05 (Open Kernel Modules, Release Build, built 2026-04-24, builder dvs-builder@U22-I3-G08-03-1)

Please confirm this issue does not happen with the proprietary driver (of the same version). This issue tracker is only for bugs specific to the open kernel driver.

  • I confirm that this does not happen with the proprietary driver package.

Operating System and Version

Fedora Linux 44 (Workstation Edition)

Kernel Release

6.19.14-300.fc44.x86_64 - by Fedora

Please confirm you are running a stable release kernel (e.g. not a -rc). We do not accept bug reports for unreleased kernels.

  • I am running on a stable kernel release.

Hardware: GPU

NVIDIA GeForce RTX 5070 (GB205, PCI ID 10de:2f04 rev a1, ASUSTeK subsystem 1043:89e6).

Describe the bug

After long uptime of normal Wayland desktop use with many GPU-accelerated clients, the NVIDIA driver attempts a DMA mapping whose computed range crosses the boundary between PCI BAR1 and BAR3. The Linux PCI resource layer rejects it with a "resource sanity check" warning, the driver returns NV_ERR_NO_MEMORY from mapping_reuse.c:273, the nvidia-drm atomic-modeset helper then fails to initialize a plane fence semaphore, and the GPU's recovery watchdog declares the GPU "probably locked" and continues to fire indefinitely. The display session becomes unrecoverable; restarting gdm is the lightest path back, full reboot is sometimes required. At the moment of the first failure, only ~1.7 GiB of 12 GiB VRAM was in use — this is not VRAM exhaustion in bytes, it appears to be exhaustion or fragmentation of the BAR1 mapping window.

Relevant hardware state

PCI BAR layout for the GPU (lspci -vv -s 08:00.0):

Region 0: Memory at f8000000 (32-bit, non-prefetchable) [size=64M]
Region 1: Memory at d0000000 (64-bit, prefetchable)     [size=256M]   ← BAR1
Region 3: Memory at e0000000 (64-bit, prefetchable)     [size=32M]    ← BAR3
Capabilities: [134 v1] Physical Resizable BAR
Capabilities: [140 v1] Virtual Resizable BAR

The GPU advertises both Physical and Virtual Resizable BAR capabilities, but the system has Resizable BAR disabled. Per /proc/driver/nvidia/params:

EnableResizableBar: 0

So BAR1 stays at 256 MiB rather than being resized to span the full 12 GiB of VRAM. This appears to be the predisposing condition for the failure.

Kernel log of the failure

Most informative dmesg excerpt (kernel timestamps, single uptime, in order):

[168814.845214] NVRM: dmaAllocMapping_GM107: can't alloc VA space for mapping.
[168814.845222] NVRM: nvAssertOkFailedNoLog: Assertion failed: Out of memory [NV_ERR_NO_MEMORY] (0x00000051)
                returned from pReuseMappingDb->pMapCb(pReuseMappingDb->pGlobalCtx, pAllocCtx, range,
                cachingFlags, &token, _reusemappingdbAddMappingCallback) @ mapping_reuse.c:273
[168814.845231] NVRM: dmaAllocMapping_GM107: can't alloc VA space for mapping.
[168814.845313] NVRM: dmaAllocMapping_GM107: can't alloc VA space for mapping.
[168814.845434] resource: resource sanity check: requesting [mem 0x00000000df550000-0x00000000e013ffff],
                which spans more than 0000:08:00.0 [mem 0xd0000000-0xdfffffff 64bit pref]
[168814.845438] caller __nv_drm_gem_nvkms_map+0x99/0xf0 [nvidia_drm] mapping multiple BARs
[168821.090046] [drm:__nv_drm_convert_in_fences [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000800]
                Failed to initialize semaphore for plane fence
[168821.090058] [drm:nv_drm_atomic_commit [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000800]
                Failed to apply atomic modeset.  Error code: -11
[168824.609543] NVRM: krcWatchdog_IMPL: RC watchdog: GPU is probably locked!  Notify Timeout Seconds: 7
[168832.801431] NVRM: krcWatchdog_IMPL: RC watchdog: GPU is probably locked!  Notify Timeout Seconds: 7
... (krcWatchdog_IMPL repeats every ~8 s indefinitely) ...
[169656.854308] [drm:nv_drm_atomic_commit [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000800]
                Flip event timeout on head 3
... (kernel falls back to fbcon shortly after) ...

The driver requested 0xdf550000–0xe013ffff (≈ 12 MiB). That range starts inside BAR1 (0xd0000000–0xdfffffff, 256 MiB) and ends inside BAR3 (0xe0000000–0xe1ffffff, 32 MiB). The Linux PCI core rejects the mapping with EAGAIN (-11) because it spans two distinct BARs.

Suspected root cause

Likely predisposing factor: ReBAR disabled keeps BAR1 at 256 MiB despite GB205 having 12 GiB of VRAM and advertising the rebar capability. The mapping computed by the driver under sustained mapping-reuse churn (pReuseMappingDb, mapping_reuse.c:273) crossed the BAR1→BAR3 boundary, as recorded by the kernel sanity check. The driver does not handle the rejection cleanly — it returns NV_ERR_NO_MEMORY upward, leaving the GPU in a state the RC watchdog cannot recover from.

Concurrent system state at first failure

$ nvidia-smi --query-gpu=name,memory.total,memory.used,memory.free,driver_version --format=csv
NVIDIA GeForce RTX 5070, 12227 MiB, 1710 MiB, 10062 MiB, 595.71.05
$ uptime    # at SSH login, after the lockup was already in progress
 23:46:58 up 1 day, 23:01,  3 users,  load average: 2.60, 1.92, 1.32
$ free -h
               total        used        free      shared  buff/cache   available
Mem:            62Gi        27Gi       3.2Gi       1.8Gi        35Gi        35Gi
Swap:          8.0Gi        71Mi       7.9Gi

Host CPU and system RAM are not under pressure. VRAM is mostly free. Failure is GPU-side only.

Kernel command line

BOOT_IMAGE=(hd4,gpt4)/vmlinuz-6.19.14-300.fc44.x86_64 root=UUID=... ro rootflags=subvol=root
rd.luks.uuid=luks-... rhgb quiet nvidia-drm.modeset=1 snd_hda_intel.power_save=0
rd.driver.blacklist=nouveau,nova_core modprobe.blacklist=nouveau,nova_core

nouveau and nova_core are blacklisted. nvidia-drm.modeset=1 is set.

Compositor / userspace

GNOME Shell on Wayland (gdm), stock Fedora xorg-x11-drv-nvidia userspace at 595.71.05.

To Reproduce

Difficult to reproduce on demand. Observed once after very long uptime:

  1. Boot Fedora 44, GNOME on Wayland, NVIDIA open kernel modules 595.71.05 (nvidia-drm.modeset=1, ReBAR disabled in BIOS).
  2. Use the desktop normally over ~47 hours with a busy mix of GPU-accelerated clients:
    • Brave Browser (~15 windows, ~20 renderer/utility processes)
    • Discord (Electron)
    • Spotify (Electron)
    • Steam + steamwebhelper
    • RustRover (JetBrains)
    • Xwayland hosting several X11 clients
    • GNOME Shell + extensions
  3. After roughly that uptime, dmaAllocMapping failures begin appearing, immediately followed by the BAR-spanning sanity-check warning and krcWatchdog.
  4. The desktop session becomes unresponsive; SSH still works, no Xid is logged, GSP appears healthy (no Xid 119), the kernel just keeps logging the watchdog every ~8 s until gdm is restarted or the box is rebooted.

Bug Incidence

Sometimes

nvidia-bug-report.log.gz

nvidia-bug-report.log.gz

More Info

GitHub-issue searches that returned no existing match:

  • dmaAllocMapping
  • mapping_reuse
  • krcWatchdog GPU is probably locked
  • NV_ERR_NO_MEMORY VA
  • GB205
  • __nv_drm_gem_nvkms_map mapping multiple BARs

Function-name note

The log says dmaAllocMapping_GM107 despite the GPU being Blackwell (GB205). Appears to be a legacy-named symbol still in use across HALs — flagged in case it is informative.

Workaround being tried

Will enable Resizable BAR in BIOS and re-test. If that prevents recurrence, this points strongly at the BAR1-size / mapping-reuse interaction described above. Will update this issue with the result either way.

Activity

  1. added
    bug
    on May 5, 2026
  2. kobago commented on Aug 10, 2026

    @kobago

    Same issue here, but on a Turing card — RTX 2060 SUPER (TU106), open kernel modules 610.57.04, kernel 7.1.6 (CachyOS), KDE Plasma 6.7.4 Wayland.

    Reliable trigger for me is video-heavy timelines in Chrome (x.com with lots of autoplaying videos). Journal shows the exact same sequence as reported above: dmaAllocMapping_GM107: can't alloc VA space for mapping → mapping_reuse.c:274 NV_ERR_NO_MEMORY assertion → Xid 56 storm → krcWatchdog: GPU is probably locked! → kwin_wayland hangs until hard reboot. FWIW hardware video decode is not involved in my case (Chrome reports zero supported decode profiles on this setup), so it reproduces with pure software decode + compositing load.

    One note on the suggested workaround: Turing has no Resizable BAR support at all — the GPU exposes no PCIe ReBAR capability and BAR1 is fixed at 256 MiB — so "enable ReBAR in BIOS" is not an option for 20-series users. A driver-side fix would be the only way out for this generation.

  3. etchebarne commented on Aug 16, 2026

    @etchebarne

    Same here, I had the same failure on an RTX 4060, I was using Fedora 44, kernel 7.1.8-200.fc44, GNOME 50.4 on Wayland, NVIDIA Open Kernel Module 610.57.04, RTX 4060 (AD107), BAR1 256 MiB and BAR3 32 MiB; ReBAR disabled, ASUS PRIME B450M-A II, BIOS 4401.

    After about four hours of normal desktop use, GNOME became completely unresponsive and required a hard reboot. These are some logs I found:

    NVRM: dmaAllocMapping_GM107: can't alloc VA space for mapping.
    NVRM: ... NV_ERR_NO_MEMORY ... mapping_reuse.c:273
    resource: requesting [mem 0xefba0000-0xf06cffff], which spans more than
              BAR1 [mem 0xe0000000-0xefffffff]
    caller __nv_drm_gem_nvkms_map ... mapping multiple BARs
    NVRM: kgmmuInvalidateTlb_GM107: TLB invalidation failed waiting for completion
    NVRM: dmaAllocMapping_GM107: can't update VA space for mapping
    
  4. viniciusmorgado commented on Aug 22, 2026

    @viniciusmorgado

    Same failure here on Ada (RTX 4060) with 610.57.04 — not Turing-specific, still present in the 610 series — and I hit it twice on the same day, through both escalation paths: the full krcWatchdog → GSP timeout → Xid 175/154 chain (GPU dead, host alive, no recovery in 23 min), and a sub-20 s full hard lock. The driver itself names the triggering process: a Chromium GPU process (vivaldi-bin).

    Environment

    • GPU: NVIDIA GeForce RTX 4060 (AD107), 8 GiB VRAM, PCI 0000:09:00.0, VBIOS 95.07.31.40.1B, PCIe 3.0 x8 link (LnkCap 8 GT/s ×8)
    • BAR1: 256 MiB — Resizable BAR disabled in firmware (ASUS BIOS 4631); lspci shows the card supports up to 8 GB, so this is the same 256 MiB aperture as the Turing case above. EnableResizableBar: 0 (driver default).
    • Driver: 610.57.04, open kernel modules (linux-cachyos-nvidia-open 7.2.0-1 + nvidia-utils 610.57.04-1), GSP firmware enabled (EnableGpuFirmware: 18)
    • Kernel: 7.2.0-1-cachyos (CachyOS, Arch-based), nvidia-drm.modeset=1, nvidia-drm.fbdev=1, AMD-Vi IOMMU on (translated domain)
    • Compositor: KDE Plasma 6.7 Wayland session (kwin 6.7.4)
    • CPU/board: AMD Ryzen 5 5600, ASUS PRIME B450M-GAMING/BR
    • Workload: ordinary desktop use — a Chromium-based browser (Vivaldi) playing video with NVDEC via VA-API (libva-nvidia-driver 0.0.17); its GPU process (--type=gpu-process --ozone-platform=wayland) shows as C+G in nvidia-smi. No WebGL-heavy page involved.

    BAR1 consumption rate

    34 minutes after a fresh boot, with only kwin, Xwayland, plasmashell and the Vivaldi GPU process running, nvidia-smi -q already reports BAR1 Used: 173 MiB / 256 MiB (the Vivaldi GPU process at 232 MiB of GPU memory). The aperture is effectively gone within a couple of hours of normal browsing.

    Occurrence 1 — 2026-08-21 12:05, 1 h 50 min after boot (host survives, GPU never recovers)

    • 12:05:10 — dmaAllocMapping_GM107: can't alloc VA space for mapping ×7, NV_ERR_NO_MEMORY … @ mapping_reuse.c:274 ×3
    • 12:05:11 — Xid 56 ×2 (CMDre), then GPPut < WATCHDOG_GPFIFO_ENTRIES @ kernel_rc_watchdog.c:1551
    • 12:05:42 — kgmmuInvalidateTlb_GM107: TLB invalidation failed waiting for completion (status=0x65) → krcWatchdog_IMPL: RC watchdog: GPU is probably locked!
    • 12:06:27 — GSP heartbeat timed out (diff 75751 timeout 5200)
    • 12:06:57 — kgmmuCheckMemSubsysError_IMPL: Memory Subsystem Error detected, _kgspLogRpcTimeout: GSP Timeout, Xid 175: pid=4255, name=vivaldi-bin, Timeout after 75s of waiting for RPC response from GPU0 GSP! Expected function 76 (GSP_RM_CONTROL)
    • 12:07:00 — Xid 154: GPU recovery action changed from 0x0 (None) to 0x1 (PF FLR); GPU marked for reset @ kernel_gsp.c:2778
    • 12:07:06 onward — kwin_wayland: Pageflip timed out! This is a bug in the nvidia-drm kernel driver, once per second
    • 12:07–12:30 — every 30 s: krcWatchdog … GPU is probably locked, mmuWalkUnmap/mmuWalkSparsify failures (NV_ERR_INVALID_STATE), (status == NV_OK) || (status == NV_ERR_GPU_IN_FULLCHIP_RESET) assertions. The host kernel stayed alive the whole time; the PF FLR was signalled but no recovery ever happened. Rebooted manually at ~12:30.

    Occurrence 2 — 2026-08-21 23:01, 10.5 h after boot (full hard lock within 20 s)

    • 23:01:58 — dmaAllocMapping_GM107 ×5, mapping_reuse.c:274 ×2, then Xid 56 ×4
    • 23:02:00–23:02:17 — kwin_wayland: Pageflip timed out! once per second; clocksource: Watchdog hpet read timed out (135–172 µs readouts, MMIO/PCIe stalls)
    • 23:02:17 — journal stops. Hard lock, power cycle required. Audio kept playing for the first ~15–20 s, then everything froze. No watchdog/GSP lines — it died before they could fire. (I boot with nowatchdog, so no lockup trace.)

    Key lines (occurrence 1, trimmed):

    NVRM: dmaAllocMapping_GM107: can't alloc VA space for mapping.
    NVRM: nvAssertOkFailedNoLog: Assertion failed: Out of memory [NV_ERR_NO_MEMORY] (0x00000051) returned from pReuseMappingDb->pMapCb(pReuseMappingDb->pGlobalCtx, pAllocCtx, range, cachingFlags, &token, _reusemappingdbAddMappingCallback) @ mapping_reuse.c:274
    NVRM: Xid (PCI:0000:09:00): 56, CMDre 00000007 0000021c 000100bb 00000007 00000000
    NVRM: nvAssertFailedNoLog: Assertion failed: GPPut < WATCHDOG_GPFIFO_ENTRIES @ kernel_rc_watchdog.c:1551
    NVRM: kgmmuInvalidateTlb_GM107: TLB invalidation failed waiting for completion (status=0x00000065) for PDB 0x024a2000, vaspaceFlags 0x84004020, scope 0x2, GFID 0
    NVRM: krcWatchdog_IMPL: RC watchdog: GPU is probably locked!  Notify Timeout Seconds: 7
    NVRM: kgmmuCheckMemSubsysError_IMPL: Memory Subsystem Error detected. kgmmuInvalidateTlb failed.
    NVRM: Xid (PCI:0000:09:00): 175, pid=4255, name=vivaldi-bin, Timeout after 75s of waiting for RPC response from GPU0 GSP! Expected function 76 (GSP_RM_CONTROL) sequence 278229 (0x20800a6a 0x0).
    NVRM: Xid (PCI:0000:09:00): 154, GPU recovery action changed from 0x0 (None) to 0x1 (PF FLR)
    kwin_wayland[3747]: Pageflip timed out! This is a bug in the nvidia-drm kernel driver
    

    Additional data points

    Not yet tested: proprietary kernel module of the same version, and Resizable BAR enabled — will report back on both.

    Attached: nvidia-bug-report.redacted.log.gz (collected on the boot after occurrence 2; its journal scan includes both incidents). Happy to test patches or debug builds.

    nvidia-bug-report.redacted.log.gz

  5. femoral commented on Sep 19, 2026

    @femoral

    Another data point for this signature, on Blackwell GB202 and a newer driver. Disclosure: this comment was drafted by an AI agent while diagnosing the machine, with the owner's review.

    Setup

    • GPU: GeForce RTX 5090 (GB202), 32 GiB VRAM
    • Driver: nvidia-open 610.57.04 (GSP), kernel 7.1.8 (NixOS 26.11)
    • Compositor: Hyprland 0.56.2 (Wayland) + Xwayland
    • Resizable BAR disabled in firmware → BAR1 = 256 MiB (lspci: Region 1 [size=256M]; nvidia-smi -q -d MEMORY: BAR1 Total 256 MiB)
    • Workload: ordinary desktop — Chromium-based apps (Discord, VS Code), terminals, plus intermittent CUDA compute jobs (numba-cuda) on the same GPU

    What happened
    ~46 h after boot, with no prior NVRM messages in dmesg at all, a burst of ~25 failures inside one second, then the RC watchdog lock 7 s later, which never cleared:

    NVRM: dmaAllocMapping_GM107: can't alloc VA space for mapping.
    NVRM: nvAssertOkFailedNoLog: Assertion failed: Out of memory [NV_ERR_NO_MEMORY] (0x00000051) returned from pReuseMappingDb->pMapCb(...) @ mapping_reuse.c:273
    NVRM: nvAssertOkFailedNoLog: Assertion failed: Out of memory [NV_ERR_NO_MEMORY] (0x00000051) returned from reusemappingdbMap(&pBar1VaInfo->reuseDb, ...) @ kern_bus_gm107.c:3152
    NVRM: krcWatchdog_IMPL: RC watchdog: GPU is probably locked!  Notify Timeout Seconds: 7
    ...
    NVRM: GPU0 _ceutilsSubmitPushBuffer: Cannot get putIndex.
    NVRM: GPU0 ceutilsMemset_IMPL: Cannot submit push buffer for memset.
    NVRM: GPU0 ctxBufPoolReserve: Failed to reserve memory. trimming all pools
    NVRM: GPU0 rpcRmApiAlloc_GSP: GspRmAlloc failed: ... hClass=0x0000a06c ... status=0x00000019
    NVRM: GPU0 kchangrpapiConstruct_IMPL: KernelChannelGroupApi alloc RPC to vGpu Host failed
    

    Consequences

    • Hyprland aborted (assert in CHyprOpenGLImpl::begin) and its watchdog respawned it in safe mode; every new GPU client then failed channel-group allocation.
    • A Chromium GPU process (Discord) that started ~50 s after the lock became unkillable: state R, SigPnd shows SIGKILL pending, utime frozen while stime keeps climbing — stuck in an ioctl the GPU never completes. It holds 17 fds on /dev/nvidia0, so nvidia-smi --gpu-reset and module unload are impossible.
    • nvidia-smi still answers and reports 0 % util / 1.3 GiB used while the GPU is locked, so it's misleading here.
    • No recovery short of reboot.

    For comparison: the same machine, same kernel and same desktop workload ran 21 days on nvidia-open 595.91.07 (with much heavier CUDA use) without hitting this. Upgraded to 610.57.04 on the 17th; hit it on the 18th.

    Next step on our side is enabling Resizable BAR (BAR1 → 32 GiB) and watching BAR1 Memory Usage daily; will report back if it recurs with ReBAR on.

  6. jpguevara commented on Sep 29, 2026

    @jpguevara

    Hitting the same signature on a different GPU/compositor combo:

    Environment

    • GPU: RTX 5060 (GB206), 8 GiB VRAM
    • Driver: nvidia-open 610.57.04
    • Kernel: 7.1.9-arch1-2 (Omarchy 4.0.2, Arch-based)
    • Compositor: Hyprland 0.56.2, Wayland session
    • Trigger: Chrome (native Wayland/Ozone), loading https://m3.material.io/foundations/layout/canonical-examples/overview (heavy WebGL/canvas layout demos)

    Log sequence (matches the pattern above):

    NVRM: dmaAllocMapping_GM107: can't alloc VA space for mapping.
    NVRM: nvAssertOkFailedNoLog: Assertion failed: Out of memory [NV_ERR_NO_MEMORY] (0x00000051)
        returned from pReuseMappingDb->pMapCb(...) @ mapping_reuse.c:273
    resource: resource sanity check: requesting [mem 0x000000008fb30000-0x000000009011ffff],
        which spans more than 0000:01:00.0 [mem 0x80000000-0x8fffffff 64bit pref]
    caller __nv_drm_gem_nvkms_map+0xc3/0x130 [nvidia_drm] mapping multiple BARs
    NVRM: nvAssertOkFailedNoLog: Assertion failed: Out of memory [NV_ERR_NO_MEMORY] (0x00000051)
        returned from reusemappingdbMap(&pBar1VaInfo->reuseDb, ...) @ kern_bus_gm107.c:3152
    [drm:__nv_drm_gem_nvkms_map [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100]
        Failed to map NvKmsKapiMemory 0x00000000ccd1ae0e
    [drm:nv_drm_atomic_apply_modeset_config [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100]
        Failed to initialize semaphore for plane fence
    [drm:nv_drm_atomic_commit [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100]
        Failed to apply atomic modeset.  Error code: -11
    traps: Media[32974] trap invalid opcode ip:5612156bad78 sp:7f155d7fc120 error:0 in chrome
    NVRM: nvAssertFailedNoLog: Assertion failed: GPPut < WATCHDOG_GPFIFO_ENTRIES @ kernel_rc_watchdog.c:1551
    NVRM: krcWatchdog_IMPL: RC watchdog: GPU is probably locked!  Notify Timeout Seconds: 7
    

    Chrome's GPU process crashes with SIGILL (confirmed via systemd-coredump), and the GPU never recovers — full desktop session freeze, hard reboot required. Same code paths (mapping_reuse.c:273, kernel_rc_watchdog.c:1551) as the other 610.57.04 reports here, so this doesn't look version- or vendor-specific — reproducible from a single browser tab's WebGL/canvas load.

  7. mmmattG commented on Sep 30, 2026

    @mmmattG

    I hit a matching freeze on an RTX 3080 (Ampere). This is an AI-assisted report of the observations and saved diagnostics, reviewed by the machine owner; the underlying cause is unconfirmed.

    Setup

    • ZOTAC RTX 3080 / GA102, 10 GiB, VBIOS 94.02.26.40.95.
    • NVIDIA open kernel modules 610.57.04; kernel-module and userspace packages all 610.57.04-1.
    • Omarchy 4.0.2 / Arch, Linux 7.1.9-arch1-2, Hyprland 0.56.2 / Aquamarine 0.14.0, Wayland.
    • BAR1 0xd0000000–0xdfffffff (256 MiB); BAR3 0xe0000000–0xe1ffffff (32 MiB). Current PCI capabilities advertise BAR1 sizes only up to 256 MiB.
    • Single DisplayPort output, 1080p at 239.76 Hz; VRR and direct scanout disabled.

    What happened

    On 2026-09-30, after about 24 days of uptime, the display froze while I was browsing X in Helium. Access continued through T3 Code's remote agent and terminal only, with no remote desktop connection. The agent could still run shell commands and initially query Hyprland via hyprctl while the local display stayed frozen.

    Selected kernel messages, in order; timestamps are AWST (UTC+8):

    19:32:15 NVRM: dmaAllocMapping_GM107: can't alloc VA space for mapping.
    19:32:15 NVRM: nvAssertOkFailedNoLog: Assertion failed: Out of memory [NV_ERR_NO_MEMORY] (0x00000051) returned from pReuseMappingDb->pMapCb(pReuseMappingDb->pGlobalCtx, pAllocCtx, range, cachingFlags, &token, _reusemappingdbAddMappingCallback) @ mapping_reuse.c:273
    19:32:15 resource: resource sanity check: requesting [mem 0x00000000df590000-0x00000000e017ffff], which spans more than 0000:2d:00.0 [mem 0xd0000000-0xdfffffff 64bit pref]
    19:32:15 caller __nv_drm_gem_nvkms_map+0xc3/0x130 [nvidia_drm] mapping multiple BARs
    19:32:15 [drm:nv_drm_atomic_commit [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00002d00] Failed to apply atomic modeset.  Error code: -11
    19:32:23 NVRM: krcWatchdog_IMPL: RC watchdog: GPU is probably locked!  Notify Timeout Seconds: 7
    

    The requested range extends 1.5 MiB beyond BAR1 into BAR3. Watchdog messages continued repeatedly. This does not establish why the mapping failed.

    At 19:38:06, nvidia-smi reported framebuffer use 814/10,240 MiB and BAR1 use 25/256 MiB. Those measurements were taken after the fault; they do not show memory usage at its onset.

    Recovery observations

    • An NVIDIA diagnostic bundle was captured with --safe-mode at 19:39, before recovery attempts. GPU memory and full PCI capabilities were also saved separately.
    • A DPMS off/on cycle returned ok but did not restore the desktop; a temporary software-cursor command timed out. Flip timeouts and Xid 56 appeared during these attempts.
    • At 19:40:51, Hyprland aborted in Render::GL::CHyprOpenGLImpl::begin. Its watchdog restarted it in safe mode. The replacement eventually answered commands, but the GPU watchdog continued reporting the lockup. Power-cycling the monitor then left it showing no output.
    • A later nvidia-smi process became stuck in D state with SIGKILL pending, still holding NVIDIA device handles. Its saved kernel stack included:
    uvm_va_space_destroy+0x3bd/0x520 [nvidia_uvm]
    uvm_release.isra.0+0x14e/0x1c0 [nvidia_uvm]
    uvm_release_entry.part.0.isra.0+0xf4/0x110 [nvidia_uvm]
    uvm_release_entry+0x29/0x30 [nvidia_uvm]
    __fput+0xf6/0x2d0
    __x64_sys_close+0x47/0xa0
    

    No GPU reset or module unload was attempted. Restarting the PC restored the desktop with the same driver. A short post-reboot check found no recurrence of the mapping/watchdog errors.

    There is no deterministic reproducer or same-version proprietary-driver comparison. Browsing activity is context, and neither application causation nor a particular memory leak has been established.

    The diagnostic bundle, kernel logs, and Hyprland crash metadata are preserved locally. Please let me know which saved diagnostics would be useful to share.

    Prepared from local diagnostics by GPT-6.1-Sol via the Codex harness in T3 Code, acting on Matt / mmmattG's behalf.

  8. bjarkimg commented on Nov 14, 2026

    @bjarkimg

    Still reproduces on the same GPU with nvidia-open 615.78.08.

    • GPU: Gigabyte RTX 5070 (GB205, 10de:2f04 rev a1), BAR1 256 MiB at 0x40000000–0x4fffffff, BAR3 32 MiB at 0x50000000
    • Driver: nvidia-open-dkms / nvidia-utils 615.78.08-1
    • Kernel: 7.2.15-1-omarchy
    • Session: Hyprland, Wayland, Google Chrome 157.0.8103.38 renderer (process had been up ~23h; the on-disk package had already been upgraded to .78)

    After that uptime, one modeset did this, in order, at 21:40:05–06 UTC on 2026-11-14:

    NVRM: dmaAllocMapping_GM107: can't alloc VA space for mapping.
    NVRM: NV_ERR_NO_MEMORY (0x51) @ mapping_reuse.c:273
    NVRM: reusemappingdbMap(&pBar1VaInfo->reuseDb, ...) @ kern_bus_gm107.c:3184
    resource: requesting [mem 0x4f5e0000-0x501cffff], which spans more than
              0000:01:00.0 [mem 0x40000000-0x4fffffff 64bit pref]
    caller __nv_drm_gem_nvkms_map+0xc3/0x130 [nvidia_drm] mapping multiple BARs
    [nvidia-drm] Failed to map NvKmsKapiMemory
    traps: Media[...] trap invalid opcode in chrome
    [nvidia-drm] Failed to initialize semaphore for plane fence
    [nvidia-drm] Failed to apply atomic modeset. Error code: -11
    

    The requested range starts ~10 MiB below the end of BAR1 and extends ~1.8 MiB into BAR3. The Chrome Media thread then executed the ud2 in Chrome's own fatal-abort sequence. The desktop froze. The kernel kept running (core dump, a finished userspace job) for about two minutes. There was no Xid and no krcWatchdog line in that window. The log stops with no shutdown record; the machine was hard-reset. A reboot cleared it. An identical dmaAllocMapping_GM107 burst at 21:20 the same boot did not take the desktop down.

    Filed by Grok 4.7 via Grok Build.

  9. yebei199 commented on Nov 16, 2026

    @yebei199

    Another data point, on Ada (AD106) with 615.78.08, compositor niri. Disclosure: drafted by an AI agent from the machine's logs, reviewed by the owner.

    Setup

    • GPU: GeForce RTX 4060 Ti 16 GB (AD106, VBIOS 95.06.25.00.E9), plus an AMD iGPU (Cezanne) that is not driving the display
    • BAR1: 256 MiB, Resizable BAR disabled in firmware. BAR1 was already at 116 MiB used right after boot, with a single 3840x2160@120 output
    • Driver: nvidia-open 615.78.08 (GSP); kernel 7.3.x; NixOS 26.11
    • Compositor: niri (Wayland) + Xwayland
    • Browser: Google Chrome 157.0.8103.50, native Wayland (Ozone); LIBVA_DRIVER_NAME=nvidia, nvidia-vaapi-driver 0.0.18 installed; no extra video-decode flags

    Trigger
    A page with 6 <video> elements (x.com mp4s, some autoplay loop muted) opened in a background tab at 1600x1100. Total VRAM use was ~4.0 GiB of 16 GiB, flat for the hour before, so this is not VRAM pressure.

    Timeline (UTC)

    09:06:06  page opened
    09:06:45  compositor's last successful redraw
    09:06:53  NVRM: dmaAllocMapping_GM107: can't alloc VA space for mapping.
              NVRM: nvAssertOkFailedNoLog: Assertion failed: Out of memory [NV_ERR_NO_MEMORY] (0x00000051)
                returned from pReuseMappingDb->pMapCb(...) @ mapping_reuse.c:273
              [drm:nv_drm_atomic_apply_modeset_config] *ERROR* Failed to initialize semaphore for plane fence
              [drm:nv_drm_atomic_commit] *ERROR* Failed to apply atomic modeset.  Error code: -11
              [drm:__nv_drm_gem_nvkms_map] *ERROR* Failed to map NvKmsKapiMemory
              chrome renderer terminated with SIGILL
    09:07:05  NVRM: krcWatchdog_IMPL: RC watchdog: GPU is probably locked!  (repeated ~1000 times until reboot)
    

    No Xid was logged. Afterwards nv_drm_gem_alloc_nvkms_memory_ioctl: Failed to allocate NVKMS memory for GEM object fired ~1.27M times over two hours. The compositor stayed stuck in waiting-for-vblank and never redrew. Its main thread spun at 100% inside the driver and survived SIGKILL. Clients failed eglCreateWindowSurface with EGL_BAD_ALLOC (0x3003). DPMS off/on did not recover it; only a reboot did.

    This matches the software-decode / non-zero-copy BAR1 path described in #1187, but on Ada and on 615.78.08, which some reports there describe as no longer affected.

  10. bjarkimg commented on Nov 22, 2026

    @bjarkimg

    Same machine, second freeze on nvidia-open 615.78.08.

    The boot that started after the 2026-11-14 hard reset ran until 2026-11-22 13:02:34 UTC (about 7 days 15 hours) and hit the same modeset failure. Desktop froze; kernel kept logging. No krcWatchdog and no Xid in that boot. Power cycle at 13:06 recovered it.

    13:02:34 NVRM: dmaAllocMapping_GM107: can't alloc VA space for mapping.
    13:02:34 NVRM: NV_ERR_NO_MEMORY (0x51) @ mapping_reuse.c:273
    13:02:34 NVRM: reusemappingdbMap(&pBar1VaInfo->reuseDb, ...) @ kern_bus_gm107.c:3184
    13:02:34 resource: requesting [mem 0x4f5b0000-0x5019ffff], which spans more than
                     0000:01:00.0 [mem 0x40000000-0x4fffffff 64bit pref]
    13:02:34 caller __nv_drm_gem_nvkms_map+0xc3/0x130 [nvidia_drm] mapping multiple BARs
    13:02:34 [nvidia-drm] Failed to map NvKmsKapiMemory 0x0000000089dc2b32
    13:02:34 traps: Media[...] trap invalid opcode in chrome (deleted binary)
    13:02:34 [nvidia-drm] Failed to initialize semaphore for plane fence
    13:02:34 [nvidia-drm] Failed to apply atomic modeset. Error code: -11
    13:03:04 NVRM: kgmmuInvalidateTlb_GM107: TLB invalidation failed waiting for
                   completion (status=0x00000065) PDB 0x0437f000
                   vaspaceFlags 0x84004020 scope 0x2 GFID 0
    

    The requested range again starts about 10 MiB below the end of the 256 MiB BAR1 and extends about 1.6 MiB into BAR3. Chrome's Media thread aborted with SIGILL on its own ud2 in the same second; that killed one renderer and did not freeze the machine. The on-disk Chrome package after reboot was 158.0.8127.36. The crashing process was still mapped to a replaced binary.

    Hardware and software otherwise unchanged from my comment above: Gigabyte RTX 5070 (GB205, 10de:2f04), nvidia-open-dkms / nvidia-utils 615.78.08-1, kernel 7.2.15-1-omarchy, Hyprland on Wayland.

    Filed by Grok 4.7 via Grok Build.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions