open-gpu-kernel-modules icon indicating copy to clipboard operation
open-gpu-kernel-modules copied to clipboard

RTX 2070 Mobile Max-Q (TU106BM, 256 MiB BAR1, no iGPU): Chrome + GNOME 50 Wayland exhausts BAR1 VA space → Xid 31 → RC watchdog GPU lock (nvidia-open 595.84)

Open rldyourmnd opened this issue 3 months ago • 5 comments

NVIDIA Open GPU Kernel Modules Version

595.84 (Ubuntu package nvidia-driver-595-open / linux-modules-nvidia-595-open-7.0.0-29-generic 7.0.0-29.29+1)

Module: /lib/modules/7.0.0-29-generic/kernel/nvidia-595-open/nvidia.ko
version: 595.84
license: Dual MIT/GPL
srcversion: BD1D47423BFEE276D2FF18D

Proprietary driver confirmation

I have not A/B tested the closed kernel module on this laptop, so I cannot tick the “does not happen with proprietary” box.

This report is filed because this machine ships and runs the open KMD from Ubuntu 26.04. The failure sequence (dmaAllocMapping_GM107 → mapping_reuse.c:273 NV_ERR_NO_MEMORY → krcWatchdog: GPU is probably locked) matches the already-open class in this repo and NVIDIA forum bug 5762513. Happy to install nvidia-driver-595 (closed) and retest if that is required.

Operating System and Version

Ubuntu 26.04 LTS (Resolute Raccoon)

Kernel Release

Linux rldyourmnd-server-omen 7.0.0-29-generic #29-Ubuntu SMP PREEMPT_DYNAMIC Fri Jul 17 20:52:35 UTC 2026 x86_64 GNU/Linux

Stable Ubuntu generic kernel (not an -rc). I did not build it.

Hardware: GPU

GPU 0: NVIDIA GeForce RTX 2070 with Max-Q Design (UUID: GPU-19a14d26-7fe3-0ec6-1bd6-8af6010e8f01)

  • PCI: 01:00.0 TU106BM [10de:1f50]
  • Machine: HP OMEN Laptop 15-dc1xxx, BIOS F.29 (2023-12-12)
  • VRAM: 8192 MiB
  • BAR1: fixed 256 MiB (nvidia-smi and lspci Region 1 size=256M). No Resizable BAR advertised.
  • No Intel iGPU — 0000:00:02.0 is absent (firmware mux / discrete-only). GNOME uses nvidia-drm as the only display GPU (eDP-1).
  • prime-select: on-demand (no iGPU to offload to)

Describe the bug

After a long GNOME Wayland session with Google Chrome, the NVIDIA open KMD exhausts BAR1 VA space. Atomic modeset then fails, Chrome’s GPU process hits Xid 31, and the RC watchdog declares the GPU locked. The display and pointer freeze; CPU, journald and audio keep running. Recovery requires a hard power cycle. nvidia-drm never recovers the scanout.

This is the same BAR1 / mapping-reuse failure class as #1187 (Turing 256 MiB BAR1 + Chromium), #1134 (Xid 31 under Chromium), #1140, #1270, and NVIDIA forum thread 353598 (internal 5762513).

This report adds a laptop / discrete-only / GNOME 50 datapoint on 595.84 (newer than the 595.71.05 reports).

Two incidents on the same host, same GPU UUID:

Date Trigger process First Xid after VA exhaustion Outcome
2026-08-09 04:03:54 +05 ptyxis + chrome Xid 56, 13, 44 reboot ~2 min later
2026-08-17 06:19:53 +05 chrome pid 2356631 Xid 31 MMU FAULT_PTE @ 0x0 GPU locked until hard power at 06:28:30

System RAM was not exhausted (~10 GiB used of 30 GiB, swap empty, no oomd). This is BAR1 mapping failure, not host OOM and not a thermal shutdown (GPU ~55–60 °C after reboot; no throttle/shutdown Xids).

To Reproduce

Not a single-URL 100% repro on this machine (the 2026-08-17 lock happened after ~36 h uptime / ~30 h Chrome). Preconditions that preceded both locks:

  1. Boot Ubuntu 26.04, GNOME 50.1 Wayland, nvidia-open 595.84, nvidia_drm.modeset=1.
  2. Laptop is discrete-only: Mutter selects /dev/dri/card1 (nvidia-drm) as the primary/display GPU.
  3. Leave Google Chrome (here 151.0.7922.108, --ozone-platform=wayland) open for many hours with multiple windows. Other GPU clients also present (gnome-shell, ptyxis, telegram-desktop).
  4. Continue normal desktop use (browsing / opening additional Chrome windows).
  5. Eventually the kernel emits the sequence below. Display and cursor freeze; audio continues. New Chrome scopes still start and die in 2–6 s. RC watchdog repeats every ~7 s until power-off.

Chrome had also logged '--ozone-platform=wayland' is not compatible with Vulkan at session start, and a 137 s compositor stall ~50 minutes before the 2026-08-17 lock (recovered). The lock itself lasted until the hard power (~8.5 minutes of GPU is probably locked).

Ubuntu 26.04 / GNOME 50 no longer ships an X11 session (/usr/share/xsessions is absent), so I cannot compare Xorg on this install.

Bug Incidence

Sometimes (at least twice in 8 days on this host; both after long-lived Chrome + Wayland compositor).

nvidia-bug-report.log.gz

I cannot attach an official nvidia-bug-report.sh dump from this environment: the script requires root, and this session has no TTY for sudo. The crash boot was ended by a hard power-off, so a report from the current boot would not contain the faulting GPU state anyway.

Crash evidence is the persistent journal from the previous boot, plus a current-boot hardware snapshot:

  • Gist (NVRM excerpts for both incidents + nvidia-smi / lspci / module info): https://gist.github.com/rldyourmnd/b97220423562ecb51480d7926446e8c2

I can run sudo nvidia-bug-report.sh and attach the .gz in a follow-up comment as soon as I have a root TTY, if you still want the template file.

More Info

2026-08-17 06:19:53 +05 — first frames of the lock

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] [nvidia-drm] [GPU ID 0x00000100] Failed to ioremap_wc NvKmsKapiMemory 0x00000000194c980b
[drm:nv_drm_atomic_apply_modeset_config [nvidia_drm]] *ERROR* Failed to initialize semaphore for plane fence
[drm:nv_drm_atomic_commit [nvidia_drm]] *ERROR* Failed to apply atomic modeset.  Error code: -11
NVRM: Xid (PCI:0000:01:00): 31, pid=2356631, name=chrome, channel 0x00000013, intr 00000000.
      MMU Fault: ENGINE GRAPHICS GPC1 GPCCLIENT_RAST faulted @ 0x0_00000000.
      Fault is of type FAULT_PTE ACCESS_TYPE_VIRT_READ
NVRM: krcWatchdog_IMPL: RC watchdog: GPU is probably locked!  Notify Timeout Seconds: 7

Watchdog then fired every ~7 s until 06:28:05. Chrome later reported CompositorAnimationObserver is active for too long (459s) — matching a freeze that started at the Xid. Userspace (including new Chrome launches) kept running; only scanout/cursor died. That matches “audio still playing, picture frozen”.

2026-08-09 04:03:54 +05 — previous incident, same GPU UUID

Same can't alloc VA space / mapping_reuse.c:273, then:

Xid 56 (display)
Xid 13, pid=6132, name=ptyxis  (Graphics SM Warp Exception: Illegal Instruction Encoding)
Xid 44, pid=6323, name=chrome
[nvidia-drm] Failed to ioremap_wc NvKmsKapiMemory

What I expected

A userspace GL client (Chrome) that exhausts BAR1 should get an allocation failure it can survive (lose the GPU process / tab). The display GPU should not stay wedged: atomic commit -11 should not permanently stop page flips, and krcWatchdog should recover or reset the engine instead of looping until the user holds the power button.

Current BAR1 (healthy boot, ~40 min uptime)

BAR1 Memory Usage
    Total : 256 MiB
    Used  :  49 MiB
    Free  : 207 MiB

lspci Region 1 is 256M prefetchable; no ReBAR capability advertised. Turing laptop vBIOS does not expose Resizable BAR, so the BIOS mitigation NVIDIA mentioned for 5762513 is not available here without firmware mods (not willing to flash an HP laptop BIOS).

Related:

  • #1187 — Turing 256 MiB BAR1, browser WebGL, same watchdog string
  • #1134 — Chromium, Xid 31 after BAR1 map overflow
  • #1140, #1270, #1274 — same allocator / lock class on newer GPUs
  • Forum 353598 / NV bug 5762513 — Wayland-only for several reporters; NVIDIA reproduced; ReBAR listed as a lab workaround; no driver fix in 595.84

rldyourmnd avatar Aug 17 '26 02:08 rldyourmnd

Datapoint: RTX 3060 Ti (GA104), fixed 256 MiB BAR1, Brave (Chromium) + KWin Wayland — still present on 610.57.04 (2026-08-19)

Environment

  • GPU: NVIDIA GeForce RTX 3060 Ti (GA104, 10de:2486 rev a1), 8 GiB VRAM
  • BAR1: fixed 256 MiB — ReBAR not usable/enlargable on this board+card (ASUS ROG STRIX B550-F, BIOS 3002)
  • Driver: NVIDIA open kernel modules 610.57.04 (CachyOS linux-cachyos-nvidia-open, KMD 610.57.04 / nvidia-utils 610.57.04 / CUDA 13.3)
  • Kernel: 7.1.8-1-cachyos (Arch-based CachyOS, non-LTS)
  • Compositor: KWin / Plasma 6.7.4, Wayland (+ Xwayland); no iGPU fallback in use.

Reproduction

Two incidents on 2026-08-19, both after several hours of normal desktop use with Brave (Chromium, --ozone-platform=wayland) open with heavy media/WebGL tabs — the second ~5 h 40 m into a freshly rebooted boot, at which point the failing request came from the compositor itself. Same log sequence both times:

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 ...], which spans more than 0000:07:00.0
      [mem 0xd0000000-0xdfffffff 64bit pref]
caller __nv_drm_gem_nvkms_map+0xb0/0x120 [nvidia_drm] mapping multiple BARs
NVRM: krcWatchdog_IMPL: RC watchdog: GPU is probably locked!  Notify Timeout Seconds: 7
      (repeats every ~7-8 s indefinitely)
  • A Brave renderer (Media thread) dies with SIGILL / illegal instruction right at onset (matches the Media[...] trap invalid opcode observations in #1140 / #1187).
  • KWin logs "A graphics reset attributable to the current GL context occurred", "Could not delete render time query because no context is current"; plasmashell logs "QRhiGles2: Context is lost".
  • Restarting KWin does not recover: a fresh kwin_wayland spins at ~100 % CPU against the wedged driver; once the wedge is driver-wide, nvidia-smi hangs (new NVML/context creation blocks). RC recovery never completes. Only a full reboot recovers.

Notes

  • Healthy BAR1 usage is ~42 / 256 MiB — VRAM is never near-full. It is the mapping-reuse DB VA space exhausting, same as the other reports in this family.
  • Onset is drastically slowed by disabling Brave's HW video decode/encode (Chromium flags); Firefox (different decode/GL path, ~16 MiB BAR1) never triggers it, consistent with the Wayland/Chromium-only reports.
  • This is the fixed-256 MiB-BAR1 + Chromium + Wayland + newest open 610.57.04 combo, echoing #1303 / #1140: still reproducible on 610.57.04 as of 2026-08-19.
  • For cards like this where BIOS/vBIOS cannot enlarge BAR1 (no ReBAR), the forum workaround (forum 353598 / NV bug 5762513) is unavailable. Is there an ETA or any alternative mitigation being considered for such fixed-small-BAR1 GPUs?

ccueto36 avatar Aug 19 '26 22:08 ccueto36

Datapoint: RTX 4070 SUPER (AD104), ReBAR disabled, 256 MiB BAR1, Chromium + Hyprland Wayland, recurring on 610.43.03

Environment

  • GPU: NVIDIA GeForce RTX 4070 SUPER (AD104), 12 GiB VRAM
  • BAR1: 256 MiB
  • Resizable BAR: supported but disabled in firmware
  • Driver: NVIDIA open kernel modules, nvidia-open-dkms 610.43.03-3
  • Kernel: 6.18.39-1-lts
  • OS: Arch Linux
  • Compositor: Hyprland 0.56.0-2, Wayland
  • Browser: Chromium 150.0.7871.128-1, native Wayland (--ozone-platform=wayland)

Reproduction

No single-URL reproduction. The latest full lock occurred after approximately 15.5 hours of uptime during ordinary desktop use. Chromium had been running for approximately 14.5 hours.

Both displays went black, Hyprland crashed, and the GPU did not recover. A forced reboot was required.

The failure sequence was:

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(...) @ kern_bus_gm107.c:3150
[nvidia-drm] Failed to map NvKmsKapiMemory
traps: Media[...] trap invalid opcode ... in chromium
NVRM: Xid 38, name=chromium
NVRM: Xid 31, name=Hyprland, MMU Fault, FAULT_PTE, ACCESS_TYPE_VIRT_READ
[nvidia-drm] Flip event timeout on head 1
NVRM: krcWatchdog_IMPL: RC watchdog: GPU is probably locked!

The excerpt above is condensed and timestamps are stripped; I can attach the full timestamped journal from the affected boot if that ordering matters.

Notes

  • The same NV_ERR_NO_MEMORY or can't alloc VA space for mapping signature appears in persistent journals from 17 separate boots between 2026-06-26 and 2026-08-26.
  • The occurrences span both the 595 and 610 driver branches. Not every occurrence caused a complete display lock.
  • The latest incident had no host OOM, kernel OOM kill, MCE, PCIe AER error, or logged thermal event.
  • Chromium and Hyprland were named in the latest incident. I am reporting this as workload correlation, not proof that Chromium is the root cause.
  • I have not A/B tested the proprietary kernel module.
  • ReBAR is available on this system but currently disabled. I can test 610.57.04 with ReBAR still disabled, then enable ReBAR for a separate comparison.

Closest existing reports: #1140 (Ada, Hyprland, 256 MiB BAR1) and #1274 (same VA-space exhaustion and Xid 31 on upstream 610.43.03), so this is not a new hardware or compositor class.

MustafaYumusakkaya avatar Aug 25 '26 22:08 MustafaYumusakkaya

If you're seeing this on Omarchy with an NVIDIA GPU, try checking whether voxtype is running.

In my case, voxtype was using the GPU/Vulkan backend and consuming a large amount of BAR1 memory. X/Brave would eventually crash with NV_ERR_NO_MEMORY / Failed to map NvKmsKapiMemory.

After: systemctl --user disable --now voxtype.service

my BAR1 usage dropped from ~150+ MiB to ~14 MiB, and the browser crashes stopped.

Might be worth checking with: nvidia-smi nvidia-smi -q -d MEMORY | sed -n '/BAR1 Memory Usage/,+4p'

Not sure if Voxtype is the root cause or just the trigger, but disabling it fixed the issue for me.

rafaeltgt avatar Aug 28 '26 22:08 rafaeltgt

Datapoint: RTX 2070 SUPER, fixed 256 MiB BAR1, Brave + GNOME Wayland — media renderer crash on 595.84

I hit the same mapping-reuse failure on Ubuntu 26.04 while scrolling X.com into an autoplay video.

Environment:

  • GPU: RTX 2070 SUPER, 8 GiB VRAM
  • BAR1: fixed 256 MiB; ReBAR disabled
  • Driver: NVIDIA open kernel modules 595.84
  • Kernel: 7.0.0-30-generic
  • Browser: Brave 152.1.94.117, native Wayland
  • Accelerated video decoding was explicitly disabled
  • Vulkan was disabled

At the exact time the X.com renderer showed Aw, Snap! Error code: 4, the kernel logged:

NVRM: dmaAllocMapping_GM107: can't alloc VA space for mapping.
NVRM: ... Out of memory [NV_ERR_NO_MEMORY] ... mapping_reuse.c:273
NVRM: ... reusemappingdbMap(...) @ kern_bus_gm107.c:3145
[nvidia-drm] Failed to map NvKmsKapiMemory
traps: Media[...] trap invalid opcode ... in brave

Brave’s matching crash dump identifies https://x.com, ptype=renderer, and RendererMain.

This was not host RAM or ordinary VRAM exhaustion: roughly 42 GiB of system RAM remained available and VRAM usage was around 1 GiB of 8 GiB. No host OOM, NVIDIA Xid, or GPU reset occurred.

In this instance the failure remained contained to the Brave renderer. After it died, the mapping errors stopped and BAR1 returned to 219/256 MiB free, so the desktop survived without rebooting.

This adds a datapoint that the issue can be triggered by autoplay media even with hardware video decoding disabled, and that the first failure may manifest as a Brave Media SIGILL/tab crash before escalating to a compositor or GPU-wide lock.

m-tuyishime avatar Aug 30 '26 05:08 m-tuyishime

Datapoint: RTX 2060 Mobile (TU106M, 256 MiB BAR1) — Proton/DXVK gaming trigger → Xid 109 (nvidia-open 610.57.04)

System

  • GPU: GeForce RTX 2060 Mobile (TU106M, Lenovo Legion Y540), BAR1 256 MiB / BAR3 32 MiB at maximum supported; Resizable BAR not available on this machine
  • Driver: nvidia-open-dkms 610.57.04, GSP firmware active (mandatory for the open modules on Turing+)
  • OS: Arch Linux, kernel 7.2.x, Hyprland (Wayland)

What happens

Same BAR1 VA-exhaustion signature as the other reports here — intermapRegisterDmaMapping: Failed to insert new mapping node followed by gpu_vaspace.c asserts — but triggered by a Proton game (Source 2 engine, DXVK) rather than a browser or compositor. The failure ends as:

NVRM: Xid (PCI:0000:01:00): 109, CTX SWITCH TIMEOUT on the game's main thread

and presents as a mid-match freeze; sometimes the process hangs, sometimes it SIGSEGVs under wine64-preloader.

Correlation with uptime. The freeze occurred at ~1d17h uptime; short-uptime sessions do not reproduce it. Consistent with the exhaustion-over-uptime pattern in #1140.

Mitigations in use

  • Persistence mode (nvidia-persistenced) to reduce VA map/unmap churn across GPU clients. Uptime since enabling it is too short to judge effectiveness.
  • GSP disable is not an option on the open modules: NVreg_EnableGpuFirmware=0 registers in /proc/driver/nvidia/params but GSP stays active, as expected for Turing+ on nvidia-open.
  • Practical workaround: reboot after multi-day uptime before long gaming sessions.

Will retest on 615.x once it reaches the Arch repos.

This comment is AI-generated and was reviewed by a human before posting.

vishrutsingh avatar Oct 14 '26 13:10 vishrutsingh