Skip to content

Display freezes on display blank — KMS thread blocked on semaphore held by nvidia-modeset stuck in nvDIFRPrefetchSurfaces (610.57.04, still present) #1289

Open

Description

@Awin-G

NVIDIA Open GPU Kernel Modules Version

610.57.04 (git tag 610.57.04, commit e4a5faa), installed via Arch nvidia-open-dkms.

Confirm not proprietary driver

⚠️ NOT confirmed. This was observed with the open kernel driver only. The deadlock is in nvidia_modeset (nvkms) / nvidia_drm, code shared with the proprietary driver, so it likely affects the proprietary driver as well. I have not been able to test the proprietary driver on this machine.

OS / Kernel

  • OS: Arch Linux (rolling)
  • Kernel: 7.1.6-zen1-1-zen (freeze reproduced on 7.1.5-zen1-2-zen)
  • Stable release kernel (zen flavor, not a -rc)
  • Display server: GNOME Wayland

Hardware

  • GPU: NVIDIA GeForce RTX 4060 Laptop GPU (nvidia-smi -L)
  • Hybrid laptop: AMD Radeon 680M iGPU drives the internal panel (fbcon primary); the NVIDIA GPU drives an external HDMI monitor
  • CPU: AMD Ryzen 7 7735HS

Describe the bug

The display freezes during normal use; the desktop becomes unresponsive and never recovers — only a hard reboot (or SysRq) recovers. The system itself stays alive (SSH/background services keep running). First observed 2026-07-13, recurring across driver versions, and still present on the latest 610.57.04.

Kernel hung-task watchdog output, identical every occurrence:

INFO: task KMS thread:9236 blocked for more than 122 seconds.
      Tainted: G           OE       7.1.5-zen1-2-zen #1
task:KMS thread      state:D
  nvkms_ioctl_from_kapi_try_pmlock+0x4a/0xa0 [nvidia_modeset]
  ApplyModeSetConfig+0x169/0xda0 [nvidia_modeset]
  nv_drm_atomic_apply_modeset_config+0x7fb/0x920 [nvidia_drm]
  drm_atomic_check_only+0x5c4/0x9f0
  drm_atomic_commit+0x71/0xe0
  drm_mode_atomic_ioctl+0xdb8/0x1070
INFO: task KMS thread:9236 blocked on a semaphore likely last held by task nvidia-modeset/:591
task:nvidia-modeset/ state:R  running
  nvWriteGpEntry+0x10c/0x3e0 [nvidia_modeset]
  nvPushKickoff+0x2c/0x50
  PrefetchHelperSurfaceEvo+0x4df/0x6f0
  nvDIFRPrefetchSurfaces+0x158/0x240
  DifrPrefetchEventDeferredWork+0x16/0x30
  nvkms_kthread_q_callback+0xe6/0x170
  _main_loop+0x10e/0x160

The nvidia-modeset kthread spins (state R) holding the nvkms pmlock while the KMS thread waits forever on it → display deadlock.

To Reproduce

  1. Hybrid AMD+NVIDIA laptop, external monitor connected to the NVIDIA output (HDMI).
  2. Let the display auto-blank (GNOME PowerSaveMode / DPMS off).
  3. Freeze within ~minutes (sometimes immediately on blank/unblank).
  4. Also observed with screen-content capture (GNOME screenshot/screencast) and with several concurrent display clients (e.g. multiple terminal AI agents doing screen reads).
  5. Only a hard reboot recovers.

Bug Incidence

Sometimes (usually on display blank)

nvidia-bug-report.log.gz

Generated with nvidia-bug-report.sh for 610.57.04. I could not attach it through this form/API; the stack trace and environment above are the essential content. I can provide the file on request.

More Info

  • Workaround that fully avoids it: disable the display auto-blank (e.g. GNOME "Caffeine" extension always on). The freeze only occurs when a display modeset (blank) is performed on an NVIDIA-owned output.
  • The internal laptop panel is driven by the AMD iGPU; only the external HDMI monitor is NVIDIA-owned. Before switching the internal panel MUX away from the dGPU (独显直连 / discrete-direct), the freeze also occurred when the internal panel blanked.

Activity

  1. Awin-G commented on Aug 11, 2026

    @Awin-G
    Author

    Clarification on the symptom: the screen does not go blank/black — the last rendered frame stays frozen on the display, the desktop is fully unresponsive (no input, no cursor), and only a hard reboot (or SysRq) recovers. "Blank" in the title refers to the trigger (DPMS off / PowerSaveMode modeset), not the symptom. This is consistent with the display-pipeline deadlock shown in the hung-task stack (KMS thread blocked on the pmlock while nvidia-modeset spins in nvWriteGpEntry).

  2. Awin-G commented on Aug 11, 2026

    @Awin-G
    Author

    Update: stable reproduction + verified local mitigation

    Two follow-ups — this turned out to be reliably reproducible, and locally mitigable.

    Corrected reproduction recipe (my earlier "display blank" description was a misdiagnosis; the reliable trigger is resume-time display activity):

    1. Disable any idle inhibitor (e.g. the GNOME Caffeine extension).
    2. Connect an external monitor to the NVIDIA output (hybrid AMD+NVIDIA laptop: internal panel on AMD iGPU, external monitor on NVIDIA HDMI).
    3. Manually suspend → immediately resume → log back in.
    4. Within ~1–2 minutes of resume, perform display activity (e.g. drag a window onto the external monitor).
    5. Repeat. The freeze lands within a few rounds.

    Confirmed hung-task stack (identical every occurrence):

    KMS thread  state:D
      nvkms_ioctl_from_kapi_try_pmlock+0x4a/0xa0 [nvidia_modeset]
      ApplyModeSetConfig+0x169/0xda0 [nvidia_modeset]
      nv_drm_atomic_apply_modeset_config+0x7fb/0x920 [nvidia_drm]
    nvidia-modeset/  state:R
      nvWriteGpEntry+0x10c/0x3e0 [nvidia_modeset]
      nvPushSetObject+0xb1/0x170
      nvPushKickoff+0x2c/0x50
      PrefetchHelperSurfaceEvo+0x4df/0x6f0
      nvDIFRPrefetchSurfaces+0x158/0x240
      DifrPrefetchEventDeferredWork+0x16/0x30
      _main_loop+0x10e/0x160
    

    Root cause in code: nvWriteGpEntry() in src/common/unix/nvidia-push/src/nvidia-push.c contains an unbounded busy-wait:

    while (nextGpPut == ReadGpGetOffset(push_buffer)) {
        if (nvPushCheckChannelError(push_buffer)) { ... return FALSE; }
    }

    When the DIFR prefetch CE channel stalls (GET never advances, e.g. while the display engine re-initializes after resume), this spins forever holding the nvkms pmlock, so the KMS thread's modeset blocks → permanent display freeze (system otherwise alive; only hard reboot recovers).

    Local mitigation verified: I built a patch that bounds this wait to 1s only on the DIFR prefetch channel — added a boundedKickoff flag to NvPushChannelRec, set it in AllocDIFRPushChannel, and in nvWriteGpEntry time out (and return FALSE) only when boundedKickoff && !noTimeout. On timeout the prefetch fails and DIFR stays disabled, so the display no longer deadlocks. Result: the stall now logs nvWriteGpEntry: timed out waiting for GPFIFO space and the screen does not freeze — reproduced and caught 4/4 times, zero KMS thread blocked this boot. The change is scoped so the 3D/flip channels keep their original unbounded semantics.

    This is a workaround, not a proper fix: the CE channel should not be left in a state where nvWriteGpEntry can wait forever. A proper fix would bound the wait with channel recovery on timeout, or fix the DIFR CE stall after resume.

    Minor, possibly related: occasional 1–2 frame rendering artifacts (white→purple lines) while dragging windows, not the core issue.

    Disclosure: The reproduction, root-cause analysis, and local mitigation patch for this report were produced almost entirely by an AI coding agent (DeepSeek V4 Flash model, running via the Claude Code harness) on the reporter's machine; the reporter performed the manual reproduction steps and hardware testing.

  3. Awin-G commented on Aug 11, 2026

    @Awin-G
    Author

    Correction: the diff in my previous comment had a rendering artifact from the diff tool (a pre-existing return FALSE showed as inserted). Here is the clean, validated patch — it applies cleanly to pristine 610.57.04 (patch -p1) and produces byte-identical results to the tested build.

    diff --git a/src/common/unix/nvidia-push/interface/nvidia-push-types.h b/src/common/unix/nvidia-push/interface/nvidia-push-types.h
    --- a/src/common/unix/nvidia-push/interface/nvidia-push-types.h
    +++ b/src/common/unix/nvidia-push/interface/nvidia-push-types.h
    @@ -135,6 +135,7 @@
         NvBool          noTimeout                : 1;
         NvBool          ignoreChannelErrors      : 1;
         NvBool          channelErrorOccurred     : 1;
    +    NvBool          boundedKickoff           : 1;
     
         NvU32           channelHandle[NV_MAX_SUBDEVICES];
         NvU32           pushbufferHandle;
    diff --git a/src/nvidia-modeset/src/nvkms-difr.c b/src/nvidia-modeset/src/nvkms-difr.c
    --- a/src/nvidia-modeset/src/nvkms-difr.c
    +++ b/src/nvidia-modeset/src/nvkms-difr.c
    @@ -434,6 +434,8 @@
             return FALSE;
         }
     
    +    /* DIFR prefetch is best-effort; never let it hang the display stack. */
    +    pDifr->prefetchPushChannel.boundedKickoff = TRUE;
     
         return TRUE;
     }
    diff --git a/src/common/unix/nvidia-push/src/nvidia-push.c b/src/common/unix/nvidia-push/src/nvidia-push.c
    --- a/src/common/unix/nvidia-push/src/nvidia-push.c
    +++ b/src/common/unix/nvidia-push/src/nvidia-push.c
    @@ -349,6 +349,7 @@
         NvU32 *gpPointer;
         const NvU32 entriesNeeded = NV_PUSH_NUM_GPFIFO_ENTRIES_PER_KICKOFF;
         NvPushDevicePtr pDevice = push_buffer->pDevice;
    +    NvU64 kickoffDeadline;
     
         FillGpEntry(&push_buffer->main, putOffset, &gpEntry0, &gpEntry1);
     
    @@ -358,12 +359,27 @@
     
         nvAssert((nextGpPut % 2) == 0);
     
    -    // Wait for a free entry in the buffer
    +    // Wait for a free entry in the buffer.  Channels flagged with
    +    // boundedKickoff (currently only the DIFR prefetch channel) give up
    +    // after 1s instead of waiting forever, so a stalled channel fails the
    +    // kickoff rather than deadlocking the display stack.  All other
    +    // channels keep the original unbounded semantics.
    +    if (push_buffer->boundedKickoff && !push_buffer->noTimeout) {
    +        kickoffDeadline = nvPushImportGetMilliSeconds(pDevice) + 1000;
    +    }
         while (nextGpPut == ReadGpGetOffset(push_buffer)) {
             if (nvPushCheckChannelError(push_buffer)) {
                 nvAssert(!"A channel error occurred in nvWriteGpEntry()");
                 return FALSE;
             }
    +        if (push_buffer->boundedKickoff && !push_buffer->noTimeout &&
    +            nvPushImportGetMilliSeconds(pDevice) > kickoffDeadline) {
    +            nvPushImportLogError(pDevice,
    +                "nvWriteGpEntry: timed out waiting for GPFIFO space "
    +                "(get=%u put=%u); aborting kickoff",
    +                ReadGpGetOffset(push_buffer), push_buffer->gpPutOffset);
    +            return FALSE;
    +        }
         }
         gpPointer[0] = gpEntry0;
         gpPointer[1] = gpEntry1;
  4. Awin-G commented on Aug 11, 2026

    @Awin-G
    Author

    Confirmed same bug family as these reports:

    Common thread: nvidia-modeset spins in the unbounded while (nextGpPut == ReadGpGetOffset(...)) of nvWriteGpEntry during a DIFR prefetch, holding the nvkms pmlock → display deadlock. Spans GPUs RTX 4060 Laptop → RTX 5070/4090 and drivers 580→610, all triggered by resume/DPMS-wake display activity on hybrid setups.

    The mitigation patch in this issue is scoped to the DIFR channel and verified locally (4/4 stalls caught, 0 KMS thread blocked). It should apply to the others if their hang is the nvWriteGpEntry path (confirmed for #1177/#1167; pending stack confirmation for #1205/#1231).

  5. broscr commented on Aug 14, 2026

    @broscr

    Confirming this on 610.57.04, RTX 5070 Ti Mobile — identical stack, same trigger pattern (hybrid + external monitor + lock/unlock)

    Version / OS

    • nvidia-driver-open 610.57.04-1ubuntu1 (Ubuntu CUDA repo, apt install nvidia-open)
    • OS: Ubuntu 26.04 LTS
    • Kernel: 7.0.0-29-generic (also reproduced on 7.0.0-14-generic)
    • Stable release kernel, not -rc

    Hardware

    Describe the bug

    Full desktop freeze (GNOME Wayland), no input, no cursor, only recoverable via hard power-off — SysRq unavailable. Two occurrences so far, both shortly after unlocking the session:

    • 2026-08-13 14:57 (first occurrence)
    • 2026-08-14 13:38–13:41 (second occurrence)

    Both boots only started happening after the driver was auto-upgraded from 595.91.07 to 610.57.04 via the nvidia-open meta-package on 2026-08-13 — never observed on 595.91.07 before that.

    Reproduction pattern

    Matches the recipe in this issue almost exactly:

    1. Session locked (screen idle / gdm-password keyring lock).
    2. Unlock (gkr-pam: unlocked login keyring at 13:35:35).
    3. Freeze within ~3 minutes of unlock (13:38:49), with a second hung-task report at 13:40:52 as the same thread is still stuck.

    Hung-task log (identical signature to the reports above)

    INFO: task KMS thread:7872 blocked for more than 122 seconds.
          Tainted: G           OE       7.0.0-29-generic #29-Ubuntu
    task:KMS thread      state:D
      nvkms_ioctl_from_kapi_try_pmlock+... [nvidia_modeset]
      ...
    INFO: task KMS thread:7872 blocked on a semaphore likely last held by task nvidia-modeset/:536
    task:nvidia-modeset/ state:R  running
      RIP: 0010:nvWriteGpEntry+0xf9/0x370 [nvidia_modeset]
      ...
      nvPushKickoff+0x28/0x50 [nvidia_modeset]
      PrefetchHelperSurfaceEvo+0x45c/0x650 [nvidia_modeset]
      nvDIFRPrefetchSurfaces+0x135/0x1f0 [nvidia_modeset]
      DifrPrefetchEventDeferredWork+0x16/0x30 [nvidia_modeset]
      nvkms_kthread_q_callback+0xe9/0x190 [nvidia_modeset]
    

    Second report ~2 minutes later, same PID, same nvWriteGpEntry RIP (different offset — still spinning), confirming it's a livelock, not a one-off stall:

    INFO: task KMS thread:7872 blocked for more than 245 seconds.
    task:nvidia-modeset/ state:R  running
      RIP: 0010:nvWriteGpEntry+0x58/0x370 [nvidia_modeset]
    

    gnome-shell also logged Could not release device '/dev/input/event0' (13,64): Timeout was reached while the KMS thread was stuck, consistent with the compositor being unable to proceed at all.

    Notes

    • Checked NVIDIA's data-center release notes for 610.57.04 — no mention of this issue in "Known Issues," so it appears undocumented there (this is a GeForce/laptop hybrid config, may not be covered by that doc).
    • Ubuntu's nvidia-driver-open DKMS package ships nvidia-modeset/nv-modeset-kernel.o_binary as a precompiled blob (Kbuild symlinks it straight into nvidia-modeset.ko), so the source-level mitigation patch posted above can't be applied on top of the distro package without building the full open-gpu-kernel-modules tree from source ourselves — noting this in case it's useful context for anyone else on a distro-packaged build hitting the same wall.

    Happy to test the patch from this thread against a from-source build if that would help narrow this down further, or to pull any additional logs.

  6. handkerchief333 commented on Aug 23, 2026

    @handkerchief333

    I can confirm what appears to be the same nvidia_modeset / DIFR deadlock on a different hybrid laptop configuration.

    System

    • Laptop: Acer Predator PHN16-71
    • iGPU: Intel UHD Graphics 770 (Alder Lake-HX, i915)
    • dGPU: NVIDIA GeForce RTX 4060 Laptop GPU
    • OS: Fedora 44 KDE
    • Session: KDE Plasma / KWin Wayland
    • Kernel at time of freeze: 7.1.8-200.fc44.x86_64
    • NVIDIA driver / open kernel module: 610.57.04
    • Suspend mode: s2idle [deep], with deep selected
    • NVIDIA Runtime D3: enabled, fine-grained
    • nvidia-suspend.service, nvidia-resume.service and nvidia-hibernate.service: enabled

    Trigger / behaviour

    In my case the problem is strongly correlated with suspend/resume rather than only display blanking.

    It has occurred multiple times, typically after approximately 2–3 deep suspend/resume cycles followed by continued normal desktop use with multiple applications open.

    The resume itself succeeds and the system can continue working normally for some time. Eventually the entire graphical session freezes:

    • display stops updating
    • mouse and normal keyboard input stop working
    • Ctrl+Alt+F3 does not switch to a TTY
    • fans ramp up
    • Magic SysRq remains functional

    On the latest occurrence I used SysRq w and l before rebooting with REISUB.

    SysRq w: KWin blocked inside NVIDIA modesetting

    The blocked task was kwin_wayland in uninterruptible sleep:

    task:kwin_wayland    state:D
    
    __schedule
    schedule
    schedule_timeout
    ___down_common
    __down
    down
    nvkms_ioctl_from_kapi_try_pmlock [nvidia_modeset]
    ApplyModeSetConfig [nvidia_modeset]
    nv_drm_atomic_apply_modeset_config [nvidia_drm]
    drm_atomic_check_only
    drm_mode_atomic_ioctl
    drm_ioctl_kernel
    drm_ioctl
    

    SysRq l: NVIDIA modeset thread stuck in DIFR prefetch

    At the same time an nvidia-modeset/ kernel thread was active in:

    nvWriteGpEntry [nvidia_modeset]
    nvPushKickoff [nvidia_modeset]
    PrefetchHelperSurfaceEvo [nvidia_modeset]
    nvDIFRPrefetchSurfaces [nvidia_modeset]
    DifrPrefetchEventDeferredWork [nvidia_modeset]
    nvkms_kthread_q_callback [nvidia_modeset]
    _main_loop [nvidia_modeset]
    

    This looks essentially identical to the deadlock reported in this issue: KWin waits for the NVIDIA KMS lock while the nvidia-modeset thread is stuck in the DIFR prefetch path.

    The rest of the CPUs were mostly idle according to the SysRq backtrace, and Magic SysRq remained fully responsive. REISUB successfully rebooted the machine.

    I did not observe an NVIDIA Xid, OOM condition, thermal critical event or kernel panic preceding the freeze.

    I have attached a sanitized kernel SysRq log containing the complete blocked-task and CPU backtraces:

    nvidia-freeze-sysrq-public.log

    I also generated a full nvidia-bug-report.log.gz immediately after reproducing the problem. I am not attaching that publicly for privacy reasons, but I can provide it privately to NVIDIA if useful.

    The interesting additional data point here is that this reproduces the same apparent nvDIFRPrefetchSurfaces / nvWriteGpEntry deadlock on:

    • Intel + NVIDIA hybrid graphics instead of AMD + NVIDIA
    • Fedora 44 instead of Arch Linux
    • KDE/KWin Wayland instead of GNOME Wayland
    • repeated S3/deep suspend-resume cycles as the apparent trigger

    Please let me know if there are additional traces, module parameters or debug data I can collect during another occurrence.

  7. albanD commented on Aug 24, 2026

    @albanD

    EDIT: The patch at #1286 fixes this for me locally.

    Confirming the same DIFR-path livelock on another RTX 4090 Laptop system, with both the spinning lock holder and blocked KMS thread captured.

    System

    • Lenovo ThinkPad P1 Gen 6
    • NVIDIA GeForce RTX 4090 Laptop GPU, Ada AD103M (10de:2717)
    • Fedora 44, GNOME Wayland
    • NVIDIA open kernel module 595.71.05
    • Kernel 7.1.8-200.fc44

    Timeline

    • 10:59:01 — dock USB devices enumerated
    • 10:59:04 — PFM_REQ_HNDLR_STATE_SYNC_CALLBACK assertion
    • 10:59:05 — GNOME Shell recreated its GBM renderer for /dev/dri/card0
    • 10:59:40 — local CPU watcher detected nvidia-modeset PID 1426 in state R at 99% of one core
    • ~11:00:20 — display froze
    • 11:03:20–11:03:50 — SysRq W/L traces captured

    Blocked KMS thread

    task:KMS thread  state:D  pid:2308  tgid:2261
      __schedule
      schedule
      schedule_timeout
      ___down_common
      __down
      down
      nvkms_ioctl_from_kapi_try_pmlock+0x4a/0xa0 [nvidia_modeset]
      ApplyModeSetConfig+0x59e/0xba0 [nvidia_modeset]
      nv_drm_atomic_apply_modeset_config+0x49b/0x550 [nvidia_drm]
      drm_atomic_check_only
      drm_atomic_nonblocking_commit
      drm_mode_atomic_ioctl
    

    Spinning NVIDIA modeset thread

    CPU: 1  PID: 1426  Comm: nvidia-modeset/
    RIP: nvWriteGpEntry+0xf0/0x370 [nvidia_modeset]
      nvPushKickoff+0x28/0x50
      PrefetchHelperSurfaceEvo+0x45c/0x650
      nvDIFRPrefetchSurfaces+0xb1/0x1f0
      DifrPrefetchEventDeferredWork+0x16/0x30
      nvkms_kthread_q_callback+0xdb/0x160
      _main_loop+0x112/0x170
    

    A second SysRq L dump 27 seconds later captured the same PID in
    nvWriteGpEntry+0xa4/0x370, now on CPU 7, with the same stack pointer and
    relevant register values. This confirms sustained execution inside the
    nvWriteGpEntry() loop rather than a transient sample.

    Released source indicates that the deferred callback holds the global
    nvkms_lock. Despite the nvkms_ioctl_from_kapi_try_pmlock name, the KMS
    thread successfully takes the shared PM read lock and then blocks in
    nvkms_ioctl_common() on down(&nvkms_lock).

    This conclusively matches the livelock/deadlock signature reported here. It is
    also consistent with the GPFIFO-exhaustion theory in PR #1286, although these
    traces do not directly measure GP_GET/PUT or independently prove the preceding
    per-timeout ring leak.

    CONFIG_DETECT_HUNG_TASK is disabled in Fedora’s kernel, so no automatic
    122-second hung-task report was available. SysRq W/L/S/U remained functional;
    SysRq B did not reboot this machine during the hang.

    I can provide a sanitized complete SysRq/kernel log if useful.

  8. amrit1711 commented on Aug 31, 2026

    @amrit1711

    Hi All,

    I have filed a bug 6696638 internally for tracking purpose.

    We will get back to you if required any additional information.

  9. henriquefortuna commented on Sep 4, 2026

    @henriquefortuna

    Confirming the same DIFR/NVKMS deadlock on different hardware and desktop environment.

    System:

    • Acer Nitro ANV15-41
    • BIOS V1.18
    • AMD Ryzen 7 7735HS
    • AMD Radeon 680M iGPU
    • NVIDIA GeForce RTX 4050 Laptop GPU
    • NVIDIA driver 610.57.04 (open kernel module)
    • CachyOS
    • Linux 7.2.2-1-cachyos
    • KDE Plasma / KWin Wayland
    • Hybrid AMD/NVIDIA graphics
    • External monitor connected

    I had previously experienced recurring full graphical freezes on Fedora 44 KDE/Wayland on this same machine. I installed CachyOS partly to determine whether the issue was Fedora-specific. The freeze has now reproduced on CachyOS as well.

    During the CachyOS occurrence on 2026-09-02, the graphical session froze immediately after suspend/resume. The kernel and networking remained alive and I was able to investigate the machine over SSH while it was still frozen.

    The resume timeline included:

    09:10:22:
    amdgpu: SMU is resuming...
    amdgpu: SMU is resumed successfully!

    09:10:23:
    PM: suspend exit
    kwin_wayland[1218]: Applying output configuration failed!

    While the graphical session was still frozen, kwin_wayland PID 1218 was in uninterruptible sleep (D state).

    Its kernel stack was:

    nvkms_ioctl_from_kapi_try_pmlock
    ApplyModeSetConfig
    nv_drm_atomic_check
    drm_atomic_check_only
    drm_mode_atomic_ioctl

    At the same time, the nvidia-modeset kernel thread (PID 284) was in R state.

    Using SysRq 'l' over SSH while the system was still hung produced an NMI backtrace which captured that thread on CPU 6 in:

    nvWriteGpEntry
    nvPushKickoff
    PrefetchHelperSurfaceEvo
    nvDIFRPrefetchSurfaces
    DifrPrefetchEventDeferredWork
    nvkms_kthread_q_callback
    _main_loop

    Kernel diagnostics also reported the blocked KWin task as waiting on a semaphore likely last held by the nvidia-modeset thread.

    This appears to be the same NVKMS PM-lock / DIFR deadlock described in this issue, reproduced here on an RTX 4050 Laptop GPU with KDE/KWin.

    The fact that I previously experienced the same type of freezes on Fedora KDE on the same hardware also makes a Fedora-specific issue unlikely.

    I also noticed PR #1286, which appears to address the same DIFR prefetch / nvWriteGpEntry hang:

    #1286

    I have NOT tested that patch, so I cannot confirm whether it fixes the issue on this system. This reproduction occurred with the unmodified NVIDIA 610.57.04 driver.

    I captured an nvidia-bug-report.log.gz while the machine was still hung, as well as the complete kernel journal from the affected boot. The nvidia-bug-report script did not complete within 60 seconds, but it produced a report containing the blocked-task diagnostics and relevant traces.

    The complete kernel journal from the affected boot is also available if useful, and I can perform additional tests if needed.

    nvidia-bug-report.log.gz

  10. aritger commented on Sep 4, 2026

    @aritger
    Collaborator

    @henriquefortuna: could you check whether you still see this with 595.99.02?
    https://www.nvidia.com/en-us/drivers/details/278285/
    That release contains a fix which I think will avoid the problem reported here.

  11. sdev138 commented on Sep 5, 2026

    @sdev138

    Can confirm the same deadlock on different hardware and config:
    System:

    • OS: Ubuntu 26.04.1 LTS (Resolute Raccoon) x86_64
    • Driver:
    • Kernel: Linux 7.0.0-31-generic
    • DE: GNOME 50.1
    • WM: Mutter (Wayland)
    • CPU: AMD Ryzen 7 9800X3D (16) @ 5.27 GHz
    • GPU 1: AMD Radeon Graphics [Integrated]
    • GPU 2: NVIDIA GeForce RTX 5070 Ti [Discrete]

    I have been experiencing these issues for quite some time now. To replicate, simply putting the desktop in "suspend" for a long period of time and then opening an application, in this case 'Steam', will cause the entire desktop to freeze.

    The Cause:
    nvidia-modeset became stuck inside nvWriteGpEntry -> nvDIFRPrefetchSurfaces while holding a lock. GNOME’s KMS thread then waited indefinitely, freezing the display.

    Logs:

    desktop kernel: INFO: task KMS thread:6791 blocked for more than 122 seconds.
    desktop kernel: task:KMS thread      state:D stack:0     pid:6791  tgid:6759
    desktop kernel:  down+0x5e/0x80
    desktop kernel:  nvkms_ioctl_from_kapi_try_pmlock+0x55/0xc0 [nvidia_modeset]
    desktop kernel:  ApplyModeSetConfig+0x59e/0xba0 [nvidia_modeset]
    desktop kernel:  ? nv_drm_atomic_apply_modeset_config+0x80b/0x9c0 [nvidia_drm]
    desktop kernel:  ? drm_atomic_check_only+0x199/0x420
    desktop kernel:  ? drm_mode_atomic_ioctl+0x57e/0x910
    desktop kernel: INFO: task KMS thread:6791 blocked on a semaphore likely last held by task nvidia-modeset/:527
    desktop kernel: task:nvidia-modeset/ state:R  running task     stack:0     pid:527
    desktop kernel: RIP: 0010:nvWriteGpEntry+0xbd/0x370 [nvidia_modeset]
    desktop kernel:  ? nvPushKickoff+0x28/0x50 [nvidia_modeset]
    desktop kernel:  ? PrefetchHelperSurfaceEvo+0x45c/0x650 [nvidia_modeset]
    desktop kernel:  ? nvDIFRPrefetchSurfaces+0xb1/0x1f0 [nvidia_modeset]
    desktop kernel:  ? DifrPrefetchEventDeferredWork+0x16/0x30 [nvidia_modeset]
    desktop kernel:  ? _main_loop+0x99/0x160 [nvidia_modeset]
    
  12. henriquefortuna commented on Sep 6, 2026

    @henriquefortuna

    @aritger :
    Hi Andy,

    I've now downgraded from 610.57.04 to 595.99.02 as requested.

    I'm using the open kernel modules (nvidia-open-dkms), built for my current CachyOS kernel (7.2.2-1-cachyos). Both the loaded kernel module and userspace are now reporting 595.99.02:

    $ uname -r
    7.2.2-1-cachyos

    $ nvidia-smi
    NVIDIA-SMI 595.99.02
    Driver Version: 595.99.02

    $ modinfo nvidia | grep '^version:'
    version: 595.99.02

    The system booted normally and KDE/KWin Wayland is running normally so far.

    I'll keep using the machine normally and exercise suspend/resume over the next few days. I'll report back whether the freeze reproduces.

    If it does reproduce, I'll capture the live kernel stacks again over SSH/SysRq so we can check whether the nvidia-modeset / DIFR stack is still the same.

    Thanks for pointing me to this release.

  13. robert-burton commented on Sep 6, 2026

    @robert-burton

    I'd been having this issue on my laptop (as detailed here) and PR #1286 seems to have fixed it for the most part.

  14. GurraD commented on Sep 10, 2026

    @GurraD

    Me and my codex have investigated this hanging for a while on my machine. Here is some text we created. I hope it helps and is not too lengthy:
    Additional reproduction on an RTX 2000 Ada laptop GPU. Captured traces show both the spinning DIFR worker and the blocked compositor during the same hang.

    Configuration:

    • Dell Precision 7680, RTX 2000 Ada Laptop GPU
    • Fedora 44, kernel 7.1.13-200.fc44.x86_64
    • NVIDIA open driver 610.57.04
    • GNOME/Mutter 50.4, Wayland
    • Internal panel driven by Intel; external HDMI display driven by NVIDIA
    • Hardware cursors disabled using MUTTER_DEBUG_DISABLE_HW_CURSORS=1

    Incident sample:
    The desktop froze, but the kernel and background logging continued operating. There were no recorded system suspend/resume events during this boot. NVIDIA runtime-power counters showed earlier runtime
    suspension; the GPU was runtime-active when captured.

    Three SysRq CPU backtraces, one second apart, caught the same NVIDIA worker in:
    nvWriteGpEntry+0xfc/0x370
    nvWriteGpEntry+0xa4/0x370
    nvWriteGpEntry+0x58/0x370

    All three shared this call chain:
    nvPushKickoff
    PrefetchHelperSurfaceEvo
    nvDIFRPrefetchSurfaces
    DifrPrefetchEventDeferredWork
    nvkms_kthread_q_callback
    _main_loop

    The simultaneous blocked-task dump showed GNOME’s KMS thread waiting in:
    down
    nvkms_ioctl_from_kapi_try_pmlock+0x4a/0xa0
    ApplyModeSetConfig+0x60a/0xc70
    nv_drm_atomic_apply_modeset_config
    drm_atomic_check_only
    drm_atomic_nonblocking_commit
    drm_mode_atomic_ioctl

    Disassembly of the installed module identifies the semaphore acquisition at +0x4a as nvkms_lock.

    The worker’s registers and disassembly also indicate the ring-space retry condition: a 16-entry ring, current PUT position 0, next PUT position 2, and decoded GET position 2. The samples retain the same push-
    buffer and stack pointers.

    This appears to match #1246 and the failure mechanism addressed by PR #1286. It establishes the blocking mechanism, but does not identify why the channel stopped progressing initially.

    Questions:

    1. Is the DIFR lifecycle fix in 615.71.09 expected to address this case without system suspend? I have not tested that version yet.
    2. What additional tracing would help identify the initial channel stall, particularly around runtime-power transitions?
    3. Is there a supported workaround for this path while the timeout/recovery changes in Fix system hang from DIFR prefetch GPFIFO exhaustion #1286 remain pending?

    Below is a graphics hang diagnostic excerpt:
    Only the blocked KMS kernel stack and three NVIDIA worker samples are retained.
    Host/date/time, process IDs, unrelated tasks, network events and hardware/BIOS lines omitted.
    Absolute kernel addresses replaced consistently with <ptr_N>; scalar register values retained.
    Sample labels preserve the one-second spacing. Kernel: 7.1.13-200.fc44.x86_64.

    Blocked KMS thread (sample 1):
    task:KMS thread state:D
    Call Trace:

    __schedule+0x2c4/0x710
    schedule+0x27/0xa0
    schedule_timeout+0xdc/0x120
    ___down_common+0xd2/0x1f0
    __down+0x26/0xe0
    down+0x47/0x60
    nvkms_ioctl_from_kapi_try_pmlock+0x4a/0xa0 [nvidia_modeset]
    ApplyModeSetConfig+0x60a/0xc70 [nvidia_modeset]
    nv_drm_atomic_apply_modeset_config+0x57d/0x640 [nvidia_drm]
    ? nv_drm_plane_atomic_check+0x123/0x590 [nvidia_drm]
    drm_atomic_check_only+0x197/0x400
    drm_atomic_nonblocking_commit+0x17/0x70
    drm_mode_atomic_ioctl+0x571/0x8b0
    ? __pfx_drm_mode_atomic_ioctl+0x10/0x10
    drm_ioctl_kernel+0xae/0x100
    drm_ioctl+0x2d9/0x560
    ? __pfx_drm_mode_atomic_ioctl+0x10/0x10
    __x64_sys_ioctl+0xb9/0x100
    do_syscall_64+0xe2/0x560
    ? __x64_sys_ppoll+0xf3/0x180
    ? arch_exit_to_user_mode_prepare.isra.0+0x84/0xa0
    ? do_syscall_64+0x11f/0x560
    ? ksys_read+0xdd/0x110
    ? do_syscall_64+0x11f/0x560
    ? __x64_sys_ppoll+0xf3/0x180
    ? do_syscall_64+0x11f/0x560
    ? do_syscall_64+0x11f/0x560
    ? ksys_write+0xdd/0x110
    ? do_syscall_64+0x11f/0x560
    ? do_syscall_64+0x11f/0x560
    ? do_syscall_64+0x11f/0x560
    ? do_syscall_64+0x99/0x560
    entry_SYSCALL_64_after_hwframe+0x76/0x7e
    [userspace registers omitted]

    NVIDIA worker sample 1 (t+0s; same worker):
    RIP: 0010:nvWriteGpEntry+0xfc/0x370 [nvidia_modeset]
    Code: 2e 2e ff d2 80 0b 10 48 83 c4 28 44 89 f8 5b 5d 41 5c 41 5d 41 5e 41 5f c3 0f 1f 44 00 00 48 8b 83 10 01 00 00 8b 38 c1 ef 12 <01> ff 39 fd 74 a2 48 8b 7c 24 08 44 89 f2 43 8d 04 12 48 03 54 24
    RSP: 0018:<ptr_1> EFLAGS: 00000202
    RAX: <ptr_2> RBX: <ptr_3> RCX: <ptr_4>
    RDX: <ptr_5> RSI: 0000000000000344 RDI: 0000000000000001
    RBP: 0000000000000002 R08: 0000000000000000 R09: 0000000000000001
    R10: 0000000000000000 R11: 0000000000000010 R12: <ptr_6>
    R13: 0000000000000344 R14: 00000000000002dc R15: 0000000000000000
    Call Trace:

    nvPushKickoff+0x28/0x50 [nvidia_modeset]
    PrefetchHelperSurfaceEvo+0x45c/0x650 [nvidia_modeset]
    nvDIFRPrefetchSurfaces+0x135/0x1f0 [nvidia_modeset]
    DifrPrefetchEventDeferredWork+0x16/0x30 [nvidia_modeset]
    nvkms_kthread_q_callback+0xdb/0x160 [nvidia_modeset]
    _main_loop+0x112/0x170 [nvidia_modeset]
    ? __pfx__main_loop+0x10/0x10 [nvidia_modeset]
    kthread+0xe4/0x120
    ? __pfx_kthread+0x10/0x10
    ret_from_fork+0x1a1/0x270
    ? __pfx_kthread+0x10/0x10
    ret_from_fork_asm+0x1a/0x30

    NVIDIA worker sample 2 (t+1s; same worker):
    RIP: 0010:nvWriteGpEntry+0xa4/0x370 [nvidia_modeset]
    Code: 10 01 00 00 8b 00 c1 e8 12 01 c0 41 29 c0 43 8d 14 03 41 0f 49 d0 39 f2 7c 04 89 d6 89 c7 83 c1 01 44 39 c9 75 d0 39 fd 75 5e <44> 0f b6 3b 41 83 e7 08 75 aa 48 8b 93 80 01 00 00 0f b7 42 0e 66
    RSP: 0018:<ptr_1> EFLAGS: 00000246
    RAX: <ptr_2> RBX: <ptr_3> RCX: <ptr_4>
    RDX: <ptr_5> RSI: 0000000000000344 RDI: 0000000000000002
    RBP: 0000000000000002 R08: 0000000000000000 R09: 0000000000000001
    R10: 0000000000000000 R11: 0000000000000010 R12: <ptr_6>
    R13: 0000000000000344 R14: 00000000000002dc R15: 0000000000000000
    Call Trace:

    nvPushKickoff+0x28/0x50 [nvidia_modeset]
    PrefetchHelperSurfaceEvo+0x45c/0x650 [nvidia_modeset]
    nvDIFRPrefetchSurfaces+0x135/0x1f0 [nvidia_modeset]
    DifrPrefetchEventDeferredWork+0x16/0x30 [nvidia_modeset]
    nvkms_kthread_q_callback+0xdb/0x160 [nvidia_modeset]
    _main_loop+0x112/0x170 [nvidia_modeset]
    ? __pfx__main_loop+0x10/0x10 [nvidia_modeset]
    kthread+0xe4/0x120
    ? __pfx_kthread+0x10/0x10
    ret_from_fork+0x1a1/0x270
    ? __pfx_kthread+0x10/0x10
    ret_from_fork_asm+0x1a/0x30

    NVIDIA worker sample 3 (t+2s; same worker):
    RIP: 0010:nvWriteGpEntry+0x58/0x370 [nvidia_modeset]
    Code: 48 89 44 24 10 4c 8b a7 98 01 00 00 41 8d 43 ff 41 8d 6a 02 21 c5 48 8b 87 b8 00 00 00 45 8b 4c 24 10 48 89 44 24 08 0f 1f 00 <41> 83 f9 01 0f 86 8e 00 00 00 31 ff 31 f6 31 c9 0f 1f 84 00 00 00
    RSP: 0018:<ptr_1> EFLAGS: 00000213
    RAX: 0000000000000000 RBX: <ptr_3> RCX: <ptr_4>
    RDX: <ptr_5> RSI: 0000000000000344 RDI: 0000000000000002
    RBP: 0000000000000002 R08: 0000000000000000 R09: 0000000000000001
    R10: 0000000000000000 R11: 0000000000000010 R12: <ptr_6>
    R13: 0000000000000344 R14: 00000000000002dc R15: 0000000000000000
    Call Trace:

    nvPushKickoff+0x28/0x50 [nvidia_modeset]
    PrefetchHelperSurfaceEvo+0x45c/0x650 [nvidia_modeset]
    nvDIFRPrefetchSurfaces+0x135/0x1f0 [nvidia_modeset]
    DifrPrefetchEventDeferredWork+0x16/0x30 [nvidia_modeset]
    nvkms_kthread_q_callback+0xdb/0x160 [nvidia_modeset]
    _main_loop+0x112/0x170 [nvidia_modeset]
    ? __pfx__main_loop+0x10/0x10 [nvidia_modeset]
    kthread+0xe4/0x120
    ? __pfx_kthread+0x10/0x10
    ret_from_fork+0x1a1/0x270
    ? __pfx_kthread+0x10/0x10
    ret_from_fork_asm+0x1a/0x30

  15. ccueto36 commented on Sep 14, 2026

    @ccueto36

    I’m seeing a likely related failure on CachyOS with KDE Plasma/KWin Wayland and NVIDIA open driver 610.57.04 (RTX 3060 Ti, kernel 7.2.3-1-cachyos, two Dell S2721QS displays at 3840×2160@60). After locking the session and returning about 85 minutes later, the displays were blank and the pointer was frozen; recovery required a hardware power reset.

    Previous-boot journal: at 16:19:20, kscreenlocker_greet repeatedly logged eglSwapBuffers failed with 0x3000/0x3003, alongside repeated [nvidia_drm] Failed to allocate NVKMS memory for GEM object; the same NVKMS error had already occurred at 10:31 during a Chromium/Flatpak GBM allocation and at 14:33. At 17:44:10, plasmalogin logged tty "tty1" already in use ... active ... KDE, started a second Wayland session on VT2, the existing kwin_wayland logged atomic commit failed: Permission denied, and ksplashqml failed to create an EGL surface. The previous boot ended without a normal shutdown; no OOM, Xid, or kernel-panic entry was recorded.

    This looks like an NVKMS/KMS/Wayland blank-wake failure, possibly related to the DIFR/KMS deadlock family. I have not reproduced it with the proprietary driver and did not capture nvidia-bug-report.sh during the hang because the machine required a hard reset. Any guidance on the minimal capture or safe workaround would be appreciated.

  16. 13 remaining items

  17. najibninaba commented on Nov 8, 2026

    @najibninaba

    Another confirmation on 615.78.08, triggered by a DPMS wake with no suspend, Hyprland 0.56.2.

    System

    • ASUS TUF laptop, AMD Phoenix1 iGPU (amdgpu) + RTX 4060 Laptop GPU (AD107M, 10de:28e0)
    • Only active display: external HDMI-A-1 on the dGPU (2560x1080@165). Internal eDP on the iGPU is disabled.
    • nvidia-open-dkms 615.78.08 (unpatched), kernel 7.2.15, nvidia_drm modeset=1 fbdev=1, NVreg_DynamicPowerManagement=3, NVreg_PreserveVideoMemoryAllocations=1
    • Arch-based (Omarchy 4.5), Hyprland 0.56.2 / aquamarine 0.15.1

    Sequence (no suspend during this boot, uptime 12h40m)

    • 07:51:11 idle lock, 07:51:18 DPMS off
    • 07:54:57 user activity, DPMS on. Compositor briefly sees no outputs, then a burst of hotplug events on the NVIDIA card
    • 07:58:14 hung task:
    INFO: task Hyprland:1398 blocked for more than 122 seconds.
     down+0x53/0x70
     nvkms_ioctl_from_kapi_try_pmlock+0x4a/0xa0 [nvidia_modeset]
     ApplyModeSetConfig+0x67b/0xe30 [nvidia_modeset]
     nv_drm_atomic_apply_modeset_config+0x8aa/0xa80 [nvidia_drm]
     drm_atomic_check_only+0x5d1/0xa30
     drm_mode_atomic_ioctl+0xec7/0x1200
    INFO: task Hyprland:1398 blocked on a semaphore likely last held by task nvidia-modeset/:245
    task:nvidia-modeset/ state:R running task
     ? nvWriteGpEntry+0x10c/0x3f0 [nvidia_modeset]
     ? nvPushSetObject+0xb1/0x170 [nvidia_modeset]
     ? nvPushKickoff+0x2c/0x50 [nvidia_modeset]
     ? PrefetchHelperSurfaceEvo+0x4df/0x700 [nvidia_modeset]
     ? nvDIFRPrefetchSurfaces+0x155/0x240 [nvidia_modeset]
     ? DifrPrefetchEventDeferredWork+0x16/0x30 [nvidia_modeset]
     ? nvkms_kthread_q_callback+0xe6/0x170 [nvidia_modeset]
    

    nvidia-modeset/kthread_q holds 100% of one core. Hyprland ignores SIGKILL. SSH and the rest of the system keep working. A desktop freeze right after unlocking the night before is likely the same bug, but that boot was rebooted before the hung-task watchdog fired.

    Attached is nvidia-bug-report.log.gz, captured while it was still hung. I had to use --safe-mode, because the normal run blocked on reading /proc/driver/nvidia-modeset/dpys, which waits on the same lock.

    As a workaround I stopped the lock screen from turning the displays off. It has held so far.

    I checked the 620.70.06 tag: in nvkms-evo.c, nvAllocLutSurfacesEvo still runs before nvHsAllocDevice, so the Oct 30 patch doesn't seem to be in it yet.

    nvidia-bug-report.log.gz

  18. myrgy commented on Nov 9, 2026

    @myrgy

    UPD: freezing happened to me again. as a rule it happens when Crimson Desert loses focus on external monitor.

    UPD2: looks like I managed to find how the issue could be reproduced even in patched version - by running Crimson Desert and btop (with GPU monitoring on). it takes about 20-30 seconds to hang the system on.

    Seem to be working for me as well.

    Thank you, @aritger!

    MSI Titan, Intel + Nvidia 4090
    Arch, sway
    7.2.14-arch1-1
    nvidia-open-dkms 615.78.08-1

  19. jjsch-dev commented on Nov 12, 2026

    @jjsch-dev

    Additional reproduction on the proprietary driver: DPMS and HDMI hotplug

    I am seeing a very similar NVKMS deadlock using the proprietary Ubuntu driver, not the open kernel modules. It has occurred both after idle display blanking (PowerSaveMode) and after reconnecting an external HDMI monitor.

    This may be useful because most reports in this issue appear to use the open modules, and because the failure here is not limited to suspend/resume.

    Environment

    • Laptop: Lenovo LOQ-15AHP9
    • GPU: NVIDIA AD107M / GeForce RTX 4060 Max-Q Mobile (10de:28e0)
    • Integrated GPU: AMD HawkPoint1 (amdgpu), drives the internal eDP panel
    • External monitor: Samsung LF22T35 on HDMI-A-1, wired to the NVIDIA GPU
    • OS: Ubuntu 26.04.1 LTS
    • Desktop: GNOME Shell / Mutter 50.1 on Wayland
    • Driver: nvidia-driver-595 595.99.02-0ubuntu0.26.04.1, proprietary
    • Current kernel: 7.0.0-43-generic
    • Earlier reproductions also occurred with kernels 7.0.0-38 and 7.0.0-42
    • Current NVIDIA settings include DynamicPowerManagement=2,
      PreserveVideoMemoryAllocations=1, and UseKernelSuspendNotifiers=0

    Confirmed DPMS incident — 2026-11-12

    After more than one hour idle with the external monitor connected, both displays remained on but the desktop was completely frozen. The clock on the internal display showed 16:22. Mouse, keyboard and Ctrl+Alt+F2/F3 did not respond.

    Journal timeline:

    • 16:22:36: last ordinary log entry before the incident.
    • 16:23:10: gsd-power timed out setting PowerSaveMode on
      org.gnome.Mutter.DisplayConfig.
    • 16:23:24: AT-SPI marked gnome-shell (PID 11168) as unresponsive.
    • 16:24:54: first hung-task report for the gnome-shell KMS thread,
      already blocked for more than 122 seconds. This places the approximate
      onset around 16:22:52, consistent with the clock frozen at 16:22.
    • Reports continued through 16:43:19, reaching 1228 seconds.

    The waiter was the gnome-shell KMS thread (pid 11189, tgid 11168):

    nvkms_ioctl_from_kapi_try_pmlock [nvidia_modeset]
    nv_drm_atomic_apply_modeset_config [nvidia_drm]
    nv_drm_atomic_check [nvidia_drm]
    drm_atomic_check_only
    drm_atomic_commit
    drm_mode_atomic_ioctl
    nv_drm_ioctl [nvidia_drm]
    

    The kernel then reported:

    KMS thread blocked on a semaphore likely last held by task nvidia-modeset/:1417
    task:nvidia-modeset/ state:R running task
    

    The proprietary holder-side stack resolves to numbered _nv... symbols rather
    than nvWriteGpEntry / nvDIFRPrefetchSurfaces, so I cannot independently
    confirm that the spin site is DIFR. However, the waiter, semaphore ownership,
    state R, and resulting display deadlock match the topology described in this
    issue.

    The rest of the system stayed alive. NetworkManager, Chrome, cron and sysstat
    continued logging until 17:20:04. There were no suspend/resume entries, Xid
    errors, OOM, USB input disconnections or relevant amdgpu errors.

    sar also showed kernel CPU time stabilizing around 6.3% on a 16-CPU system,
    approximately one fully occupied core, while userspace CPU was around 0.13%.
    This is consistent with the running nvidia-modeset thread and with the fans
    ramping up, but not with all CPUs being saturated.

    Earlier HDMI hotplug incident — 2026-11-10
    On a different occasion I logged in successfully with HDMI disconnected and
    then reconnected the monitor. The desktop froze in under one minute.

    Timeline:

    • 19:14:39: Cursor update failed: drmModeAtomicCommit: Invalid argument

    (before unlocking).

    • 19:14:41: session unlocked successfully.

    • 19:14:46: Created gbm renderer for '/dev/dri/card2' (NVIDIA), consistent

    with the HDMI reconnection.

    • 19:15:36: Could not release device '/dev/input/event1': Timeout was reached.

    • 19:16:01: another input-device release timeout, then the journal ended.

    • 19:16:52: next boot; journald and the filesystem reported unclean shutdown.

    The reboot happened roughly 75 seconds after renderer recreation, before the
    120-second hung-task detector could fire. The input-release timeout is the same
    message mentioned elsewhere in this issue while the KMS thread was stuck.

    Earlier direct hung-task reproductions
    I also have similar direct traces from:

    • 2026-10-09, kernel 7.0.0-38, proprietary NVIDIA 595.91.07

    • 2026-10-18, kernel 7.0.0-38, proprietary NVIDIA 595.99.02

    Both show the gnome-shell KMS thread blocked in
    nvkms_ioctl_from_kapi_try_pmlock /
    nv_drm_atomic_apply_modeset_config, with the semaphore held by a running
    nvidia-modeset thread. In both cases gsd-power also timed out on
    PowerSaveMode.

    Summary
    This looks very close to the NVKMS lock topology discussed here, with two
    distinct triggers:

    1. Idle PowerSaveMode / DPMS.

    2. External-monitor disconnect/reconnect.

    It occurs with the proprietary driver and across multiple kernels, and does
    not require system suspend/resume. I cannot prove the internal DIFR spin site
    from the proprietary symbols, but the resulting KMS deadlock is directly
    captured by hung-task reports.

    I can provide sanitized journal excerpts for any of these incidents if useful.

  20. levihackerman-102 commented on Nov 12, 2026

    @levihackerman-102

    Reproduced on 615.78.08 (open kernel modules), Arch Linux, kernel 7.2.15

    Adding another confirmed reproduction of this exact deadlock, on the latest production branch release 615.78.08 (nvidia-open/nvidia-utils 615.78.08-6, Arch linux 7.2.15-arch1-1). This is the same DIFR prefetch livelock described above: nvidia-modeset kthread spins indefinitely in nvWriteGpEntry → nvPushKickoff → PrefetchHelperSurfaceEvo → nvDIFRPrefetchSurfaces → DifrPrefetchEventDeferredWork while holding the nvkms pmlock; kwin_wayland blocks in D-state in nvkms_ioctl_from_kapi_try_pmlock. The system never recovers (hung-task reports continued past 1228s until suppressed) and requires a hard reset.

    This has happened multiple times, always immediately after the display is powered off via DPMS idle timeout (KDE Plasma powerdevil, "Turn off display" after 10 min). Two captured incidents below with identical stacks.

    Notes on the claimed fix: NVIDIA release notes mention a DIFR-related fix landing in 595.99.02 / 615.71.09+, but this still reproduces reliably on 615.78.08. The patch in PR #1286 (bounded GPFIFO wait + DIFR channel reset) reportedly applies cleanly to 615.x sources — I am willing to test a patched nvidia-open-dkms build if that would help confirm the fix.

    Hardware / software

    • ASUS ROG Strix G16 G614JIR
    • GPU: NVIDIA AD106M GeForce RTX 4070 Max-Q [10de:2860] (driver 615.78.08, nvidia-open)
    • iGPU: Intel Raptor Lake-S UHD [8086:a788] (i915)
    • Kernel: 7.2.14/7.2.15-arch1-1 (reproduced on both)
    • KWin 6.8.2, Plasma 6.8.2, Wayland, SDDM, nvidia-drm.modeset=1

    Full hung-task logs (two incidents)

    NVIDIA DIFR/NVKMS hang report
    Generated: 2026-11-13T01:48:57+05:30
    
    == System ==
    Linux gahara 7.2.15-arch1-1 #1 SMP PREEMPT_DYNAMIC Tue, 03 Nov 2026 12:37:21 +0000 x86_64 GNU/Linux
    GPU 0: NVIDIA GeForce RTX 4070 Laptop GPU (UUID: GPU-bdec18d0-deb8-b529-1a7a-93994a92b6f0)
    NVIDIA GeForce RTX 4070 Laptop GPU, 615.78.08
    linux 7.2.15.arch1-1
    nvidia-open 615.78.08-6
    nvidia-utils 615.78.08-2
    kwin 6.8.2-2
    plasma-workspace 6.8.2-1
    00:02.0 VGA compatible controller [0300]: Intel Corporation Raptor Lake-S UHD Graphics [8086:a788] (rev 04)
    00:1c.0 PCI bridge [0604]: Intel Corporation 700 Series Chipset Family PCIe Root Port #6 [8086:7a3d] (rev 11)
    01:00.0 VGA compatible controller [0300]: NVIDIA Corporation AD106M [GeForce RTX 4070 Max-Q / Mobile] [10de:2860] (rev a1)
    
    == Boot list (recent) ==
     -5 a5f2add5a1fd4e6caaa39c7bcf555ff0 Tue 2026-10-20 19:42:40 IST Thu 2026-10-22 18:45:14 IST
     -4 6e83e9928f5b4454afaf2b270eb9b1a7 Thu 2026-10-22 18:45:30 IST Sun 2026-11-08 08:22:23 IST
     -3 7858838f972546c9ad2c48be2f8705cb Sun 2026-11-08 08:22:49 IST Wed 2026-11-11 20:57:09 IST
     -2 56f777acb47246a79dc51096831b25b6 Wed 2026-11-11 20:58:03 IST Thu 2026-11-12 02:32:35 IST
     -1 aaa799ccd2d7453194606807021b420b Thu 2026-11-12 02:33:41 IST Fri 2026-11-13 01:44:20 IST
      0 5a672634741444d2915acc4ae8ef9b85 Fri 2026-11-13 01:44:59 IST Fri 2026-11-13 01:48:56 IST
    
    == 2026-11-11 incident: hung task summary ==
    2026-11-11T20:43:26+05:30 gahara kernel: INFO: task kwin_wayland:1272 blocked for more than 122 seconds.
    2026-11-11T20:43:26+05:30 gahara kernel:  nvkms_ioctl_from_kapi_try_pmlock+0x4a/0xa0 [nvidia_modeset 82358cd0dbde79b98871e44a89158391e6ea8583]
    2026-11-11T20:43:26+05:30 gahara kernel: INFO: task kwin_wayland:1272 blocked on a semaphore likely last held by task nvidia-modeset/:473
    2026-11-11T20:43:26+05:30 gahara kernel:  ? nvWriteGpEntry+0xc6/0x3f0 [nvidia_modeset 82358cd0dbde79b98871e44a89158391e6ea8583]
    2026-11-11T20:43:26+05:30 gahara kernel:  ? nvPushKickoff+0x2c/0x50 [nvidia_modeset 82358cd0dbde79b98871e44a89158391e6ea8583]
    2026-11-11T20:43:26+05:30 gahara kernel:  ? PrefetchHelperSurfaceEvo+0x4df/0x700 [nvidia_modeset 82358cd0dbde79b98871e44a89158391e6ea8583]
    2026-11-11T20:43:26+05:30 gahara kernel:  ? nvDIFRPrefetchSurfaces+0xd6/0x240 [nvidia_modeset 82358cd0dbde79b98871e44a89158391e6ea8583]
    2026-11-11T20:43:26+05:30 gahara kernel:  ? DifrPrefetchEventDeferredWork+0x16/0x30 [nvidia_modeset 82358cd0dbde79b98871e44a89158391e6ea8583]
    2026-11-11T20:45:29+05:30 gahara kernel: INFO: task kwin_wayland:1272 blocked for more than 245 seconds.
    2026-11-11T20:45:29+05:30 gahara kernel:  nvkms_ioctl_from_kapi_try_pmlock+0x4a/0xa0 [nvidia_modeset 82358cd0dbde79b98871e44a89158391e6ea8583]
    2026-11-11T20:45:29+05:30 gahara kernel: INFO: task kwin_wayland:1272 blocked on a semaphore likely last held by task nvidia-modeset/:473
    2026-11-11T20:45:29+05:30 gahara kernel:  ? nvWriteGpEntry+0x10c/0x3f0 [nvidia_modeset 82358cd0dbde79b98871e44a89158391e6ea8583]
    2026-11-11T20:45:29+05:30 gahara kernel:  ? nvPushKickoff+0x2c/0x50 [nvidia_modeset 82358cd0dbde79b98871e44a89158391e6ea8583]
    2026-11-11T20:45:29+05:30 gahara kernel:  ? PrefetchHelperSurfaceEvo+0x4df/0x700 [nvidia_modeset 82358cd0dbde79b98871e44a89158391e6ea8583]
    2026-11-11T20:45:29+05:30 gahara kernel:  ? nvDIFRPrefetchSurfaces+0xd6/0x240 [nvidia_modeset 82358cd0dbde79b98871e44a89158391e6ea8583]
    2026-11-11T20:45:29+05:30 gahara kernel:  ? DifrPrefetchEventDeferredWork+0x16/0x30 [nvidia_modeset 82358cd0dbde79b98871e44a89158391e6ea8583]
    2026-11-11T20:47:32+05:30 gahara kernel: INFO: task kwin_wayland:1272 blocked for more than 368 seconds.
    2026-11-11T20:47:32+05:30 gahara kernel:  nvkms_ioctl_from_kapi_try_pmlock+0x4a/0xa0 [nvidia_modeset 82358cd0dbde79b98871e44a89158391e6ea8583]
    2026-11-11T20:47:32+05:30 gahara kernel: INFO: task kwin_wayland:1272 blocked on a semaphore likely last held by task nvidia-modeset/:473
    2026-11-11T20:47:32+05:30 gahara kernel:  ? nvWriteGpEntry+0x10e/0x3f0 [nvidia_modeset 82358cd0dbde79b98871e44a89158391e6ea8583]
    2026-11-11T20:47:32+05:30 gahara kernel:  ? nvPushKickoff+0x2c/0x50 [nvidia_modeset 82358cd0dbde79b98871e44a89158391e6ea8583]
    2026-11-11T20:47:32+05:30 gahara kernel:  ? PrefetchHelperSurfaceEvo+0x4df/0x700 [nvidia_modeset 82358cd0dbde79b98871e44a89158391e6ea8583]
    2026-11-11T20:47:32+05:30 gahara kernel:  ? nvDIFRPrefetchSurfaces+0xd6/0x240 [nvidia_modeset 82358cd0dbde79b98871e44a89158391e6ea8583]
    2026-11-11T20:47:32+05:30 gahara kernel:  ? DifrPrefetchEventDeferredWork+0x16/0x30 [nvidia_modeset 82358cd0dbde79b98871e44a89158391e6ea8583]
    2026-11-11T20:49:35+05:30 gahara kernel: INFO: task kwin_wayland:1272 blocked for more than 491 seconds.
    2026-11-11T20:49:35+05:30 gahara kernel:  nvkms_ioctl_from_kapi_try_pmlock+0x4a/0xa0 [nvidia_modeset 82358cd0dbde79b98871e44a89158391e6ea8583]
    2026-11-11T20:49:35+05:30 gahara kernel: INFO: task kwin_wayland:1272 blocked on a semaphore likely last held by task nvidia-modeset/:473
    2026-11-11T20:49:35+05:30 gahara kernel:  ? nvWriteGpEntry+0x112/0x3f0 [nvidia_modeset 82358cd0dbde79b98871e44a89158391e6ea8583]
    2026-11-11T20:49:35+05:30 gahara kernel:  ? nvPushKickoff+0x2c/0x50 [nvidia_modeset 82358cd0dbde79b98871e44a89158391e6ea8583]
    2026-11-11T20:49:35+05:30 gahara kernel:  ? PrefetchHelperSurfaceEvo+0x4df/0x700 [nvidia_modeset 82358cd0dbde79b98871e44a89158391e6ea8583]
    2026-11-11T20:49:35+05:30 gahara kernel:  ? nvDIFRPrefetchSurfaces+0xd6/0x240 [nvidia_modeset 82358cd0dbde79b98871e44a89158391e6ea8583]
    2026-11-11T20:49:35+05:30 gahara kernel:  ? DifrPrefetchEventDeferredWork+0x16/0x30 [nvidia_modeset 82358cd0dbde79b98871e44a89158391e6ea8583]
    2026-11-11T20:51:38+05:30 gahara kernel: INFO: task kwin_wayland:1272 blocked for more than 614 seconds.
    2026-11-11T20:51:38+05:30 gahara kernel:  nvkms_ioctl_from_kapi_try_pmlock+0x4a/0xa0 [nvidia_modeset 82358cd0dbde79b98871e44a89158391e6ea8583]
    2026-11-11T20:51:38+05:30 gahara kernel: INFO: task kwin_wayland:1272 blocked on a semaphore likely last held by task nvidia-modeset/:473
    2026-11-11T20:51:38+05:30 gahara kernel:  ? nvWriteGpEntry+0x112/0x3f0 [nvidia_modeset 82358cd0dbde79b98871e44a89158391e6ea8583]
    2026-11-11T20:51:38+05:30 gahara kernel:  ? nvPushKickoff+0x2c/0x50 [nvidia_modeset 82358cd0dbde79b98871e44a89158391e6ea8583]
    2026-11-11T20:51:38+05:30 gahara kernel:  ? PrefetchHelperSurfaceEvo+0x4df/0x700 [nvidia_modeset 82358cd0dbde79b98871e44a89158391e6ea8583]
    2026-11-11T20:51:38+05:30 gahara kernel:  ? nvDIFRPrefetchSurfaces+0xd6/0x240 [nvidia_modeset 82358cd0dbde79b98871e44a89158391e6ea8583]
    2026-11-11T20:51:38+05:30 gahara kernel:  ? DifrPrefetchEventDeferredWork+0x16/0x30 [nvidia_modeset 82358cd0dbde79b98871e44a89158391e6ea8583]
    2026-11-11T20:53:40+05:30 gahara kernel: INFO: task kwin_wayland:1272 blocked for more than 737 seconds.
    2026-11-11T20:53:40+05:30 gahara kernel:  nvkms_ioctl_from_kapi_try_pmlock+0x4a/0xa0 [nvidia_modeset 82358cd0dbde79b98871e44a89158391e6ea8583]
    2026-11-11T20:53:40+05:30 gahara kernel: INFO: task kwin_wayland:1272 blocked on a semaphore likely last held by task nvidia-modeset/:473
    2026-11-11T20:53:40+05:30 gahara kernel:  ? nvWriteGpEntry+0x109/0x3f0 [nvidia_modeset 82358cd0dbde79b98871e44a89158391e6ea8583]
    2026-11-11T20:53:40+05:30 gahara kernel:  ? nvPushKickoff+0x2c/0x50 [nvidia_modeset 82358cd0dbde79b98871e44a89158391e6ea8583]
    2026-11-11T20:53:40+05:30 gahara kernel:  ? PrefetchHelperSurfaceEvo+0x4df/0x700 [nvidia_modeset 82358cd0dbde79b98871e44a89158391e6ea8583]
    2026-11-11T20:53:40+05:30 gahara kernel:  ? nvDIFRPrefetchSurfaces+0xd6/0x240 [nvidia_modeset 82358cd0dbde79b98871e44a89158391e6ea8583]
    2026-11-11T20:53:40+05:30 gahara kernel:  ? DifrPrefetchEventDeferredWork+0x16/0x30 [nvidia_modeset 82358cd0dbde79b98871e44a89158391e6ea8583]
    2026-11-11T20:55:43+05:30 gahara kernel: INFO: task kwin_wayland:1272 blocked for more than 860 seconds.
    2026-11-11T20:55:43+05:30 gahara kernel:  nvkms_ioctl_from_kapi_try_pmlock+0x4a/0xa0 [nvidia_modeset 82358cd0dbde79b98871e44a89158391e6ea8583]
    2026-11-11T20:55:43+05:30 gahara kernel: INFO: task kwin_wayland:1272 blocked on a semaphore likely last held by task nvidia-modeset/:473
    2026-11-11T20:55:43+05:30 gahara kernel:  ? nvWriteGpEntry+0x112/0x3f0 [nvidia_modeset 82358cd0dbde79b98871e44a89158391e6ea8583]
    2026-11-11T20:55:43+05:30 gahara kernel:  ? nvPushKickoff+0x2c/0x50 [nvidia_modeset 82358cd0dbde79b98871e44a89158391e6ea8583]
    2026-11-11T20:55:43+05:30 gahara kernel:  ? PrefetchHelperSurfaceEvo+0x4df/0x700 [nvidia_modeset 82358cd0dbde79b98871e44a89158391e6ea8583]
    2026-11-11T20:55:43+05:30 gahara kernel:  ? nvDIFRPrefetchSurfaces+0xd6/0x240 [nvidia_modeset 82358cd0dbde79b98871e44a89158391e6ea8583]
    2026-11-11T20:55:43+05:30 gahara kernel:  ? DifrPrefetchEventDeferredWork+0x16/0x30 [nvidia_modeset 82358cd0dbde79b98871e44a89158391e6ea8583]
    
    == 2026-11-13 incident: full first hung task report ==
    2026-11-13T01:07:23+05:30 gahara kernel: IPv6: MLD: clamping QRV from 1 to 2!
    2026-11-13T01:07:25+05:30 gahara kernel: INFO: task kwin_wayland:3262 blocked for more than 122 seconds.
    2026-11-13T01:07:25+05:30 gahara kernel:       Tainted: G        W  OE       7.2.14-arch1-1 #1
    2026-11-13T01:07:25+05:30 gahara kernel: "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
    2026-11-13T01:07:25+05:30 gahara kernel: task:kwin_wayland    state:D stack:0     pid:3262  tgid:3262  ppid:3258   task_flags:0x400100 flags:0x00080000
    2026-11-13T01:07:25+05:30 gahara kernel: Call Trace:
    2026-11-13T01:07:25+05:30 gahara kernel:  <TASK>
    2026-11-13T01:07:25+05:30 gahara kernel:  __schedule+0x420/0x1770
    2026-11-13T01:07:25+05:30 gahara kernel:  schedule+0x27/0xa0
    2026-11-13T01:07:25+05:30 gahara kernel:  schedule_timeout+0xdc/0x120
    2026-11-13T01:07:25+05:30 gahara kernel:  __down_common+0x101/0x330
    2026-11-13T01:07:25+05:30 gahara kernel:  down+0x53/0x70
    2026-11-13T01:07:25+05:30 gahara kernel:  nvkms_ioctl_from_kapi_try_pmlock+0x4a/0xa0 [nvidia_modeset 82358cd0dbde79b98871e44a89158391e6ea8583]
    2026-11-13T01:07:25+05:30 gahara kernel:  ApplyModeSetConfig+0x67b/0xe30 [nvidia_modeset 82358cd0dbde79b98871e44a89158391e6ea8583]
    2026-11-13T01:07:25+05:30 gahara kernel:  nv_drm_atomic_apply_modeset_config+0x82d/0x900 [nvidia_drm 16a97a512211b87033614b2047f0c73d84eda3a6]
    2026-11-13T01:07:25+05:30 gahara kernel:  ? nv_drm_plane_atomic_check+0x101/0x460 [nvidia_drm 16a97a512211b87033614b2047f0c73d84eda3a6]
    2026-11-13T01:07:25+05:30 gahara kernel:  drm_atomic_check_only+0x5d4/0xa00
    2026-11-13T01:07:25+05:30 gahara kernel:  drm_mode_atomic_ioctl+0x976/0xf10
    2026-11-13T01:07:25+05:30 gahara kernel:  ? __pfx_drm_mode_atomic_ioctl+0x10/0x10
    2026-11-13T01:07:25+05:30 gahara kernel:  drm_ioctl_kernel+0xae/0x100
    2026-11-13T01:07:25+05:30 gahara kernel:  drm_ioctl+0x2d8/0x570
    2026-11-13T01:07:25+05:30 gahara kernel:  ? __pfx_drm_mode_atomic_ioctl+0x10/0x10
    2026-11-13T01:07:25+05:30 gahara kernel:  __x64_sys_ioctl+0xb9/0x100
    2026-11-13T01:07:25+05:30 gahara kernel:  do_syscall_64+0xaa/0x660
    2026-11-13T01:07:25+05:30 gahara kernel:  ? do_syscall_64+0xaa/0x660
    2026-11-13T01:07:25+05:30 gahara kernel:  ? do_syscall_64+0xaa/0x660
    2026-11-13T01:07:25+05:30 gahara kernel:  ? dma_buf_begin_cpu_access+0x4f/0x70
    2026-11-13T01:07:25+05:30 gahara kernel:  ? do_syscall_64+0xaa/0x660
    2026-11-13T01:07:25+05:30 gahara kernel:  ? __x64_sys_ioctl+0xd4/0x100
    2026-11-13T01:07:25+05:30 gahara kernel:  ? do_syscall_64+0xaa/0x660
    2026-11-13T01:07:25+05:30 gahara kernel:  ? do_syscall_64+0xaa/0x660
    2026-11-13T01:07:25+05:30 gahara kernel:  ? do_syscall_64+0x5f/0x660
    2026-11-13T01:07:25+05:30 gahara kernel:  entry_SYSCALL_64_after_hwframe+0x76/0x7e
    2026-11-13T01:07:25+05:30 gahara kernel: RIP: 0033:0x7f21add1bd9d
    2026-11-13T01:07:25+05:30 gahara kernel: RSP: 002b:00007ffe4f91ef90 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
    2026-11-13T01:07:25+05:30 gahara kernel: RAX: ffffffffffffffda RBX: 00005618b0b2f5c0 RCX: 00007f21add1bd9d
    2026-11-13T01:07:25+05:30 gahara kernel: RDX: 00007ffe4f91f090 RSI: 00000000c03864bc RDI: 0000000000000059
    2026-11-13T01:07:25+05:30 gahara kernel: RBP: 00007ffe4f91efe0 R08: 00005618af1e89d0 R09: 00007ffe4f91f600
    2026-11-13T01:07:25+05:30 gahara kernel: R10: 00005618af1e8950 R11: 0000000000000246 R12: 00007ffe4f91f090
    2026-11-13T01:07:25+05:30 gahara kernel: R13: 00000000c03864bc R14: 0000000000000059 R15: 00005618b0b2f4c0
    2026-11-13T01:07:25+05:30 gahara kernel:  </TASK>
    2026-11-13T01:07:25+05:30 gahara kernel: INFO: task kwin_wayland:3262 blocked on a semaphore likely last held by task nvidia-modeset/:386
    2026-11-13T01:07:25+05:30 gahara kernel: task:nvidia-modeset/ state:R  running task     stack:0     pid:386   tgid:386   ppid:2      task_flags:0x208040 flags:0x00080000
    2026-11-13T01:07:25+05:30 gahara kernel: Call Trace:
    2026-11-13T01:07:25+05:30 gahara kernel:  <TASK>
    2026-11-13T01:07:25+05:30 gahara kernel:  ? __schedule+0x428/0x1770
    2026-11-13T01:07:25+05:30 gahara kernel:  ? preempt_schedule_irq+0x38/0x60
    2026-11-13T01:07:25+05:30 gahara kernel:  ? irqentry_exit+0x14a/0x7e0
    2026-11-13T01:07:25+05:30 gahara kernel:  ? __hrtimer_rearm_deferred+0x62/0x140
    2026-11-13T01:07:25+05:30 gahara kernel:  ? asm_sysvec_apic_timer_interrupt+0x1a/0x20
    2026-11-13T01:07:25+05:30 gahara kernel:  ? nvWriteGpEntry+0x100/0x3f0 [nvidia_modeset 82358cd0dbde79b98871e44a89158391e6ea8583]
    2026-11-13T01:07:25+05:30 gahara kernel:  ? __schedule+0x428/0x1770
    2026-11-13T01:07:25+05:30 gahara kernel:  ? nvPushSetObject+0xb1/0x170 [nvidia_modeset 82358cd0dbde79b98871e44a89158391e6ea8583]
    2026-11-13T01:07:25+05:30 gahara kernel:  ? nvPushKickoff+0x2c/0x50 [nvidia_modeset 82358cd0dbde79b98871e44a89158391e6ea8583]
    2026-11-13T01:07:25+05:30 gahara kernel:  ? PrefetchHelperSurfaceEvo+0x4df/0x700 [nvidia_modeset 82358cd0dbde79b98871e44a89158391e6ea8583]
    2026-11-13T01:07:25+05:30 gahara kernel:  ? nvDIFRPrefetchSurfaces+0xd6/0x240 [nvidia_modeset 82358cd0dbde79b98871e44a89158391e6ea8583]
    2026-11-13T01:07:25+05:30 gahara kernel:  ? __pfx__main_loop+0x10/0x10 [nvidia_modeset 82358cd0dbde79b98871e44a89158391e6ea8583]
    2026-11-13T01:07:25+05:30 gahara kernel:  ? DifrPrefetchEventDeferredWork+0x16/0x30 [nvidia_modeset 82358cd0dbde79b98871e44a89158391e6ea8583]
    2026-11-13T01:07:25+05:30 gahara kernel:  ? nvkms_kthread_q_callback+0xe6/0x170 [nvidia_modeset 82358cd0dbde79b98871e44a89158391e6ea8583]
    2026-11-13T01:07:25+05:30 gahara kernel:  ? _main_loop+0x10e/0x160 [nvidia_modeset 82358cd0dbde79b98871e44a89158391e6ea8583]
    2026-11-13T01:07:25+05:30 gahara kernel:  ? kthread+0xe4/0x120
    2026-11-13T01:07:25+05:30 gahara kernel:  ? __pfx_kthread+0x10/0x10
    2026-11-13T01:07:25+05:30 gahara kernel:  ? ret_from_fork+0x2a7/0x330
    2026-11-13T01:07:25+05:30 gahara kernel:  ? __pfx_kthread+0x10/0x10
    2026-11-13T01:07:25+05:30 gahara kernel:  ? ret_from_fork_asm+0x1a/0x30
    2026-11-13T01:07:25+05:30 gahara kernel:  </TASK>
    2026-11-13T01:07:29+05:30 gahara kernel: IPv6: MLD: clamping QRV from 1 to 2!
    
    == 2026-11-13 incident: repeated hung task summary ==
    2026-11-13T01:07:25+05:30 gahara kernel: INFO: task kwin_wayland:3262 blocked for more than 122 seconds.
    2026-11-13T01:07:25+05:30 gahara kernel: INFO: task kwin_wayland:3262 blocked on a semaphore likely last held by task nvidia-modeset/:386
    2026-11-13T01:09:28+05:30 gahara kernel: INFO: task kwin_wayland:3262 blocked for more than 245 seconds.
    2026-11-13T01:09:28+05:30 gahara kernel: INFO: task kwin_wayland:3262 blocked on a semaphore likely last held by task nvidia-modeset/:386
    2026-11-13T01:11:31+05:30 gahara kernel: INFO: task kwin_wayland:3262 blocked for more than 368 seconds.
    2026-11-13T01:11:31+05:30 gahara kernel: INFO: task kwin_wayland:3262 blocked on a semaphore likely last held by task nvidia-modeset/:386
    2026-11-13T01:13:34+05:30 gahara kernel: INFO: task kwin_wayland:3262 blocked for more than 491 seconds.
    2026-11-13T01:13:34+05:30 gahara kernel: INFO: task kwin_wayland:3262 blocked on a semaphore likely last held by task nvidia-modeset/:386
    2026-11-13T01:15:37+05:30 gahara kernel: INFO: task kwin_wayland:3262 blocked for more than 614 seconds.
    2026-11-13T01:15:37+05:30 gahara kernel: INFO: task kwin_wayland:3262 blocked on a semaphore likely last held by task nvidia-modeset/:386
    2026-11-13T01:17:40+05:30 gahara kernel: INFO: task kwin_wayland:3262 blocked for more than 737 seconds.
    2026-11-13T01:17:40+05:30 gahara kernel: INFO: task kwin_wayland:3262 blocked on a semaphore likely last held by task nvidia-modeset/:386
    2026-11-13T01:19:43+05:30 gahara kernel: INFO: task kwin_wayland:3262 blocked for more than 860 seconds.
    2026-11-13T01:19:43+05:30 gahara kernel: INFO: task kwin_wayland:3262 blocked on a semaphore likely last held by task nvidia-modeset/:386
    2026-11-13T01:21:45+05:30 gahara kernel: INFO: task kwin_wayland:3262 blocked for more than 983 seconds.
    2026-11-13T01:21:45+05:30 gahara kernel: INFO: task kwin_wayland:3262 blocked on a semaphore likely last held by task nvidia-modeset/:386
    2026-11-13T01:23:48+05:30 gahara kernel: INFO: task kwin_wayland:3262 blocked for more than 1105 seconds.
    2026-11-13T01:23:48+05:30 gahara kernel: INFO: task kwin_wayland:3262 blocked on a semaphore likely last held by task nvidia-modeset/:386
    2026-11-13T01:25:51+05:30 gahara kernel: INFO: task kwin_wayland:3262 blocked for more than 1228 seconds.
    2026-11-13T01:25:51+05:30 gahara kernel: INFO: task kwin_wayland:3262 blocked on a semaphore likely last held by task nvidia-modeset/:386
    2026-11-13T01:25:51+05:30 gahara kernel: Future hung task reports are suppressed, see sysctl kernel.hung_task_warnings
    
    == Current boot unclean shutdown markers ==
    2026-11-13T01:45:04+05:30 gahara systemd-journald[544]: File /var/log/journal/148928050b514f3ebe27486ebdba1015/system.journal corrupted or uncleanly shut down, renaming and replacing: Device or resource busy
    2026-11-13T01:45:05+05:30 gahara kernel: FAT-fs (nvme1n1p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
    2026-11-13T01:45:06+05:30 gahara systemd-journald[544]: File /var/log/journal/148928050b514f3ebe27486ebdba1015/user-1000.journal corrupted or uncleanly shut down, renaming and replacing: Device or resource busy
    
  21. aritger commented on Nov 13, 2026

    @aritger
    Collaborator

    @levihackerman-102 , @jjsch-dev : I think 0001-nvkms-Move-nvHsAllocDevice-before-nvAllocLutSurfaces.patch earlier in this thread is the correct fix. It will be included in a future driver release. I apologize for the inconvenience.

  22. gradia64 commented on Nov 13, 2026

    @gradia64

    Adding a second data point from an RTX 5060 Ti (GB206), with a multi-month history of the same signature on the same machine.

    Hardware and setup

    • RTX 5060 Ti (GB206, PCI 2b:00.0), two monitors on DisplayPort
    • One machine, two installs: Debian sid (kernel 7.3.4+deb14-amd64, nvidia-open 615.71.10) and Arch (kernel 7.3.4-arch1, nvidia-open-dkms 620.70.06), both KDE Plasma Wayland
    • The system never suspends (0 suspend cycles in months), so everything below is the non-suspend path

    Journal history of Flip event timeout on this machine

    Date GPU Driver Outcome
    2025-04-11 RTX 3050 570.133.07 5 x Flip event timeout
    2025-05-17 RTX 3050 570.144 1 x Flip event timeout, then nvidia-modeset: ERROR: GPU:0: Error while waiting for GPU progress: 0x0000927c:1 2:0:4048:4040
    2026-10-10 to 2026-11-13 RTX 5060 Ti 615.78.08 (10 boots) 0
    2026-11-13 20:02 RTX 5060 Ti 620.70.06 6 x Flip event timeout, terminal lockup about 80 s after compositor start

    The 620.70.06 case in detail (Arch, the boot lasted 2 min 24 s):

    20:02:31 kernel: [drm:nv_drm_atomic_commit [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00002b00] Flip event timeout on head 0
    20:02:34 kernel: [drm:nv_drm_atomic_commit [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00002b00] Flip event timeout on head 1
    20:02:37 / 20:02:40 / 20:02:43 / 20:02:46   same errors, alternating head 0 and head 1
    20:03:38 kwin_wayland: Pageflip timed out! This is a bug in the nvidia-drm kernel driver
    

    No Xid, no hung_task, no "GPU has fallen off the bus". The KMS presentation path never completed a flip again on either head. Symptoms: display frozen, mouse still moving but jerky, TTYs unreachable, SSH alive.

    On Debian with 615.71.10 the signature is milder and always transient:

    • 21 x kwin_wayland_drm: The main thread was hanging temporarily! since 2026-11-10 (the day the RTX 5060 Ti was installed; zero occurrences before that date in 200 days of journal)
    • no hung_task, no nvDIFR signature, no Xid
    • one silent stall with no journal trace at all, caught by a D-Bus responsiveness probe: 16.8 s of compositor unresponsiveness

    Relevance to this issue

    The analysis above says the Oct 30 patch (0001-nvkms-Move-nvHsAllocDevice-before-nvAllocLutSurfaces.patch) is not in 620.70.06. On this machine, 615.78.08 was clean for a month (10 boots), while 620.70.06 deadlocked terminally on its very first boot, so 620.70.06 is a regression here rather than an improvement. The dual-head signature on both DisplayPort outputs seems worth mentioning too.

    If a build with the patch becomes available, this machine is ready to test it. I am already tracking this issue and can provide dmesg, nvidia-bug-report output, or specific journal extracts on request.

  23. gradia64 commented on Nov 14, 2026

    @gradia64

    Clarification and partial retraction of my earlier comment

    Two points.

    1. The Arch A/B stands, and is stronger than I first stated. 620.70.06 has produced the same terminal display lockup on two different GPUs and two different installs of this machine:

    • RTX 3050, Debian, driver 620.70.06: terminal display lockup on 2026-11-09. Recovered by downgrading to the 615 series the same day. No kernel or journal extract is available for that incident, since the journal that recorded it was trimmed afterwards, so this one is reported from the machine owner rather than from logs.
    • RTX 5060 Ti, Arch, driver 620.70.06: documented in my previous comment (6 x Flip event timeout on head 0/1 alternating both DisplayPort heads, Pageflip timed out! This is a bug in the nvidia-drm kernel driver, lockup about 80 s after compositor start, boot ended after 2 min 24 s).

    The same RTX 5060 Ti ran clean on 615.78.08 for 10 boots over several days with zero flip timeouts, and on 615.71.10 on Debian there are transient compositor stalls of mixed origin. So 620.70.06 is the common factor across an Ampere and a Blackwell card, on two different operating systems.

    2. Partial retraction. My earlier comment framed the Debian transient events (21 x kwin_wayland_drm: The main thread was hanging temporarily!) as a milder form of this issue's deadlock. That was overstated:

    • Debian has never shown this issue's terminal KMS signature.
    • At least one of those transient events is now classified as an I/O event: during a 14 GB model download, a root-level dump taken during the stall shows kswapd0 and ext4 flush workers stuck in wbt_wait (block layer writeback throttle) with jbd2 backed up, while the NVIDIA driver was clean (no nvidia thread in R or D state, compositor threads all in S).
    • The onsets of those transient events cannot be dated reliably: the journal that recorded them was trimmed afterwards, so the statement "first occurrence on the day the GPU was installed" is not supportable.

    What remains solid in my report is the Arch A/B above and the 2025 history on the same machine (RTX 3050, driver 570.x: Flip event timeout plus nvidia-modeset: ERROR: GPU:0: Error while waiting for GPU progress: 0x0000927c:1 2:0:4048:4040), both taken from journals that existed before the trim.

    I can still provide the two root-level dumps and the full Arch journal extracts on request.

  24. eloff commented on Nov 15, 2026

    @eloff

    The patch here fixed the freezes I was having. Please get it into the driver so I can stop maintaining my own.

  25. euzun-mobilai commented on Nov 19, 2026

    @euzun-mobilai

    Another data point for the non-suspend path, on an Ada workstation laptop with the stock Ubuntu 595.99.02 package.

    System

    Machine Dell Precision 7780, BIOS 1.21.0
    dGPU RTX 5000 Ada Generation Laptop GPU [10de:2730]
    Topology Hybrid: Intel Raptor Lake-S UHD (i915) drives eDP; one external 1920x1080 monitor on HDMI, wired to the dGPU
    OS / kernel Ubuntu 26.04.1, 7.0.0-43-generic
    Driver nvidia-driver-595-open 595.99.02-0ubuntu0.26.04.1 (prebuilt linux-modules-nvidia-595-open, Secure Boot on)
    Session GNOME Shell 50.1 / mutter 50.1, Wayland, PRIME on-demand
    Options nvidia-drm modeset=1, NVreg_DynamicPowerManagement=0x02, NVreg_PreserveVideoMemoryAllocations=1

    What happened

    Twice in eight days (2026-11-11 and 2026-11-16), both times on idle display blank. The machine never suspends (sleep-inactive-ac-type='nothing'); there was no suspend cycle in either boot. In both cases the first sign in the journal is the blank request timing out, a little under three minutes before the first hung-task report:

    gsd-power: Error setting property 'PowerSaveMode' on interface org.gnome.Mutter.DisplayConfig: Timeout was reached
    

    followed by the same signature as in this issue:

    INFO: task KMS thread:3412 blocked for more than 122 seconds.
     nvkms_ioctl_from_kapi_try_pmlock+0x55/0xc0 [nvidia_modeset]
     ApplyModeSetConfig+0x357/0xba0 [nvidia_modeset]
     ? nv_drm_atomic_apply_modeset_config+0x82b/0x9e0 [nvidia_drm]
    INFO: task KMS thread:3412 blocked on a semaphore likely last held by task nvidia-modeset/:1649
    RIP: 0010:nvWriteGpEntry+0xf9/0x370 [nvidia_modeset]
     ? nvPushKickoff+0x28/0x50 [nvidia_modeset]
     ? PrefetchHelperSurfaceEvo+0x45c/0x650 [nvidia_modeset]
     ? nvDIFRPrefetchSurfaces+0x135/0x1f0 [nvidia_modeset]
     ? DifrPrefetchEventDeferredWork+0x16/0x30 [nvidia_modeset]
     ? nvkms_kthread_q_callback+0xe9/0x190 [nvidia_modeset]
    

    The second time it went unnoticed for three days because the machine was used remotely. After that time nvidia-modeset/kthread_q is still in state R at 99% of one core and mutter's KMS thread is still in state D. A side effect that may help others recognise it: fwupd is activated every 15 minutes and each new process ends up in uninterruptible sleep, so the load average climbs by one each time (116 after three days) with no real load.

    So 595.99.02, which has the DIFR teardown around suspend, still hangs here on plain display blank, matching the reports above.

    @aritger, will 0001-nvkms-Move-nvHsAllocDevice-before-nvAllocLutSurfaces.patch also go into a 595 release? Ubuntu 26.04 ships 595 by default, so that branch is what most of these laptops will stay on. Full kernel logs of both boots are available if they are of any use.

  26. contourkde commented on Nov 22, 2026

    @contourkde

    Another data point: RTX 5060 Laptop GPU (10de:2d19, Blackwell mobile), AMD hybrid, Ubuntu nvidia-driver-595-open 595.99.02, no suspend, triggered by monitor wake / hot-plug

    Machine HP OMEN 16-ap0xxx (board 8D26, system BIOS F.06)
    dGPU NVIDIA GeForce RTX 5060 Laptop GPU, GB206M 10de:2d19, drives one external HDMI monitor (2560x1440)
    iGPU AMD Radeon 860M (amdgpu), drives the internal eDP panel (1920x1200) and one external DisplayPort monitor (2560x1440)
    CPU AMD Ryzen AI 7 350
    OS / desktop Ubuntu 26.04.1 LTS, GNOME Shell 50.1 / mutter 50.1, Wayland
    Driver nvidia-driver-595-open 595.99.02-0ubuntu0.26.04.1 (Ubuntu archive, DKMS build)
    Kernel 7.0.0-43-generic for the November events, 7.0.0-38-generic for the October one
    Module options nvidia-drm modeset=1, NVreg_DynamicPowerManagement=3, NVreg_PreserveVideoMemoryAllocations=1, NVreg_UseKernelSuspendNotifiers=0, NVreg_EnableS0ixPowerManagement=0, GSP firmware enabled
    Suspend none: zero PM: suspend entry lines in all three boots involved

    Symptom. The desktop stops responding and never recovers. The kernel stays up: virtual consoles work and nvidia-smi still answers. There is no Xid, no soft lockup and no RCU stall. Each time only a power cycle recovered the machine.

    Trigger. In both November cases GNOME had been idle for hours, and the freeze came within minutes of its first activity afterwards. Times are seconds from the first message listed for each date:

    Date Sequence in the journal
    2026-11-21 +0 s gnome-shell: Launching DING process; +7 s kernel: nvidia 0000:04:00.0: Enabling HDA controller; +8 s workqueue: nv_drm_handle_hotplug_event [nvidia_drm] hogged CPU for >13333us 4 times; +9 s gnome-shell: Created gbm renderer for '/dev/dri/card1' (card1 is the NVIDIA GPU). The last journal entry of this boot is 27 s later; the machine was powered off before the first hung-task report, so this occurrence is inferred from the lead-up
    2026-11-22 +0 s gnome-shell: Launching DING process; +173 s monitor reconfiguration in GNOME (mutter monitor assertions and xdg-desktop-portal-gnome: Monitor 'Built-in display' has no configuration which is-current!); +234 s Enabling HDA controller; +255 s Created gbm renderer for '/dev/dri/card1'; KMS thread blocked by +385 s at the latest (first hung-task report at +507 s)
    2026-10-20 +0 s kernel: nvidia 0000:04:00.0: Enabling HDA controller; +2 s gnome-shell: Launching DING process; KMS thread blocked by +276 s at the latest (first hung-task report at +398 s)

    In the idle period before the 2026-11-21 event gnome-shell also logged Cursor update failed: drmModeAtomicCommit: Invalid argument 207 times in about 90 minutes (otherwise only a few times per week since October).

    Trace, 2026-11-22 (trimmed; full report below). Waiter, on the ADDFB2 path (tgid is gnome-shell):

    INFO: task KMS thread:6138 blocked for more than 122 seconds.
          Tainted: G           OE       7.0.0-43-generic #43-Ubuntu
    task:KMS thread      state:D stack:0     pid:6138  tgid:6085  ppid:5507   task_flags:0x400040 flags:0x00080000
     down+0x5e/0x80
     nvkms_ioctl_from_kapi+0x59/0xf0 [nvidia_modeset]
     CreateSurface+0x17b/0x230 [nvidia_modeset]
     ? nv_drm_framebuffer_create+0x3cd/0x760 [nvidia_drm]
     ? drm_internal_framebuffer_create+0x100/0x210
     ? drm_mode_addfb2+0x51/0x120
     ? drm_mode_addfb2_ioctl+0xe/0x20
     ? nv_drm_ioctl+0x38/0x3f0 [nvidia_drm]
    

    Holder, in state R in all ten reports (122 s to 1228 s, one report every 123 s), with the instruction pointer at nvWriteGpEntry+0x5c, +0xac, +0xb5, +0xf9 and +0x100 across the reports:

    INFO: task KMS thread:6138 blocked on a semaphore likely last held by task nvidia-modeset/:427
    task:nvidia-modeset/ state:R  running task     stack:0     pid:427   tgid:427   ppid:2      task_flags:0x208040 flags:0x00080020
    RIP: 0010:nvWriteGpEntry+0xf9/0x370 [nvidia_modeset]
     ? nvPushKickoff+0x28/0x50 [nvidia_modeset]
     ? PrefetchHelperSurfaceEvo+0x45c/0x650 [nvidia_modeset]
     ? nvDIFRPrefetchSurfaces+0x135/0x1f0 [nvidia_modeset]
     ? DifrPrefetchEventDeferredWork+0x16/0x30 [nvidia_modeset]
     ? nvkms_kthread_q_callback+0xe9/0x190 [nvidia_modeset]
     ? _main_loop+0x99/0x160 [nvidia_modeset]
    

    On 2026-10-20 the same machine reached the lock through the atomic-commit path instead, with the same holder stack:

     down+0x5e/0x80
     nvkms_ioctl_from_kapi_try_pmlock+0x55/0xc0 [nvidia_modeset]
     ApplyModeSetConfig+0x59e/0xba0 [nvidia_modeset]
     ? nv_drm_atomic_apply_modeset_config+0x80b/0x9c0 [nvidia_drm]
     ? drm_mode_atomic_ioctl+0x57e/0x910
    INFO: task KMS thread:97916 blocked on a semaphore likely last held by task nvidia-modeset/:450
    task:nvidia-modeset/ state:R  running task     stack:0     pid:450   tgid:450   ppid:2      task_flags:0x208040 flags:0x00080020
    RIP: 0010:nvWriteGpEntry+0x5c/0x370 [nvidia_modeset]
     ? nvPushKickoff+0x28/0x50 [nvidia_modeset]
     ? PrefetchHelperSurfaceEvo+0x45c/0x650 [nvidia_modeset]
     ? nvDIFRPrefetchSurfaces+0x135/0x1f0 [nvidia_modeset]
     ? DifrPrefetchEventDeferredWork+0x16/0x30 [nvidia_modeset]
     ? nvkms_kthread_q_callback+0xe9/0x190 [nvidia_modeset]
     ? _main_loop+0x99/0x160 [nvidia_modeset]
    

    Testing the patch. Not possible on this install: nvidia-kernel-source-595-open ships nvidia-modeset as a prebuilt object (nvidia-modeset/nv-modeset-kernel.o_binary) and no nvkms sources, so 0001-nvkms-Move-nvHsAllocDevice-before-nvAllocLutSurfaces.patch cannot be applied to the packaged driver. I will test the first release that contains the fix on this machine and report back here.

    Full first hung-task report, 2026-11-22
    INFO: task KMS thread:6138 blocked for more than 122 seconds.
    fbcon: Taking over console
          Tainted: G           OE       7.0.0-43-generic #43-Ubuntu
    "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
    task:KMS thread      state:D stack:0     pid:6138  tgid:6085  ppid:5507   task_flags:0x400040 flags:0x00080000
    Call Trace:
     <TASK>
     __schedule+0x29e/0x640
     schedule+0x27/0xb0
     schedule_timeout+0xcf/0x110
     ___down_common+0x108/0x1e0
     ? __update_idle_core+0x56/0x1c0
     __down_common+0x5a/0x180
     ? update_curr+0x56/0x120
     __down+0x1d/0x30
     down+0x5e/0x80
     nvkms_ioctl_from_kapi+0x59/0xf0 [nvidia_modeset]
     CreateSurface+0x17b/0x230 [nvidia_modeset]
     ? nv_drm_framebuffer_create+0x3cd/0x760 [nvidia_drm]
     ? drm_internal_framebuffer_create+0x100/0x210
     ? drm_mode_addfb2+0x51/0x120
     ? __pfx_drm_mode_addfb2_ioctl+0x10/0x10
     ? drm_mode_addfb2_ioctl+0xe/0x20
     ? drm_ioctl_kernel+0xb5/0x110
     ? drm_ioctl+0x309/0x5e0
     ? __pfx_drm_mode_addfb2_ioctl+0x10/0x10
     ? nv_drm_ioctl+0x38/0x3f0 [nvidia_drm]
     ? __x64_sys_ioctl+0xa3/0x100
     ? x64_sys_call+0x103b/0x2390
     ? do_syscall_64+0x105/0x580
     ? __pfx_pollwake+0x10/0x10
     ? __pfx_pollwake+0x10/0x10
     ? __pfx_pollwake+0x10/0x10
     ? aa_file_perm+0x1ad/0x3b0
     ? eventfd_read+0xd9/0x220
     ? security_file_permission+0x77/0x170
     ? rw_verify_area+0x57/0x180
     ? vfs_read+0x270/0x3a0
     ? arch_exit_to_user_mode_prepare.isra.0+0xc3/0xe0
     ? ksys_read+0xd4/0xf0
     ? arch_exit_to_user_mode_prepare.isra.0+0xd/0xe0
     ? do_syscall_64+0x140/0x580
     ? arch_exit_to_user_mode_prepare.isra.0+0xd/0xe0
     ? do_syscall_64+0x140/0x580
     ? do_syscall_64+0x140/0x580
     ? sysvec_apic_timer_interrupt+0x54/0xd0
     ? entry_SYSCALL_64_after_hwframe+0x76/0x7e
     </TASK>
    INFO: task KMS thread:6138 blocked on a semaphore likely last held by task nvidia-modeset/:427
    task:nvidia-modeset/ state:R  running task     stack:0     pid:427   tgid:427   ppid:2      task_flags:0x208040 flags:0x00080020
    Call Trace:
     <TASK>
     __schedule+0x2a6/0x640
     preempt_schedule_irq+0x38/0x70
     raw_irqentry_exit_cond_resched+0x31/0x40
     irqentry_exit+0x2e/0x6f0
     sysvec_apic_timer_interrupt+0x54/0xd0
     asm_sysvec_apic_timer_interrupt+0x1b/0x20
    RIP: 0010:nvWriteGpEntry+0xf9/0x370 [nvidia_modeset]
    Code: 52 68 2e 2e 2e ff d2 80 0b 10 48 83 c4 28 44 89 f8 5b 5d 41 5c 41 5d 41 5e 41 5f c3 0f 1f 44 00 00 48 8b 83 10 01 00 00 8b 38 <c1> ef 12 01 ff 39 fd 74 a2 48 8b 7c 24 08 44 89 f2 43 8d 04 12 48
    RSP: 0018:ffffce4ec3763cf8 EFLAGS: 00000246
    RAX: ffff8b769cb4f000 RBX: ffff8b76960cb830 RCX: ffffce4ec54163e8
    RDX: ffff8b769cb64000 RSI: 00000000000003f4 RDI: 00000000000c0039
    RBP: 0000000000000006 R08: 0000000000000000 R09: 0000000000000001
    R10: 0000000000000004 R11: 0000000000000010 R12: ffffce4ec0ad80d8
    R13: 00000000000003f4 R14: 0000000000000384 R15: 0000000000000000
     ? nvPushKickoff+0x28/0x50 [nvidia_modeset]
     ? PrefetchHelperSurfaceEvo+0x45c/0x650 [nvidia_modeset]
     ? barn_replace_full_sheaf.part.0+0xb7/0x120
     ? nvDIFRPrefetchSurfaces+0x135/0x1f0 [nvidia_modeset]
     ? DifrPrefetchEventDeferredWork+0x16/0x30 [nvidia_modeset]
     ? nvkms_kthread_q_callback+0xe9/0x190 [nvidia_modeset]
     ? _main_loop+0x99/0x160 [nvidia_modeset]
     ? __pfx__main_loop+0x10/0x10 [nvidia_modeset]
     ? kthread+0xf7/0x130
     ? __pfx_kthread+0x10/0x10
     ? ret_from_fork+0x195/0x2a0
     ? __pfx_kthread+0x10/0x10
     ? __pfx_kthread+0x10/0x10
     ? ret_from_fork_asm+0x1a/0x30
     </TASK>
    
    Full first hung-task report, 2026-10-20
    INFO: task KMS thread:97916 blocked for more than 122 seconds.
          Tainted: G           OE       7.0.0-38-generic #38-Ubuntu
    "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
    task:KMS thread      state:D stack:0     pid:97916 tgid:97762 ppid:97207  task_flags:0x400040 flags:0x00080000
    Call Trace:
     <TASK>
     __schedule+0x2bb/0x650
     schedule+0x27/0xb0
     schedule_timeout+0xcf/0x110
     ___down_common+0x108/0x1e0
     __down_common+0x5a/0x180
     __down+0x1d/0x30
     down+0x5e/0x80
     nvkms_ioctl_from_kapi_try_pmlock+0x55/0xc0 [nvidia_modeset]
     ApplyModeSetConfig+0x59e/0xba0 [nvidia_modeset]
     ? nv_drm_atomic_apply_modeset_config+0x80b/0x9c0 [nvidia_drm]
     ? nv_drm_plane_atomic_check+0xed/0x680 [nvidia_drm]
     ? nv_drm_atomic_check+0x12d/0x150 [nvidia_drm]
     ? drm_atomic_check_only+0x199/0x420
     ? drm_atomic_nonblocking_commit+0x18/0x70
     ? drm_mode_atomic_ioctl+0x57e/0x910
     ? __pfx_drm_mode_atomic_ioctl+0x10/0x10
     ? drm_ioctl_kernel+0xb5/0x110
     ? drm_ioctl+0x309/0x5e0
     ? __pfx_drm_mode_atomic_ioctl+0x10/0x10
     ? nv_drm_ioctl+0x38/0x3f0 [nvidia_drm]
     ? arch_exit_to_user_mode_prepare.isra.0+0xc3/0xe0
     ? do_syscall_64+0x140/0x5a0
     ? __x64_sys_ioctl+0xa3/0x100
     ? x64_sys_call+0x103b/0x2390
     ? do_syscall_64+0x105/0x5a0
     ? arch_exit_to_user_mode_prepare.isra.0+0xc3/0xe0
     ? do_syscall_64+0x140/0x5a0
     ? sysvec_apic_timer_interrupt+0x54/0xd0
     ? entry_SYSCALL_64_after_hwframe+0x76/0x7e
     </TASK>
    INFO: task KMS thread:97916 blocked on a semaphore likely last held by task nvidia-modeset/:450
    task:nvidia-modeset/ state:R  running task     stack:0     pid:450   tgid:450   ppid:2      task_flags:0x208040 flags:0x00080020
    Call Trace:
     <TASK>
     __schedule+0x2c3/0x650
     preempt_schedule_irq+0x38/0x70
     raw_irqentry_exit_cond_resched+0x31/0x40
     irqentry_exit+0x2e/0x6f0
     ? __update_idle_core+0x56/0x1c0
     sysvec_apic_timer_interrupt+0x54/0xd0
     asm_sysvec_apic_timer_interrupt+0x1b/0x20
    RIP: 0010:nvWriteGpEntry+0x5c/0x370 [nvidia_modeset]
    Code: 10 4c 8b a7 98 01 00 00 41 8d 43 ff 41 8d 6a 02 21 c5 48 8b 87 b8 00 00 00 45 8b 4c 24 10 48 89 44 24 08 0f 1f 00 41 83 f9 01 <0f> 86 8e 00 00 00 31 ff 31 f6 31 c9 0f 1f 84 00 00 00 00 00 48 63
    RSP: 0018:ffffd14380e87cf8 EFLAGS: 00000246
    RAX: 0000000000000000 RBX: ffff8cdcd5251830 RCX: ffffd14383bc13e8
    RDX: ffff8cdcd870b000 RSI: 00000000000003f4 RDI: 0000000000000006
    RBP: 0000000000000006 R08: 0000000000000000 R09: 0000000000000001
    R10: 0000000000000004 R11: 0000000000000010 R12: ffffd14380c9d0d8
    R13: 00000000000003f4 R14: 0000000000000384 R15: 0000000000000000
     ? nvPushKickoff+0x28/0x50 [nvidia_modeset]
     ? PrefetchHelperSurfaceEvo+0x45c/0x650 [nvidia_modeset]
     ? nvkms_kthread_q_callback+0x101/0x190 [nvidia_modeset]
     ? nvDIFRPrefetchSurfaces+0x135/0x1f0 [nvidia_modeset]
     ? DifrPrefetchEventDeferredWork+0x16/0x30 [nvidia_modeset]
     ? nvkms_kthread_q_callback+0xe9/0x190 [nvidia_modeset]
     ? _main_loop+0x99/0x160 [nvidia_modeset]
     ? __pfx__main_loop+0x10/0x10 [nvidia_modeset]
     ? kthread+0xf7/0x130
     ? __pfx_kthread+0x10/0x10
     ? ret_from_fork+0x195/0x2a0
     ? __pfx_kthread+0x10/0x10
     ? __pfx_kthread+0x10/0x10
     ? ret_from_fork_asm+0x1a/0x30
     </TASK>
    
  27. jemartell commented on Nov 23, 2026

    @jemartell

    Confirmed NVIDIA DRM/KMS DIFR deadlock on Lenovo RTX 5050 Laptop / Ubuntu 26.04.1 (615.71.09-open)

    System: Lenovo 83VA / BIOS U7CN13WW; AMD Ryzen 7 + Radeon 680M iGPU; NVIDIA RTX 5050 Laptop (GB207M), Ubuntu 26.04.1 LTS, kernel 7.0.0-44-generic, GNOME Shell/Mutter 50.1 on Wayland, NVIDIA open DKMS 615.71.09.

    Incident: 2026-11-23 12:10:33 CET. Linux hung-task detector reported:

    INFO: task KMS thread:7541 blocked for more than 122 seconds.
      nvkms_ioctl_from_kapi_try_pmlock+0x55/0xc0 [nvidia_modeset]
      ApplyModeSetConfig+0x37f/0xc60 [nvidia_modeset]
    INFO: task KMS thread:7541 blocked on a semaphore likely last held by task nvidia-modeset/:516
    task:nvidia-modeset/ state:R running task pid:516
      nvWriteGpEntry+0xf9/0x370 [nvidia_modeset]
      nvPushKickoff+0x28/0x50 [nvidia_modeset]
      PrefetchHelperSurfaceEvo+0x45c/0x650 [nvidia_modeset]
      nvDIFRPrefetchSurfaces+0x12f/0x1f0 [nvidia_modeset]
      DifrPrefetchEventDeferredWork+0x16/0x30 [nvidia_modeset]
      nvkms_kthread_q_callback+0xe9/0x190 [nvidia_modeset]
      _main_loop+0x99/0x160 [nvidia_modeset]
    

    At 12:12:36 and 12:14:39 CET, the detector repeated the warning; KMS was blocked for more than 368 seconds. Xwayland:9051 was blocked in DRM master-drop (drm_dropmaster_ioctl / nv_drm_ioctl), with plymouthd and ptyxis threads blocked in related DRM mutex waits. These are kernel traces, not inference from symptoms.

    Subsequent testing: Installed Ubuntu-recommended nvidia-driver-595-open 595.99.02 for comparison. The system boots successfully and NVIDIA/Wayland work; this precise deadlock has not yet been reproduced on 595 on this machine, so the above evidence is for 615 only.

    Possibly separate firmware symptoms: Both driver branches report ACPI GPS.NVD1 AE_NOT_FOUND, NVIDIA GPS_2X function 517 failure, and NV_ERR_INVALID_DATA reading SBIOS temperature/power mode. No causal link to the deadlock is established.

    We now collect kernel/DRM traces, D-state GPU thread stacks every 3 seconds, and an independent off-machine heartbeat witness. Both standard and safe-mode nvidia-bug-report.sh reports have been generated and validated. They are not publicly attached because they may contain private identifiers; redacted copies can be made available if needed.

    Question for NVIDIA: Does the nvHsAllocDevice / nvAllocLutSurfaces initialization-order fix discussed in this thread address this precise nvWriteGpEntry → nvDIFRPrefetchSurfaces reproduction? In which first released driver version will it be included?

    Related: #1289

  28. jemartell commented on Nov 23, 2026

    @jemartell

    Update to my Lenovo RTX 5050 reproduction: same confirmed DIFR/KMS lockup on 595.99.02-open, lasting >2 hours

    Following my earlier report, I can now confirm that the same NVKMS semaphore / DIFR prefetch deadlock reproduces on the Ubuntu 595.99.02 open driver. This rules out the attempted downgrade from 615.71.09 as a workaround on this particular Lenovo machine.

    Environment verified for the new occurrence

    • Lenovo platform 83VA, GeForce RTX 5050 Laptop GPU (GB207M, PCI device 10de:2d98), AMD Radeon 680M iGPU
    • Ubuntu 26.04.1 LTS, Linux 7.0.0-44-generic; GNOME/Mutter 50.1 Wayland, PRIME on-demand
    • NVIDIA 595.99.02 nvidia-driver-595-open from Ubuntu (verified by /proc/driver/nvidia/version, nvidia-smi, and package inventory)
    • AMD Radeon 680M drives internal eDP, NVIDIA dGPU drives the connected HDMI output; OpenGL renderer is AMD Radeon 680M

    Timestamped evidence, 2026-11-23 CET (UTC+1): The passive root GPU thread watchdog first flagged the KMS thread in uninterruptible D-state at 13:06:28, already blocked 12.2s. Kernel hung-task warnings began 13:09:55 (>122s), repeated at 13:11:58, 13:14:01, 13:16:04, 13:18:07, 13:20:10, 13:22:13, 13:24:16, 13:26:18 and 13:28:21 (>1228s). The independent watchdog kept logging exactly the same D-state through 15:16:26 CET: 7,810.6 seconds (>2 hours 10 minutes). Kernel still logged activity and transmitted evidence during most of this period.

    # hung-task detector, 595.99.02, 2026-11-23 13:09:55 CET
    INFO: task KMS thread:8219 blocked for more than 122 seconds.
      nvkms_ioctl_from_kapi_try_pmlock+0x55/0xc0 [nvidia_modeset]
      ApplyModeSetConfig+0x357/0xba0 [nvidia_modeset]
      nv_drm_atomic_apply_modeset_config+0x82b/0x9e0 [nvidia_drm]
    INFO: task KMS thread:8219 blocked on a semaphore likely last held by task nvidia-modeset/:500
    task:nvidia-modeset/ state:R running task pid:500
      nvWriteGpEntry+0x100/0x370 [nvidia_modeset]
      nvPushKickoff+0x28/0x50 [nvidia_modeset]
      PrefetchHelperSurfaceEvo+0x45c/0x650 [nvidia_modeset]
      nvDIFRPrefetchSurfaces+0x135/0x1f0 [nvidia_modeset]
      DifrPrefetchEventDeferredWork+0x16/0x30 [nvidia_modeset]
      nvkms_kthread_q_callback+0xe9/0x190 [nvidia_modeset]
      _main_loop+0x99/0x160 [nvidia_modeset]
    
    # independent passive watchdog, 2026-11-23 15:16:26 CET
    gpu_thread_blocked: KMS thread pid=8165 tid=8219 state=D
      wchan=nvkms_ioctl_from_kapi_try_pmlock
      stack: nvkms_ioctl_from_kapi_try_pmlock+0x55/0xc0
             ApplyModeSetConfig+0x357/0xba0
    duration_s=7810.6
    related thread nvidia-modeset/kthread_q state=R
    

    An off-machine 5-second heartbeat witness observed both network interfaces stop responding at 15:18:50 CET and resume at 19:03:14 CET, following a subsequent reboot at 19:02:52 CET. This establishes an additional loss of connectivity, but does not prove that the NVIDIA bug itself took down the network (power-off/reset is a possible explanation).

    Forensics were preserved as independent immutable snapshots on a second machine, while the affected desktop was locked: 120 blocked-thread events and 120 accompanying heartbeats in just the final preserved KMS log. The regular nvidia-bug-report.sh and --safe-mode --extra-system-data reports from the 595 driver were gzip-validated. Full reports are not attached publicly because they may contain serial numbers, network details, and other sensitive information; I can supply appropriately redacted artifacts if maintainers request them.

    Conclusions: Identical nvWriteGpEntry → nvDIFRPrefetchSurfaces busy/running owner vs nvkms_ioctl_from_kapi_try_pmlock blocked KMS thread on both 615.71.09 and 595.99.02 on the same RTX 5050 system. Our proposed workaround of reverting to 595 failed. Is the pending nvHsAllocDevice / nvAllocLutSurfaces patch expected to fix both versions, and can NVIDIA specify the first packaged release that contains it?

  29. shssoichiro commented on Nov 29, 2026

    @shssoichiro

    I'd really like to see this increased in priority/visibility. Many users have posted thorough reproductions, and there appears to be a working patch which was closed even though the bug continues to persist in 620.73.04.

    The only workaround is to unplug my external monitor permanently to prevent the hangs. This is a large hindrance to my productivity. The hangs with my external monitor plugged in are happening 1-2 times per day and are a massive interruption. This should be considered a high severity bug.

  30. datar6 commented on Nov 29, 2026

    @datar6

    Another data point: RTX 5070 Laptop (GB206M) driving the internal panel directly (MUX in discrete mode), no hybrid, no suspend, 615.78.08

    Machine GIGABYTE AERO X16 4WH, BIOS FB04
    dGPU GeForce RTX 5070 Max-Q / Mobile, GB206M [10de:2d18]
    iGPU AMD Radeon 890M (Ryzen AI 9 465), not in the display path: the MUX is set to Discrete, so the dGPU drives the internal eDP panel (2560x1600 165 Hz) and there is no external monitor
    OS Arch-based (Omarchy), kernel 7.2.15, Hyprland 0.56.2 (Wayland)
    Driver nvidia-open-dkms 615.78.08, nvidia_drm modeset=1, PreserveVideoMemoryAllocations=1, DynamicPowerManagement=3

    So this happens without any hybrid topology, external display, or hotplug.

    Trigger: idle lock → the lock screen turns the panel off with DPMS (hl.dsp.dpms disable) → a key press wakes it (DPMS enable). Three hangs in three weeks (Nov 24, 27, 28), always just after such a wake; the many other DPMS cycles were fine. None of the failing boots had a system suspend before the hang. The only way out was holding the power button.

    Stacks (Nov 28):

    INFO: task Hyprland:1468 blocked for more than 122 seconds.
     down+0x53/0x70
     nvkms_ioctl_from_kapi_try_pmlock+0x4a/0xa0 [nvidia_modeset]
     ApplyModeSetConfig+0x67b/0xe30 [nvidia_modeset]
     nv_drm_atomic_apply_modeset_config+0x8aa/0xa80 [nvidia_drm]
     drm_atomic_check_only+0x5d1/0xa30
     drm_mode_atomic_ioctl+0xec7/0x1200
    INFO: task Hyprland:1468 blocked on a semaphore likely last held by task nvidia-modeset/:288
    task:nvidia-modeset/ state:R  running task  pid:288
     ? nvWriteGpEntry+0x44/0x3f0 [nvidia_modeset]
     ? nvPushKickoff+0x2c/0x50 [nvidia_modeset]
     ? PrefetchHelperSurfaceEvo+0x4df/0x700 [nvidia_modeset]
     ? nvDIFRPrefetchSurfaces+0x155/0x240 [nvidia_modeset]
     ? DifrPrefetchEventDeferredWork+0x16/0x30 [nvidia_modeset]
     ? nvkms_kthread_q_callback+0xe6/0x170 [nvidia_modeset]
     ? _main_loop+0x10e/0x160 [nvidia_modeset]
    

    The hung-task reports repeated every ~2 minutes for 10 minutes (122 → 614 s), with nvidia-modeset still R in the same DIFR prefetch path each time. Nov 27 has an identical signature.

    Workaround I am testing: blanking the locked screen with backlight 0 instead of DPMS off, so the wake needs no modeset.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions