Repository navigation
Description
Summary
Attempting to hibernate (systemctl hibernate) on a hybrid-graphics laptop with the
dGPU active crashes in the nvidia PM notifier before the hibernation image is written.
systemd-sleep is killed mid-notifier ("exited with irqs disabled"), hibernation is
aborted, and the GPU is left permanently locked (RC watchdog loop) — the Wayland
compositor never recovers and a hard reboot is required. 100% reproducible on first
attempt under the conditions below.
Environment
- Driver: 595.80, open kernel module (Fedora RPMFusion
akmod-nvidia-595.80-1.fc44,
kmod-nvidia-7.0.13-200.fc44.x86_64-595.80-1.fc44) - Kernel:
7.0.13-200.fc44.x86_64(Fedora 44), PREEMPT(lazy); Secure Boot disabled,
lockdown[none] - GPU: RTX 4060 Laptop (Max-Q), PCI
01:00.0, hybrid with AMD Raphael iGPU (09:00.0) - Machine: ASUS ROG Strix G713PV (BIOS G713PV.327), Ryzen 9 7845HX, 64 GB RAM
- Session: KDE Plasma 6.7.1, Wayland (kwin_wayland compositing on the dGPU-driven
external output) - Displays: internal eDP on the AMD iGPU; external HDMI monitor driven by the NVIDIA
dGPU, connected and active at the time of the crash - Module options:
NVreg_PreserveVideoMemoryAllocations=1,
NVreg_TemporaryFilePath=/var/tmp,NVreg_DynamicPowerManagement=0x00 - nvidia-suspend/resume/hibernate systemd services: enabled
- Hibernate target: 59.6 GiB disk swap partition (zram excluded),
resume=UUID=...on
the kernel cmdline, initramfs rebuilt with resume support; ~14 GiB RAM in use - Platform sleep: firmware exposes s2idle only (no S3)
Steps to reproduce
- Hybrid mode (dGPU active, external HDMI display connected), Wayland session running.
systemctl hibernate
Expected
Hibernation image written; machine powers off; resume restores the session (or, if
something is unsupported, a clean refusal with no side effects).
Actual
Kernel oops inside the nvidia PM notifier during hibernate entry — before the image
write starts:
BUG: unable to handle page fault for address: 00000000000026b0
Oops: Oops: 0000 [#1] SMP NOPTI
CPU: 13 UID: 0 PID: 123864 Comm: systemd-sleep Tainted: G OE 7.0.13-200.fc44.x86_64 #1 PREEMPT(lazy)
Hardware name: ASUSTeK COMPUTER INC. ROG Strix G713PV_G713PV/G713PV, BIOS G713PV.327 08/23/2023
RIP: 0010:nvEvoDisableVblankSemControl+0x34/0xd0 [nvidia_modeset]
Call Trace:
<TASK>
nv_set_system_power_state.part.0+0x72/0x1b0 [nvidia]
nv_pm_notifier+0x35/0xa0 [nvidia]
notifier_call_chain+0x70/0x110
blocking_notifier_call_chain_robust+0x73/0xf0
pm_notifier_call_chain_robust+0x1d/0x40
hibernate+0x10d/0x190
state_store+0x45/0x60
kernfs_fop_write_iter+0x171/0x220
vfs_write+0x281/0x570
ksys_write+0x7b/0x110
do_syscall_64+0x109/0x6e0
note: systemd-sleep[123864] exited with irqs disabled
The fault address 0x26b0 is a small offset from NULL — this looks like a NULL/stale
device pointer dereferenced while disabling vblank semaphore controls in the hibernate
prepare path.
Aftermath: systemd-hibernate.service: Failed with result 'signal'; the kernel then
logs the RC watchdog indefinitely (~every 8 s):
NVRM: krcWatchdog_IMPL: RC watchdog: GPU is probably locked! Notify Timeout Seconds: 7
The Wayland compositor on the dGPU output never recovers; hard reboot required.
Notes
- Suspend (s2idle) on this configuration has a separate long-standing fragility
(VRAM corruption / Xid 31 on interrupted suspend), so hibernate was the intended
supported sleep path here. - This was the first hibernate attempt on this install; reproduced immediately.
- Happy to provide
nvidia-bug-report.log.gz, test patches, or try newer drivers.
Possibly related (different symbol/path, also 595.x mobile PM): #1142 (nv_suspend_devices WARNING on suspend). This report is a hard oops in nvEvoDisableVblankSemControl on the hibernate prepare path specifically.
Activity
SithSense commentedon Jul 2, 2026
Attaching diagnostics (as a gist — two files):
https://gist.github.com/SithSense/eb3296590c87a2ee7e6a76a8eddb09bc
nvidia-bug-report-sanitized.log— fullnvidia-bug-report.shoutput, collected as root on the boot after the crash (the tool only captures the current boot).journal-prev-boot-hibernate-oops.log— the previous boot's journal window covering the actual event:systemctl hibernate→ oops innvEvoDisableVblankSemControl→krcWatchdog: GPU is probably locked!loop until the forced reboot.Sanitization note: hostname, username, MAC addresses, local IPs, machine-id, and system/DIMM serials are redacted (
REDACTED-*placeholders). Nothing GPU- or driver-related was altered — PCI/subsystem IDs, module parameters, kernel/driver logs, and the oops are verbatim. Happy to re-collect with--safe-mode --extra-system-dataor test patches/newer drivers.costis-t commentedon Aug 5, 2026
Encountering same problem on a desktop RTX (GB203), and reproducing it on 610.57.04. Some AI-assisted output below.
Single GPU, no iGPU, KDE Plasma Wayland, kernel 6.18.41, hibernating to a btrfs swapfile on a LUKS2 root. Same
nvEvoDisableVblankSemControl+0x34/0xd0, sameComm: systemd-sleep, same SIGKILL at 78 s as the original report.The base pointer is NULL on both driver versions
The faulting instruction is identical across 595.84 and 610.57.04; only the displacement moved:
Faulting insn is
mov rdx,[rbp-0x28], and0x2618 - 0x28 = 0x25f0matches CR2 exactly (likewise0x26d8 - 0x28 = 0x26b0on 595.84).R14is NULL in both dumps — the 192-byte shift is just a struct member that grew between releases. The defect is thatnvEvoDisableVblankSemControlis reached with a NULL device pointer, which is also why the original report and mine hit the same symbol from two different call paths (nv_pm_notifier→hibernate+0x10dthere,nvKmsResume→nvResumeDevEvo→nvRevokeDevice→nvFreePerOpenDevfromhibernate.coldhere).Two GSP RPC timeouts precede it, 8 s apart, identically on both drivers
GSP stops answering → display engine channel allocation times out → teardown walks a device whose channels were never allocated → NULL deref. If that reading is right there are two separate issues: a GSP RPC timeout during hibernate, and a missing NULL check on the failure path. The second turns a recoverable error into a dead GPU.
The initramfs decides which leg fails; the driver version changes nothing
force_drivers)pci_pm_freezereturns -5In A the write leg is clean — image written, power-off in ~60 s — and the failure comes after
PM: Image successfully loadedon the next boot:preceded by
PreserveVideoMemoryAllocations module parameter is set. System Power Management attempted without driver procfs suspend interface.This system runsNVreg_UseKernelSuspendNotifiers=1and has no/proc/driver/nvidia/suspend. The notifiers cover transitions from a running system — which is why the write leg works — but the restore leg runs in a freshly booted initramfs kernel, where the driver still seems to expect the procfs interface.So both failures are about bringing the GPU back, whether that happens in the initramfs (A) or on the running system after the snapshot (B). No combination completes a round trip. This matches the matrix in basecamp/omarchy#5554, reached independently.
NVreg_PreserveVideoMemoryAllocations=0is not a usable workaround here — it is required for a clean Wayland resume from S3, hich currently works; #5554's Test 2 reports it does not fix Blackwell anyway. Plain S3 suspend/resume is fine in every configuration tested; only hibernation is affected.Same signature, three configurations
10de:2c05, single GPUnvEvoDisableVblankSemControl+0x34/0xd00x26b00x26b00x25f0systemd-sleepFailed with result 'signal'Full logs
All four runs, full oops dumps, module parameters, dracut config, kernel command line and hardware inventory: gist
atomicflag commentedon Oct 16, 2026
Also experiencing the same issue. More AI assisted info below.
Confirming the same signature on a 615.78.08 (open) desktop system — the oops is still present on the current branch.
Environment
0000:01:00.0), single GPU, no iGPU in usenvidia-open)Configuration
MODULES=())PreserveVideoMemoryAllocations: 2(default),UseKernelSuspendNotifiers: 1,EnableS0ixPowerManagement: 0So this is not the initramfs /
PVMA=1variant from #1343 — it is the plain default desktop setup, and S4 restore still fails.Sequence (real hibernate with actual power off/on; 100% reproducible — 3/3 cycles in my journal are byte-identical, including the fault address):
Notes:
0x2740(vs0x26b0/0x25f0there) — the struct grew, the root cause did not.FreeDeviceReference -> nvRevokeDeviceframes — the same re-entrant revoke pattern PR nvidia-modeset: ignore nested nvRevokeDevice() calls #1395 aims to remove.PM_POST_HIBERNATION), with the modules not in the initramfs — a new cell in the matrix from the previous comment: no-initramfs + restore leg + GSP wedge, on a desktop AD102.For the record, this has been happening on my system since ~575, and it reproduces on 615.78.08 as well. Happy to attach a full
journalctlwindow and anvidia-bug-report.log.gzif useful, or to test the PR #1395 patch / driver builds.a-kurczyn commentedon Nov 6, 2026
Same bug here on a desktop RTX 4080 (AD103) with 615.78.08. I found a workaround that makes S4 resume work: reset the GPU (FLR) in the initramfs, just before the hibernation image is loaded. With the reset, S4 resume worked 6 out of 6 times. Without it, it failed 4 out of 4 times.
Setup
10de:2704), the only GPU. The Ryzen 5 5600X has no iGPU.akmod-nvidia). It is not in the initramfs (RPM Fusion's defaultomit_drivers), sonvidia.koloads after switch-root./sys/power/disk=platformPreserveVideoMemoryAllocations=1,TemporaryFilePath=/var/tmp,DynamicPowerManagement=3,EnableGpuFirmware=18The failure
It failed 3 times out of 3 before the workaround: once with
UseKernelSuspendNotifiers=1(the driver default), and twice withUseKernelSuspendNotifiers=0plusnvidia-hibernate/nvidia-resume.service. Each time the image is saved and restored fine. Then:These are the same handles as in the 4090 report above. Here the two timeouts are 60 s apart, not 8 s. With
UseKernelSuspendNotifiers=0,nvidia-sleep.sh resumehangs until systemd kills it. Then the same oops appears, but it comes through the procfs path instead ofnv_pm_notifier:The screen never comes back, and I have to hard reset. So
UseKernelSuspendNotifierschanges how the resume starts, but not the result.Also ruled out: the HDMI 2.1 FRL link. It fails the same way at 3840x2160@60 (TMDS) with HDR off. S3 (
deep) suspend works fine with the same setup, at both 60 and 120 Hz.Workaround: reset the GPU in the initramfs before the image is loaded
My guess (one test below, "No display at power-on", supports it): when the PC powers on to resume from S4, the firmware does a full POST. The VBIOS/GOP turns on the display engine and shows the boot screen (simpledrm in the initramfs draws on it). After S3 this doesn't happen. The resume code in RM/nvidia-modeset doesn't seem to expect the display engine to be already on, and the GSP stops answering the window channel allocations. Resetting the GPU before the image is restored should put it back in a state closer to an S3 wake. At that point no driver is bound to
08:00.0, so the reset is safe.A dracut module (systemd initrd) adds a oneshot unit that runs before
systemd-hibernate-resume.service. It only runs when systemd'sHibernateLocationEFI variable exists, which means an image is waiting. It writes1to/sys/bus/pci/devices/<gpu>/reset. On this cardreset_methodisflr bus, so FLR is used./usr/lib/dracut/modules.d/99gpu-reset-resume/module-setup.sh/usr/lib/dracut/modules.d/99gpu-reset-resume/gpu-reset-before-resume.service/usr/lib/dracut/modules.d/99gpu-reset-resume/gpu-reset-before-resume.shTo enable it, add
add_dracutmodules+=" gpu-reset-resume "to a file in/etc/dracut.conf.d/and rundracut -f. With mkinitcpio, the same thing would be a hook that runs beforeresume.Results
The initramfs log is lost after a successful resume, so I checked the reset on its own: a normal boot with
rd.gpureset=1forces the reset. The log shows it ran, and the driver loaded fine afterwards:With the module installed (same driver, kernel and parameters,
UseKernelSuspendNotifiers=0), S4 resume works every time:Each one was a real power-off and POST. The last three were in a row, without rebooting in between.
nvidia-hibernateandnvidia-resume.servicesucceeded every time, with no GSP timeout and no oops. There was one[nvidia-drm] Flip event timeout on head 0, on the first resume only. The desktop came back with 4K120 HDR. A fifth run, with the TV turned off during the resume and turned on afterwards, also worked.Without the reset: I turned the reset off for one boot (
rd.gpureset=0), and it failed again. The image was restored and userspace ran for about a second. Then there was no picture, and the log stopped before any NVRM lines were saved. I had to reboot with SysRq.No display at power-on: with the reset still off (
rd.gpureset=0), I hibernated, unplugged the HDMI cable while the PC was off, turned it on, waited about 2 minutes, and plugged the cable back in. That resume worked without the reset.nvidia-resume.servicesucceeded, there was oneFlip event timeout, and the HDMI hotplug was picked up normally. With no display connected, the GOP has nothing to turn on. So the trigger seems to be the display state the firmware leaves after an S4 POST, not S4 itself. This is only one run, so take it as a strong hint, not proof.With the driver default: with the reset on and
UseKernelSuspendNotifiers=1(the driver default;nvidia-hibernate/nvidia-resume.serviceskip themselves throughExecCondition), S4 also worked: 23:56:17 hibernate requested, 23:57:27hibernation exit, no NVRM errors. So the workaround works with both suspend paths.Totals: 6/6 with the reset (5 with
UseKernelSuspendNotifiers=0, 1 with=1), and 0/4 without it when the TV is connected at power-on.If anyone else with a desktop that only has an NVIDIA GPU can try this, it would show whether it works beyond my machine. For NVIDIA: if my guess is right, the resume path probably needs to reset or reinitialise the display engine when the VBIOS has already turned it on after S4, the same way it does on a cold boot.
atomicflag commentedon Nov 6, 2026
@a-kurczyn Tried your workaround - it worked. Thank you!
edit: minimal example for anyone else on Archlinux:
/usr/libexec/gpu-reset-before-resume.sh(executable):/usr/lib/systemd/system/gpu-reset-before-resume.service:/etc/mkinitcpio.conf—FILESarray: