Skip to content

kernel 7.0.3 + nvidia-open 595.71.05 on RTX 3090: __nv_drm_gem_nvkms_map requests range exceeding PCI BAR1 → Xid 31 → Xid 154 (Node Reboot Required) under Chromium GPU workload #1134

Open

Description

@Zeus-Deus

NVIDIA Open GPU Kernel Modules Version

595.71.05 (Arch package nvidia-open-dkms 595.71.05-2)

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

Arch Linux (rolling release)

Kernel Release

Linux host 7.0.3-arch1-2 #1 SMP PREEMPT_DYNAMIC Fri, 01 May 2026 15:49:22 +0000 x86_64 GNU/Linux

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

GPU 0: NVIDIA GeForce RTX 3090 (UUID: GPU-)

Describe the bug

On a single-GPU RTX 3090 desktop running Linux 7.0.3 with
nvidia-open-dkms 595.71.05, the kernel logged a resource sanity check
warning naming __nv_drm_gem_nvkms_map as the caller of an mmap that
"spans more than" the device's BAR1 region. The same instant, the GPU
took an MMU fault on Copy Engine 2 (Xid 31) and the driver self-declared
the GPU unrecoverable (Xid 154, "Node Reboot Required") with
uvm encountered global fatal error 0x60. GSP RPC then timed out
(Xid 175). The display compositor's vblank stalled, the screen froze, and
neither nvidia-smi nor systemctl reboot could complete; recovery
required a hardware power-cycle. The trigger workload was a
Chromium-based browser (Brave) starting a new renderer process.

To Reproduce

  • Wayland compositor (Hyprland) running, ~2 hours uptime since boot
  • Brave (Chromium-based browser) open with several tabs
  • Brave subprocess started a new renderer/GPU process — call stack shows
    Chromium worker thread deep in kperfBoostSet_IMPL → rpcRmApiControl_GSP →
    _kgspRpcRecvPoll, consistent with a GPU-frequency-boost RPC during
    renderer spin-up
  • No CUDA process active; no userspace had /dev/nvidia-uvm open
  • System RAM healthy: 7.6 GiB / 61 GiB used, no swap pressure
  • Single occurrence so far; not yet a deterministic reproducer
  • See "Smoking-gun evidence" and "Fault sequence" in More Info below

Bug Incidence

Once

nvidia-bug-report.log.gz

nvidia-bug-report.log.gz

More Info

Note: I have not tested with the proprietary nvidia-dkms package, so I have
left the proprietary-driver-confirmation checkbox unchecked. The kernel's
own resource sanity check warning names __nv_drm_gem_nvkms_map+0x99/0xf0 [nvidia_drm] as the caller, which is specific to nvidia-open's DRM layer.
I am happy to test the proprietary driver if maintainers think it would
help isolate the regression.

Smoking-gun evidence

Single line, logged by the kernel core (not by NVRM) at t = 0:

resource: resource sanity check: requesting [mem 0x000000fccfdd0000-0x000000fcd00fffff], which spans more than 0000:01:00.0 [mem 0xfcc0000000-0xfccfffffff 64bit pref]
caller __nv_drm_gem_nvkms_map+0x99/0xf0 [nvidia_drm] mapping multiple BARs

The requested range starts ~3 MiB before the end of BAR1

(0xfcc0000000-0xfccfffffff) and runs ~33 MiB past it, into BAR3
(0xfcd0000000 + 32 MiB). The kernel's PCI resource validation rejects
the request, and the subsequent
[drm:_nv_drm_gem_nvkms_map] ERROR Failed to map NvKmsKapiMemory 0x00000000616506ff
confirms the map failed.

Immediately preceding this, NVRM logged ~25 repetitions of:

NVRM: dmaAllocMapping_GM107: can't alloc VA space for mapping.
NVRM: nvAssertOkFailedNoLog: ... [NV_ERR_NO_MEMORY] (0x00000051) ... @ mapping_reuse.c:273
... @ kern_bus_gm107.c:3141 // ("pBar1VaInfo->reuseDb")

so BAR1 VA space was being repeatedly exhausted in the seconds leading up
to the bad-range request. That suggests the bad mapping is a fallback (or
an arithmetic mistake) on the BAR1-VA-exhausted path rather than a
random misuse of pci_resource
*.

Fault sequence

All times relative to t = 0 (the resource sanity check line above).
Full redacted log in kernel-log-excerpt.txt.

Offset Event
t+0:00:00 resource sanity check, __nv_drm_gem_nvkms_map ... mapping multiple BARs, Failed to map NvKmsKapiMemory.
t+0:00:00 Xid 31 — MMU Fault: ENGINE CE2 HUBCLIENT_CE0 faulted @ 0x1_21000000, FAULT_PTE ACCESS_TYPE_VIRT_WRITE.
t+0:00:00 nvGpuOpsReportFatalError: uvm encountered global fatal error 0x60, requiring os reboot to recover.
t+0:00:00 Xid 154 — GPU recovery action changed from 0x0 (None) to 0x2 (Node Reboot Required).
t+0:00:00 Brave GPU subprocess receives SIGILL (trap invalid opcode ... in brave[...]).
t+0:00:01 [drm:nv_drm_atomic_apply_modeset_config] Failed to initialize semaphore for plane fence, nv_drm_atomic_commit Error code: -11.
t+0:01:15 _kgspIsHeartbeatTimedOut: diff 75117 timeout 5200. GSP heartbeat lost.
t+0:01:45 Memory Subsystem Error detected. kgmmuInvalidateTlb failed.
t+0:01:45 Xid 175 — Timeout after 75s of waiting for RPC response from GPU0 GSP! Expected function 76 (GSP_RM_CONTROL). Originating thread name ThreadPoolSingl (Chromium worker).
t+0:01:48 Call trace dumped: _kgspRpcRecvPoll → _issueRpcAndWait → rpcRmApiControl_GSP → kperfBoostSet_IMPL → resControl_IMPL → ... → nvidia_unlocked_ioctl.
t+0:01:48 onward RC watchdog: GPU is probably locked! Notify Timeout Seconds: 7 repeats every 30-60 s. Hundreds of NV_ERR_RESET_REQUIRED assertions firing as the fullchip-reset path itself fails its preconditions.
t+0:06:18 Xid 16, Head 00000003 Count ..., RM has detected that 7 Seconds without a Vblank Counter Update on head:D0. Display visibly froze.
t+0:12:48 Second Xid 16 / vblank-watchdog.

Recovery

  • nvidia-smi accepted the ioctl but never returned (hung indefinitely; killed after ~5 min).

  • The driver's own RC path tried FULLCHIP_RESET repeatedly; every attempt failed with NV_ERR_RESET_REQUIRED precondition assertions — the chip-reset path itself was wedged.

  • systemctl reboot was invoked from an SSH session and hung at nvidia_drm module teardown for >5 minutes without progress.

  • Recovery required holding the hardware power button.

The system was otherwise functional throughout: SSH stayed up, the Wayland compositor's main thread was alive in do_epoll_wait, no processes were in D-state. The wedge is entirely below nvidia_drm.

What I have ruled out

  • Hardware fault on the GPU. This 3090 had been stable for many months on the previous linux 6.19.11 + nvidia-open 595.58.03 stack with the same workload. After the hardware power-cycle, the system came up cleanly on the same 7.0.3 + 595.71.05 stack and has so far been stable.

  • Host OOM. 7.6 GiB / 61 GiB host RAM in use at fault time. No swap pressure. No oom_reaper activity in the journal. The OOM was GPU-VA, not host RAM.

  • Userspace-only fault. The kernel core's resource sanity check was emitted from inside nvidia_drm's __nv_drm_gem_nvkms_map. The subsequent Xid 31 MMU fault is a consequence of the bad mapping being used. The Brave SIGILL came after the kernel error and looks like a downstream consequence of the GPU buffer the renderer expected being inaccessible.

  • DKMS build mismatch / firmware mismatch. DKMS built nvidia-open 595.71.05 cleanly for both kernels at upgrade time; modules load cleanly; firmware version matches the driver expectations (linux-firmware-nvidia 20260410-1).

I cannot rule out — and want to be careful not to overclaim — which component regressed. The kernel and the driver were both upgraded in the same transaction, so this could be a bug in nvidia-open's PCI BAR-range arithmetic, a kernel-side change to the resource validation that nvidia-open is the first to trip, or a problem in the combination (e.g. a new pci_resource_* semantic on 7.0.x that nvidia-open hasn't adopted yet). I have not yet had the opportunity to bisect.

Open questions

If you (or anyone reading) have seen this signature before, I'd value pointers on any of:

  1. Does this reproduce on nvidia-dkms (proprietary kernel module) at 595.71.05, holding kernel 7.0.3 fixed?

  2. Does this reproduce on kernel 6.19.11 with nvidia-open 595.71.05?

  3. Does disabling Chromium-side GPU acceleration (e.g. --disable-gpu-rasterization, --disable-gpu) prevent it on 7.0.3 + 595.71.05?

  4. Does the resource sanity check line precede every freeze of this form, or are there freezes without it? (I have only this one occurrence.)

Activity

  1. added
    bug
    on May 7, 2026
  2. sanity commented on Jun 15, 2026

    @sanity

    Seeing this on an RTX 3090 Ti (GA102), nvidia-open 610.43.02, kernel 7.0.11, Arch. Every report in this cluster is on 595/580, so a 610 data point: still present, and looks worse. I ran 595.71.05 for about a month without hitting it, then within a few days of updating to 610.43.02 I started getting hard display freezes every day or two.

    Same trigger and signature: Chrome with GPU accel (VA-API decode on) over long uptime, ~20h here. BAR1 is 256 MiB (Resizable BAR off), and only ~940 MiB of the 24 GB VRAM is in use when it dies, so it's BAR1 VA space that runs out, not VRAM.

    NVRM: dmaAllocMapping_GM107: can't alloc VA space for mapping.
    NVRM: nvAssertOkFailedNoLog: Assertion failed: Out of memory [NV_ERR_NO_MEMORY] (0x00000051) returned from reusemappingdbMap(&pBar1VaInfo->reuseDb, ...) @ kern_bus_gm107.c:3150
    [drm:__nv_drm_gem_nvkms_map [nvidia_drm]] *ERROR* [nvidia-drm] Failed to map NvKmsKapiMemory
    [drm:nv_drm_atomic_commit [nvidia_drm]] *ERROR* [nvidia-drm] Flip event timeout on head 0
    

    The failure mode here lands on the display path rather than Xid 31/154: the flip times out, input dies, the monitor blanks, but the box stays up over SSH. The Wayland compositor (Hyprland) eventually drops into safe mode, and nvidia-smi -q hangs in D state (unkillable) once the GPU is wedged. Only a reboot clears it. After a fresh boot BAR1 sits around 22 MiB used and climbs from there over the day.

    The card advertises Resizable BAR (lspci shows BAR1 supported sizes up to 32 GB), but this is an old X399 board (MSI X399 Gaming Pro Carbon, Threadripper 2990WX) that won't POST with Above-4G/ReBAR enabled, so the usual workaround isn't reachable on this platform. Disabling Chrome's GPU acceleration does avoid it, but that's not a great option either.

  3. sanity commented on Jun 15, 2026

    @sanity

    Follow-up with a workaround that's been holding up here, in case it helps others who can't enable ReBAR (old board that won't POST with it, or Turing where it isn't supported at all).

    The leaked BAR1 mappings are held by the browser's GPU process, and they get released when that process exits. Chrome respawns its GPU process on its own, so killing it reclaims the BAR1 space without restarting the browser or rebooting. On this 3090 Ti, killing chrome --type=gpu-process took BAR1 usage from 104 MiB back down to 41 MiB, with nothing worse than a one-frame flicker on GPU-accelerated tabs.

    So rather than disabling GPU acceleration outright (which also kills VA-API video decode for calls), you can recycle just the GPU process when BAR1 climbs toward the ceiling:

    # current BAR1 usage:
    nvidia-smi -q -d MEMORY | awk '/BAR1 Memory Usage/{f=1} f&&/Used/{print $3" MiB"; exit}'
    # reclaim it (chrome respawns the gpu-process automatically):
    kill $(pgrep -f 'chrome.*--type=gpu-process')
    

    I put this in a small systemd user service that polls BAR1 every couple of minutes and recycles the GPU process once it crosses ~75% of the 256 MiB, and skips it while the webcam or mic is in use so it never interrupts a call. Can share the script if anyone wants it.

    Two caveats:

    • It only works before exhaustion. Once the flip channel has already timed out and the display is wedged, freeing BAR1 doesn't bring it back, only a reboot does.
    • Don't recycle during a WebRTC call or a recording, the gpu-process restart drops the stream.

    It's a workaround, not a fix. The leak is still there, recycling just resets the clock so the aperture never actually fills.

  4. diacodion commented on Jun 25, 2026

    @diacodion

    Blackwell (GB206, RTX 5060 Ti) + nvidia-open 610.43.02: GPU MMU fault under a browser GPU client cascades to GSP RPC timeout -> unrecoverable full-chip-reset lockup

    Hello all, I wanted to chime in here and say I'm observing a similar behavior on my rig; I did my best to collect relevant information (with help from Claude), and hopefully it will provide meaningful data for the greater debugging effort. I was unsure about opening my own issue versus appending to this one, I landed on the latter, but please let me know if that was wrong.

    Summary

    On a single-GPU Blackwell desktop, an MMU fault logged against a Chrome GPU/renderer process is followed by GSP heartbeat/RPC timeout and leaves the GPU in an apparently permanent NV_ERR_GPU_IN_FULLCHIP_RESET state.

    The collected stacks suggest subsequent RM clients queue behind the same RM lock path, with kwin_wayland apparently stuck in the unmap path. The display freezes (but e.g. audio continues), no VT switch is possible, and no software recovery works; systemctl restart sddm, killall kwin_wayland, and nvidia-smi -r all hang on the same dead lock. Only a hardware power-cycle recovers.

    This looks to me like the same failure family as #1134 (Xid 31 -> Xid 175, Chromium GPU worker, nvidia-smi hangs, power-cycle required) and as the Blackwell GSP-timeout reports #1080 / #1086 / #1045, but observed here on GB206 + 610.43.02.

    System / Software

    GPU NVIDIA GeForce RTX 5060 Ti (Blackwell, GB206) @ PCI 0000:2d:00.0
    NVRM NVIDIA UNIX Open Kernel Module for x86_64 610.43.02 Release Build
    nvidia pkgs nvidia-open-dkms 610.43.02-2 nvidia-utils 610.43.02-2
    nvidia-smi NVIDIA GeForce RTX 5060 Ti, 610.43.02, 98.06.4E.80.25
    Kernel 7.0.12-arch1-1
    Distro Arch Linux (rolling)
    Desktop KDE Plasma 6.7.1 / KWin Wayland (XDG_SESSION_TYPE=wayland)
    Board / BIOS MSI X570-A PRO (MS-7C37), BIOS H.70, 2020-01-09 (at time of crash I am providing data for, have since updated to H.Q0, 09/03/2025, as a part of my debugging efforts)
    CPU AMD Ryzen 7 3800X
    Kernel cmdline includes nvidia-drm.modeset=1
    Displays 2× DisplayPort (DP-1 primary, DP-2 secondary)

    Trigger / workload

    Ordinary desktop use. The cascade is timestamped to name=chrome (browser GPU/renderer process), with no special compute load.

    Earlier, less frequent instances of the hang (prior to recent system package upgrade) correlated loosely with DP-2 waking from DPMS screen-off (maybe ~5–10% of wakes), but the captured fault originates from a browser GPU client, matching #1134's "Chromium subprocess starts a new renderer" trigger. After a full system upgrade the frequency rose sharply from occasional-on-wake to multiple hard locks during maybe 3 hours of normal use.

    Failure sequence (trimmed; full journalctl -k available)

    (Note: some logs below reference _GM107 / _GH100 routines. These are apparently the compiled HAL variants of shared RM code paths, and not a wrong board ID; my card is GB206.)

    1. VA-space alloc failure + graphics-engine MMU fault from the browser:

    NVRM: dmaAllocMapping_GM107: can't alloc VA space for mapping.
    NVRM: nvAssertOkFailedNoLog: Assertion failed: Out of memory [NV_ERR_NO_MEMORY] (0x00000051) ... @ mapping_reuse.c:273
    NVRM: Xid (PCI:0000:2d:00): 31, pid=56415, name=chrome, channel 0x0000000f ...
          MMU Fault: ENGINE GRAPHICS GPC2 GPCCLIENT_T1_11 faulted @ 0x1_23d4f000.
          Fault is of type FAULT_INFO_TYPE_UNSUPPORTED_KIND ACCESS_TYPE_VIRT_READ
    

    2. GSP stops responding, heartbeat + RPC timeout (fn 76 GSP_RM_CONTROL / fn 10 FREE):

    NVRM: GPU0 _kgspIsHeartbeatTimedOut: Heartbeat timed out, ... diff 45001 timeout 5200
    NVRM: GPU0 kgmmuInvalidateTlb_GM107: TLB invalidation failed waiting for completion (status=0x00000065) ...
    NVRM: GPU0 kgmmuCheckMemSubsysError_IMPL: Memory Subsystem Error detected. kgmmuInvalidateTlb failed.
    NVRM: GPU0 _kgspLogRpcTimeout: ********** GSP Timeout **********
    NVRM: Xid (PCI:0000:2d:00): 175, pid=56415, name=chrome,
          Timeout after 75s of waiting for RPC response from GPU0 GSP! Expected function 10 (FREE) sequence 23991 ...
    NVRM: Xid (PCI:0000:2d:00): 154, GPU recovery action changed from 0x0 (None) to 0x1 (PF FLR)
    

    3. Unrecoverable, unmap fails on dead engine, full-chip-reset path itself can't run (loops indefinitely):

    NVRM: GPU0 mmuWalkUnmap: Failed to unmap VA Range 0x120010000 to 0x120368fff. Status = 0x00000040  [NV_ERR_INVALID_STATE]
    NVRM: gpuHandleSanityCheckRegReadError_GH100: Possible bad register read: addr: 0xbb0080, regvalue: 0xbadf3060,
          error code: NV_PPRIV_SYS_PRI_ERROR_CODE_FECS_DEAD_RING
    NVRM: krcWatchdog_IMPL: RC watchdog: GPU is probably locked!  Notify Timeout Seconds: 7
    NVRM: nvAssertFailedNoLog: Assertion failed: (status == NV_OK) || (status == NV_ERR_GPU_IN_FULLCHIP_RESET) @ rs_server.c:1375
          (this assertion repeats continuously thereafter)
    

    The 0xbad… PRI reads include FECS_DEAD_RING and FECS_PRI_DECODE, which looks consistent with the graphics front-end/FECS path being wedged, with PRI reads returning sentinel-like 0xbad... values. From user space, recovery attempts appear to queue behind the same lock path; whether that is the reason FLR/reset does not complete is uncertain, but seems plausible the RM lock needed for it is already held by the stuck unmap (see below).

    The deadlock (live /proc/<pid>/task/*/stack, all four in D state)

    The stack traces suggest GPU clients queue behind the same RM lock (rmapiLockAcquire); kwin_wayland appears to be in the stuck unmap path, which is why SIGKILL and nvidia-smi cannot make progress:

    kwin_wayland    D  os_acquire_rwlock_write -> rmapiLockAcquire -> serverInterUnmap -> Nv04UnmapMemoryDmaWithSecInfo -> nvidia_unlocked_ioctl (the lock holder, stuck unmap)
    chrome          D  os_acquire_rwlock_read  -> rmapiLockAcquire -> serverFreeResourceTree -> nvKmsClose (modeset teardown as the process exits)
    nvidia-smi      D  os_acquire_rwlock_read  -> rmapiLockAcquire -> serverControl
    

    Correspondingly, the kernel reports INFO: task <chrome|nvidia-smi> blocked for more than 122 seconds for these tasks.

    Recovery attempts (all failed)

    • systemctl restart sddm: no effect
    • killall kwin_wayland / systemctl --user restart plasma-kwin_wayland: process won't reap (D state)
    • nvidia-smi -r: hangs (enters the same dead lock; killed after timeout)
    • systemctl reboot: stalls (units waiting on D-state tasks)
    • Only hardware power-cycle (or SysRq s/u/b) recovers.

    Things ruled out on this hardware

    Regression note

    Frequency seemingly increased significantly immediately after a full system upgrade (I'll be more confident of a change/how much of a change with more days of typical use); notably:

    upgraded linux (7.0.9.arch1-1 -> 7.0.12.arch1-1)
    upgraded nvidia-open-dkms (595.71.05-2 -> 610.43.02-2)
    

    Currently planning to test a rollback to 595.71.05-2 to confirm my suspicion 610.43.02 is the regressing version.
    Will update with the result (clean-run duration under a heartbeat watchdog).

    Asks

    1. Does this seem like the same failure family as kernel 7.0.3 + nvidia-open 595.71.05 on RTX 3090: __nv_drm_gem_nvkms_map requests range exceeding PCI BAR1 → Xid 31 → Xid 154 (Node Reboot Required) under Chromium GPU workload #1134 / RTX 5090 (GB202): GSP heartbeat timeout -> Xid 109/8 under Vulkan load via Proton (595.58.03, 590.48.01) #1080, now reproduced on GB206 + 610.43.02?
    2. Is there any flag to make GSP reset instead of locking the host on this fault, or to force Xid/NVRM reporting + a recoverable FLR rather than the unrecoverable full-chip-reset loop?
    3. Is there a known-good driver branch for GB206 to roll back to in the meantime?

    Happy to provide the full kernel log, run patched builds, or capture additional state before a controlled repro.

  5. ndizazzo commented on Jun 25, 2026

    @ndizazzo

    @diacodion try power limiting your GPU to the min amount to see if that extends the time between driver hangs - that data point might be useful

  6. r4hx commented on Jul 12, 2026

    @r4hx

    Same symptoms here — full system hard-lock under Chromium GPU workload, silent hang (no SysRq), requires power cycle.

    Environment:

    • GPU: NVIDIA GeForce RTX 5070 Ti (Blackwell, GB203) — new architecture not previously reported
    • BAR1: 16 GB (Resizable BAR fully enabled) — physical BAR size is not the root cause
    • Driver: 595.80 open kernel modules (nvidia-open via akmod-nvidia)
    • Kernel: 7.0.14 (Fedora Silverblue 44)
    • Compositor: GNOME Wayland
    • Browser: Ungoogled Chromium 150 (flatpak), --ozone-platform=wayland

    Sequence:

    1. Chromium renderer crash storm — 40+ crashes over ~2 hours, all traps: chrome[...] trap int3 (SIGTRAP), same crash offset each time: chrome[+0x2e14025] (close to +0x2e14000 in prior crash dumps posted by users)
    2. System suspend (S3) and immediate resume — renderer crashes continued after resume.
    3. ~5 minutes post-resume: complete hard-lock. Last journal entry is normal NetworkManager DHCP renewal. Then silence — no NVRM messages, no krcWatchdog, no Xid errors. Silent hang.
    4. Hardware power-cycle required.

    Key observations:

    Hope this helps narrow down whether this is a single bug with different manifestations or separate issues.

  7. leoric-crown commented on Jul 18, 2026

    @leoric-crown

    Chiming in with a milder variant of this, in case the contrast helps narrow things down. Upfront: my failure never locked the system. One Chromium renderer died, the tab froze, and everything else (including the game that triggered it) kept running; reloading the tab recovered it every time. So this may be a cousin of what's reported here rather than the same bug.

    Setup: RTX 4090, nvidia-open 610.43.03, Arch (Omarchy), Hyprland on Wayland, Chromium 150. Trigger was launching Street Fighter 6 under gamescope while YouTube or Instagram video played in Chromium.

    With ReBAR off (BAR1 at 256 MiB): within about 30 seconds to 2 minutes of the game starting, dmesg logged [drm:__nv_drm_gem_nvkms_map [nvidia_drm]] *ERROR* Failed to map NvKmsKapiMemory, and in the same second a Chromium renderer coredumped with SIGILL (ILL_ILLOPN) on its Media thread. nvidia-smi -q -d MEMORY showed BAR1 at 234/256 MiB used with the game up, while ~19 GiB of VRAM sat free. This happened 3 out of 3 sessions, and the same behavior followed me from Fedora to Arch on this machine over most of a year, which is what eventually pointed me at firmware rather than the OS.

    After enabling Above 4G Decoding + Resizable BAR, BAR1 became 32 GiB. The same load (SF6 + YouTube + Reels) now peaks around 8.4 GiB of BAR1 with no new map errors and no new coredumps. Small sample, one machine, so take it for what it is.

    I don't think this contradicts @r4hx's point that BAR size isn't the root cause; their lockup happens with a 16 GiB BAR1, and their crash signature (SIGTRAP int3, then a silent hang) differs from mine (SIGILL plus an explicit map failure, fully contained). My read, for whatever it's worth: a 256 MiB aperture makes the fast-exhaustion case trivial to hit, and ReBAR just raises that ceiling. It wouldn't fix a genuine mapping leak like the one @sanity traced to the browser GPU process, and I can't tell from my side whether that leak lives in the driver or in the Chromium/driver interaction.

    For anyone on a card without a ReBAR path, sanity's GPU-process-kill workaround upthread looks like the thing to try first; it's the only tested reclaim I've seen.

    Happy to post fuller logs (kernel excerpts, coredumpctl detail) if useful.

  8. alysnnix commented on Sep 16, 2026

    @alysnnix

    Another data point: this one happened on the proprietary module, which is the OP's open question 1. No nvidia-open anywhere on this box.

    Tainted: [P]=PROPRIETARY_MODULE, [O]=OOT_MODULE
    

    RTX 3060 Ti (GA104, 8 GiB), driver 595.99.02 proprietary, kernel 7.2.5, NixOS unstable, GNOME/Mutter on Wayland, single DP monitor, Gigabyte B760M AORUS ELITE (BIOS F23), i5-13600K. BAR1 is 256 MiB with ReBAR off, though the card advertises up to 8 GiB (resource1_resize = 0x3fc0).

    It fired after 6h13m of uptime with nothing special running. No CUDA, no games, just Chrome and the usual desktop apps.

    16:39:27  [drm:__nv_drm_gem_nvkms_map] *ERROR* Failed to map NvKmsKapiMemory   <- survived
    16:40:30  [drm:__nv_drm_gem_nvkms_map] *ERROR* Failed to map NvKmsKapiMemory   <- survived
    16:40:40  [drm:__nv_drm_gem_nvkms_map] *ERROR* Failed to map NvKmsKapiMemory   <- survived
    
    18:49:24  resource: resource sanity check: requesting [mem 0x6fdd0000-0x700fffff],
              which spans more than 0000:01:00.0 [mem 0x60000000-0x6fffffff 64bit pref]
    18:49:24  caller __nv_drm_gem_nvkms_map+0x99/0xf0 [nvidia_drm] mapping multiple BARs
    18:49:24  [drm:__nv_drm_gem_nvkms_map] *ERROR* Failed to map NvKmsKapiMemory
    18:49:24  NVRM: Xid 31, pid=113652, name=chrome, channel 0x00000004.
              MMU Fault: ENGINE GRAPHICS GPC2 GPCCLIENT_PROP_0 faulted @ 0x1_2e341000.
              Fault is of type FAULT_INFO_TYPE_UNSUPPORTED_KIND ACCESS_TYPE_VIRT_READ
    18:49:24  traps: Media[138631] trap invalid opcode ip:620cf0aee8a8      <- Chrome Media thread
    18:49:24  NVRM: Xid 56 x48 (CMDre) over ~80ms
    18:49:29  [drm:nv_drm_atomic_commit] *ERROR* Failed to apply atomic modeset. Error code: -11
    18:50:09  NVRM: os_schedule: Attempted to yield the CPU while in atomic or interrupt context
    18:50:17  NVRM: Xid 175, Timeout after 10s of waiting for RPC response from GPU0 GSP!
              Expected function 76 (GSP_RM_CONTROL) sequence 77996
    18:50:17  NVRM: Xid 154, GPU recovery action changed from 0x0 (None) to 0x1 (GPU Reset Required)
    18:50:49  NVRM: Xid 16, Head 00000003
    

    Both in-flight RPCs never completed (ts_end = 0), and the newest was still polling:

    entry function          sequence data0              data1              ts_start           ts_end  duration actively_polling
     0    76 GSP_RM_CONTROL    77997 0x0000000020800a56 0x000000000000005c 0x00065ba0a7247adb 0x0      -        y
    -1    76 GSP_RM_CONTROL    77996 0x0000000020800a6a 0x0000000000000000 0x00065ba0a68bdc8e 0x0      -
    -2    76 GSP_RM_CONTROL    77995 0x0000000020800a6a 0x0000000000000000 0x00065ba0a60edc87 ...   210us
    

    The stack at the timeout is the same RM path posted upthread, in a chrome task:

    CPU: 0 UID: 1000 PID: 138734 Comm: chrome
     dump_stack_lvl -> _nv013660rm -> _nv013563rm -> _nv051073rm -> _nv039260rm -> _nv039258rm [nvidia]
    

    The offending range, for comparison with the OP's:

    BAR1        [mem 0x60000000-0x6fffffff]   256 MiB
    BAR3        [mem 0x70000000-0x71ffffff]    32 MiB
    requested   [mem 0x6fdd0000-0x700fffff]   3.3 MiB
    

    It starts 2.2 MiB below the top of BAR1 and runs 1 MiB past it into BAR3. Same shape as the OP, different addresses.

    There are no VA exhaustion messages at all. Zero hits for dmaAllocMapping_GM107: can't alloc VA space, mapping_reuse.c or reuseDb across the whole boot. Most reports in this thread have those firing right before the bad range and I went looking for them specifically, so either the exhaustion path isn't the only way to reach the bad arithmetic, or on the proprietary module that state is reached without being logged.

    The three earlier map failures were survived, 2h09m before the fatal one, with no Xid, no glitch I noticed at the time, and no resource sanity check line for any of them. If that warning is rate limited per call site then those three may have crossed the boundary too and gone unlogged, in which case the interesting question is why the fourth escalated when the first three didn't. If it isn't rate limited, then failing the map is harmless on its own and crossing into the next BAR is a separate and much rarer event. I can't tell which from the logs I have.

    Xid 175 also timed out after 10s here, where every other report in the thread shows 75s. And there's no krcWatchdog: GPU is probably locked! and no repeating NV_ERR_GPU_IN_FULLCHIP_RESET assertions. The recovery action stopped at 0x1 (GPU Reset Required) and stayed there.

    The symptoms match #1134 and @diacodion exactly: the display froze, audio kept playing and media keys still worked for about a minute, since neither goes near the GPU. Then anything touching the GPU went D-state behind the RM lock, no VT switch, and it came down to the power button. SysRq would have been the graceful way out but that one was my own fault, kernel.sysrq was at 16 here so only sync was allowed.

    Two things I've changed locally. Neither is a fix, and I'll report back either way.

    ReBAR is now on, following @leoric-crown's result upthread: NVreg_EnableResizableBar=1 plus Above 4G Decoding in firmware, so BAR1 goes from 256 MiB to 8 GiB. BAR1 usage here grows at roughly 40 MiB/h under my normal browsing, so 256 MiB works out to about six hours, which lines up with when this hit.

    I also set NVreg_EnableGpuFirmware=0, to see whether dropping GSP turns the Xid 31 into a recoverable channel kill instead of a wedged lock. If you find this thread while looking at that parameter, note that @diacodion's null result for it was on nvidia-open, where it's a no-op, so as far as I can tell nobody here has tested it on the proprietary module yet.

    I can run nvidia-bug-report.sh or test a patch if that would help.

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