Repository navigation
Description
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
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 on7.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
- Hybrid AMD+NVIDIA laptop, external monitor connected to the NVIDIA output (HDMI).
- Let the display auto-blank (GNOME PowerSaveMode / DPMS off).
- Freeze within ~minutes (sometimes immediately on blank/unblank).
- Also observed with screen-content capture (GNOME screenshot/screencast) and with several concurrent display clients (e.g. multiple terminal AI agents doing screen reads).
- 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
Awin-G commentedon Aug 11, 2026
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).
Awin-G commentedon Aug 11, 2026
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):
Confirmed hung-task stack (identical every occurrence):
Root cause in code:
nvWriteGpEntry()insrc/common/unix/nvidia-push/src/nvidia-push.ccontains an unbounded busy-wait: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
boundedKickoffflag toNvPushChannelRec, set it inAllocDIFRPushChannel, and innvWriteGpEntrytime out (and return FALSE) only whenboundedKickoff && !noTimeout. On timeout the prefetch fails and DIFR stays disabled, so the display no longer deadlocks. Result: the stall now logsnvWriteGpEntry: timed out waiting for GPFIFO spaceand the screen does not freeze — reproduced and caught 4/4 times, zeroKMS thread blockedthis 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
nvWriteGpEntrycan 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.
Awin-G commentedon Aug 11, 2026
Correction: the diff in my previous comment had a rendering artifact from the diff tool (a pre-existing
return FALSEshowed 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.Awin-G commentedon Aug 11, 2026
Confirmed same bug family as these reports:
nvWriteGpEntry→nvPushKickoff→PrefetchHelperSurfaceEvo→nvDIFRPrefetchSurfaces→DifrPrefetchEventDeferredWork), DPMS-triggerednvWriteGpEntry→nvPushSetObject/nvPushKickoff→PrefetchHelperSurfaceEvo→nvDIFRPrefetchSurfaces), freeze ~minutes after resume on hybrid dGPU external monitorCommon thread:
nvidia-modesetspins in the unboundedwhile (nextGpPut == ReadGpGetOffset(...))ofnvWriteGpEntryduring 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 thenvWriteGpEntrypath (confirmed for #1177/#1167; pending stack confirmation for #1205/#1231).broscr commentedon Aug 14, 2026
Confirming this on 610.57.04, RTX 5070 Ti Mobile — identical stack, same trigger pattern (hybrid + external monitor + lock/unlock)
Version / OS
nvidia-driver-open610.57.04-1ubuntu1 (Ubuntu CUDA repo,apt install nvidia-open)7.0.0-29-generic(also reproduced on7.0.0-14-generic)Hardware
GB205M,10de:2f58)8086:7d67)eDP-2) + external monitor onHDMI-1connected to the NVIDIA output — same topology as this issue and Wayland: kwin_wayland 6.7 hangs (hung task / deadlock) after waking monitors from power-saving mode with hybrid AMD/NVIDIA (nvidia open driver) #1231.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:
Both boots only started happening after the driver was auto-upgraded from
595.91.07to610.57.04via thenvidia-openmeta-package on 2026-08-13 — never observed on595.91.07before that.Reproduction pattern
Matches the recipe in this issue almost exactly:
gdm-passwordkeyring lock).gkr-pam: unlocked login keyringat 13:35:35).Hung-task log (identical signature to the reports above)
Second report ~2 minutes later, same PID, same
nvWriteGpEntryRIP (different offset — still spinning), confirming it's a livelock, not a one-off stall:gnome-shellalso loggedCould not release device '/dev/input/event0' (13,64): Timeout was reachedwhile the KMS thread was stuck, consistent with the compositor being unable to proceed at all.Notes
nvidia-driver-openDKMS package shipsnvidia-modeset/nv-modeset-kernel.o_binaryas a precompiled blob (Kbuild symlinks it straight intonvidia-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.
handkerchief333 commentedon Aug 23, 2026
I can confirm what appears to be the same
nvidia_modeset/ DIFR deadlock on a different hybrid laptop configuration.System
i915)7.1.8-200.fc44.x86_64610.57.04s2idle [deep], withdeepselectednvidia-suspend.service,nvidia-resume.serviceandnvidia-hibernate.service: enabledTrigger / 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
deepsuspend/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:
Ctrl+Alt+F3does not switch to a TTYOn the latest occurrence I used SysRq
wandlbefore rebooting with REISUB.SysRq
w: KWin blocked inside NVIDIA modesettingThe blocked task was
kwin_waylandin uninterruptible sleep:SysRq
l: NVIDIA modeset thread stuck in DIFR prefetchAt the same time an
nvidia-modeset/kernel thread was active in:This looks essentially identical to the deadlock reported in this issue: KWin waits for the NVIDIA KMS lock while the
nvidia-modesetthread 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.gzimmediately 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/nvWriteGpEntrydeadlock on:deepsuspend-resume cycles as the apparent triggerPlease let me know if there are additional traces, module parameters or debug data I can collect during another occurrence.
albanD commentedon Aug 24, 2026
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
10de:2717)Timeline
PFM_REQ_HNDLR_STATE_SYNC_CALLBACKassertion/dev/dri/card0nvidia-modesetPID 1426 in stateRat 99% of one coreBlocked KMS thread
Spinning NVIDIA modeset thread
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 andrelevant 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 thenvkms_ioctl_from_kapi_try_pmlockname, the KMSthread successfully takes the shared PM read lock and then blocks in
nvkms_ioctl_common()ondown(&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_TASKis disabled in Fedora’s kernel, so no automatic122-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.
amrit1711 commentedon Aug 31, 2026
Hi All,
I have filed a bug 6696638 internally for tracking purpose.
We will get back to you if required any additional information.
henriquefortuna commentedon Sep 4, 2026
Confirming the same DIFR/NVKMS deadlock on different hardware and desktop environment.
System:
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
aritger commentedon Sep 4, 2026
@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.
sdev138 commentedon Sep 5, 2026
Can confirm the same deadlock on different hardware and config:
System:
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:
henriquefortuna commentedon Sep 6, 2026
@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.
robert-burton commentedon Sep 6, 2026
I'd been having this issue on my laptop (as detailed here) and PR #1286 seems to have fixed it for the most part.
GurraD commentedon Sep 10, 2026
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:
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:
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
ccueto36 commentedon Sep 14, 2026
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_greetrepeatedly loggedeglSwapBuffers 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,plasmaloginloggedtty "tty1" already in use ... active ... KDE, started a second Wayland session on VT2, the existingkwin_waylandloggedatomic commit failed: Permission denied, andksplashqmlfailed 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.shduring the hang because the machine required a hard reset. Any guidance on the minimal capture or safe workaround would be appreciated.13 remaining items
najibninaba commentedon Nov 8, 2026
Another confirmation on 615.78.08, triggered by a DPMS wake with no suspend, Hyprland 0.56.2.
System
nvidia_drm modeset=1 fbdev=1,NVreg_DynamicPowerManagement=3,NVreg_PreserveVideoMemoryAllocations=1Sequence (no suspend during this boot, uptime 12h40m)
nvidia-modeset/kthread_qholds 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,nvAllocLutSurfacesEvostill runs beforenvHsAllocDevice, so the Oct 30 patch doesn't seem to be in it yet.nvidia-bug-report.log.gz
myrgy commentedon Nov 9, 2026
UPD: freezing happened to me again. as a rule it happens when
Crimson Desertloses focus on external monitor.UPD2: looks like I managed to find how the issue could be reproduced even in patched version - by running
Crimson Desertandbtop(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
jjsch-dev commentedon Nov 12, 2026
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
10de:28e0)amdgpu), drives the internal eDP panelnvidia-driver-595595.99.02-0ubuntu0.26.04.1, proprietary7.0.0-43-generic7.0.0-38and7.0.0-42DynamicPowerManagement=2,PreserveVideoMemoryAllocations=1, andUseKernelSuspendNotifiers=0Confirmed 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-powertimed out settingPowerSaveModeonorg.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 at16:22.16:43:19, reaching 1228 seconds.The waiter was the gnome-shell KMS thread (
pid 11189,tgid 11168):The kernel then reported:
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:
(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:
Idle PowerSaveMode / DPMS.
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.
levihackerman-102 commentedon Nov 12, 2026
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, Archlinux 7.2.15-arch1-1). This is the same DIFR prefetch livelock described above:nvidia-modesetkthread spins indefinitely innvWriteGpEntry→nvPushKickoff→PrefetchHelperSurfaceEvo→nvDIFRPrefetchSurfaces→DifrPrefetchEventDeferredWorkwhile holding the nvkms pmlock;kwin_waylandblocks in D-state innvkms_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-dkmsbuild if that would help confirm the fix.Hardware / software
nvidia-drm.modeset=1Full hung-task logs (two incidents)
aritger commentedon Nov 13, 2026
@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.
gradia64 commentedon Nov 13, 2026
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
Journal history of
Flip event timeouton this machinenvidia-modeset: ERROR: GPU:0: Error while waiting for GPU progress: 0x0000927c:1 2:0:4048:4040The 620.70.06 case in detail (Arch, the boot lasted 2 min 24 s):
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:
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)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.
gradia64 commentedon Nov 14, 2026
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:
Flip event timeout on head 0/1alternating 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: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).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 timeoutplusnvidia-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.
eloff commentedon Nov 15, 2026
The patch here fixed the freezes I was having. Please get it into the driver so I can stop maintaining my own.
feat(nvidia): apply upstream nvkms LUT allocation ordering patch
euzun-mobilai commentedon Nov 19, 2026
Another data point for the non-suspend path, on an Ada workstation laptop with the stock Ubuntu 595.99.02 package.
System
[10de:2730]7.0.0-43-genericnvidia-driver-595-open595.99.02-0ubuntu0.26.04.1 (prebuiltlinux-modules-nvidia-595-open, Secure Boot on)nvidia-drm modeset=1,NVreg_DynamicPowerManagement=0x02,NVreg_PreserveVideoMemoryAllocations=1What 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:followed by the same signature as in this issue:
The second time it went unnoticed for three days because the machine was used remotely. After that time
nvidia-modeset/kthread_qis still in state R at 99% of one core and mutter'sKMS threadis still in state D. A side effect that may help others recognise it:fwupdis 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.patchalso 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.contourkde commentedon Nov 22, 2026
Another data point: RTX 5060 Laptop GPU (
10de:2d19, Blackwell mobile), AMD hybrid, Ubuntunvidia-driver-595-open595.99.02, no suspend, triggered by monitor wake / hot-plug10de:2d19, drives one external HDMI monitor (2560x1440)amdgpu), drives the internal eDP panel (1920x1200) and one external DisplayPort monitor (2560x1440)nvidia-driver-595-open595.99.02-0ubuntu0.26.04.1 (Ubuntu archive, DKMS build)nvidia-drm modeset=1,NVreg_DynamicPowerManagement=3,NVreg_PreserveVideoMemoryAllocations=1,NVreg_UseKernelSuspendNotifiers=0,NVreg_EnableS0ixPowerManagement=0, GSP firmware enabledPM: suspend entrylines in all three boots involvedSymptom. The desktop stops responding and never recovers. The kernel stays up: virtual consoles work and
nvidia-smistill 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:
Launching DING process; +7 skernel: nvidia 0000:04:00.0: Enabling HDA controller; +8 sworkqueue: nv_drm_handle_hotplug_event [nvidia_drm] hogged CPU for >13333us 4 times; +9 s gnome-shell:Created gbm renderer for '/dev/dri/card1'(card1is 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-upLaunching 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 sEnabling HDA controller; +255 sCreated gbm renderer for '/dev/dri/card1'; KMS thread blocked by +385 s at the latest (first hung-task report at +507 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 argument207 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 (
tgidis gnome-shell):Holder, in state
Rin all ten reports (122 s to 1228 s, one report every 123 s), with the instruction pointer atnvWriteGpEntry+0x5c,+0xac,+0xb5,+0xf9and+0x100across the reports:On 2026-10-20 the same machine reached the lock through the atomic-commit path instead, with the same holder stack:
Testing the patch. Not possible on this install:
nvidia-kernel-source-595-openshipsnvidia-modesetas a prebuilt object (nvidia-modeset/nv-modeset-kernel.o_binary) and no nvkms sources, so0001-nvkms-Move-nvHsAllocDevice-before-nvAllocLutSurfaces.patchcannot 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
Full first hung-task report, 2026-10-20
jemartell commentedon Nov 23, 2026
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:
At 12:12:36 and 12:14:39 CET, the detector repeated the warning; KMS was blocked for more than 368 seconds.
Xwayland:9051was blocked in DRM master-drop (drm_dropmaster_ioctl/nv_drm_ioctl), withplymouthdandptyxisthreads blocked in related DRM mutex waits. These are kernel traces, not inference from symptoms.Subsequent testing: Installed Ubuntu-recommended
nvidia-driver-595-open595.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, NVIDIAGPS_2Xfunction 517 failure, andNV_ERR_INVALID_DATAreading 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.shreports 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/nvAllocLutSurfacesinitialization-order fix discussed in this thread address this precisenvWriteGpEntry → nvDIFRPrefetchSurfacesreproduction? In which first released driver version will it be included?Related: #1289
jemartell commentedon Nov 23, 2026
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
nvidia-driver-595-openfrom Ubuntu (verified by/proc/driver/nvidia/version,nvidia-smi, and package inventory)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.
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.shand--safe-mode --extra-system-datareports 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 → nvDIFRPrefetchSurfacesbusy/running owner vsnvkms_ioctl_from_kapi_try_pmlockblocked 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 pendingnvHsAllocDevice/nvAllocLutSurfacespatch expected to fix both versions, and can NVIDIA specify the first packaged release that contains it?shssoichiro commentedon Nov 29, 2026
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.
datar6 commentedon Nov 29, 2026
Another data point: RTX 5070 Laptop (GB206M) driving the internal panel directly (MUX in discrete mode), no hybrid, no suspend, 615.78.08
[10de:2d18]nvidia-open-dkms615.78.08,nvidia_drm modeset=1,PreserveVideoMemoryAllocations=1,DynamicPowerManagement=3So 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):
The hung-task reports repeated every ~2 minutes for 10 minutes (122 → 614 s), with
nvidia-modesetstillRin 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.