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

RTX 50-series (Blackwell): s2idle resume hangs on Linux 7.0 kernel; same driver works on 6.17

Open a-pushkin opened this issue 7 months ago • 34 comments

NVIDIA Open GPU Kernel Modules Version

580.142

Please confirm this issue does not happen with the proprietary driver (of the same version). This issue tracker is only for bugs specific to the open kernel driver.

  • [x] I confirm that this does not happen with the proprietary driver package.

Operating System and Version

Ubuntu 26.04 LTS Beta

Kernel Release

7.0.0-14-generic #14-Ubuntu SMP PREEMPT_DYNAMIC

Please confirm you are running a stable release kernel (e.g. not a -rc). We do not accept bug reports for unreleased kernels.

  • [x] I am running on a stable kernel release.

Hardware: GPU

NVIDIA GeForce RTX 5070 Laptop GPU

Describe the bug

Tested on two upstream tags; both reproduce.

Primary (currently installed, actively reproducing): 580.142

  • Upstream tag: https://github.com/NVIDIA/open-gpu-kernel-modules/releases/tag/580.142
  • Distro package: nvidia-dkms-580-open 580.142-0ubuntu3 (Ubuntu 26.04)
  • modinfo srcversion: C4BC8E95CA62E8363647ABA

Also reproduced on: 595.58.03

  • Upstream tag: https://github.com/NVIDIA/open-gpu-kernel-modules/releases/tag/595.58.03
  • Distro package: nvidia-dkms-595-open 595.58.03-0ubuntu2 (Ubuntu 26.04)

Not built from source / SHA — DKMS-built from the Ubuntu-packaged upstream-tag source tree.


## Field: Stable kernel confirmation

Confirmed. `uname -a` reports:
`Linux 7.0.0-14-generic #14-Ubuntu SMP PREEMPT_DYNAMIC Mon Apr 13 11:09:53 UTC 2026 x86_64`
— Ubuntu's ABI-14 build of upstream stable Linux 7.0, not a `-rc`.

---

## Field: Describe the bug

The nvidia-open driver hangs during s2idle lid-close suspend on Linux kernel 7.0. The identical driver on the identical hardware suspends and resumes cleanly on kernel 6.17. Blacklisting all nvidia kernel modules on kernel 7.0 also produces a clean s2idle cycle, so this is a driver-side regression triggered by kernel changes between 6.17 and 7.0 — not a platform or kernel-core bug. Both 580.142 and 595.58.03 reproduce.

Kernel nvidia loaded Result
6.17.0-22 yes works
6.17.0-22 no works
7.0.0-14 yes hangs
7.0.0-14 no (module_blacklist=nvidia_drm,nvidia_modeset,nvidia_uvm,nvidia) works

Failure signature

journalctl -b -1 -k of a failed boot ends with:

kernel: nvidia 0000:01:00.0: Enabling HDA controller
    (then the journal ends — the next line is the next boot after hard reset)

PM: suspend entry (s2idle) does not print. The kernel emits that message only after dpm_suspend_start() — the device suspend cascade — returns, so the fact that it never prints means one of the .suspend callbacks in the cascade never returns. The last device the kernel touched per the log is the nvidia-bound GPU function at 0000:01:00.0.

The Enabling HDA controller line itself is kernel-side, from quirk_nvidia_hda in drivers/pci/quirks.c, and the same line also appears on 6.17 where it's followed by a normal cycle. It's not the problem — it's just the last log emitted before control enters the nvidia driver's suspend path, where it never returns on 7.0.

Post-hang artifact on the next boot

dmesg on the post-reset boot shows the GSP left in an inconsistent state from the aborted resume:

NVRM: _kgspProcessRpcEvent: Attempted to process RPC event from GPU0: 0x101a
      (PFM_REQ_HNDLR_STATE_SYNC_CALLBACK) during bootup without API lock
NVRM: nvAssertFailedNoLog: Assertion failed: 0 @ kernel_gsp.c:1446

This is a consequence of the failed resume, not the primary bug, but the GSP PM RPC path is a plausible place to look.

Corroboration on different hardware

Another user reports the identical symptoms on a Lenovo ThinkPad T1g Gen 8 (Intel Core Ultra 9 + RTX 5070 Max-Q) with the same kernel + driver combination on Ubuntu 26.04, ruling out platform (AMD Phoenix / Framework) as a necessary condition: https://forums.developer.nvidia.com/t/ubuntu-26-04-suspend-resumes-to-black-screen/365785

Tracking

Full diagnostics attached to Ubuntu Launchpad bug: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2149963

To Reproduce

Framework Laptop 16 with an RTX 5070 Max-Q Mobile (GB206M) and AMD Phoenix iGPU, on Ubuntu 26.04 "resolute" (development release).

  1. Install nvidia-open: sudo apt install nvidia-driver-595-open (or nvidia-driver-580-open — both reproduce)

  2. Boot linux-image-7.0.0-14-generic with default modprobe config. Confirm all four nvidia kernel modules are loaded: lsmod | grep -E '^nvidia(_drm|_modeset|_uvm)?\b'

  3. Log in to GNOME on Wayland (AMD iGPU drives the internal display via amdgpu; nvidia modules are loaded for compute / offload).

  4. Close the laptop lid. Wait ~10 seconds. Open the lid.

Expected: normal s2idle resume — display re-lights, session continues, dmesg shows PM: resume from suspend-to-idle → PM: suspend exit.

Actual: display never wakes, system is unresponsive, hard reset (long power button) is the only recovery. On the next boot, journalctl -b -1 -k ends with nvidia 0000:01:00.0: Enabling HDA controller and no PM: suspend entry (s2idle) line.

Switching to linux-image-6.17.0-22-generic with no other changes makes the same cycle succeed — the only variable that matters is the kernel.

Bug Incidence

Always

nvidia-bug-report.log.gz

nvidia-bug-report.log.gz

More Info

No response

a-pushkin avatar Apr 22 '26 18:04 a-pushkin

Affects me too.

Laptop: MSI Vector 16 HX AI A2XW System: Ubuntu 26.04 (new LTS) Kernel: 7.0.0-14-generic CPU: Intel Core Ultra 9 275HX GPU: GeForce RTX 5080 Max-Q / Mobile Driver: 595.58.03 (open)

The laptop freezes completely after suspend.

notdenied avatar Apr 23 '26 22:04 notdenied

I also get a hard freeze on a desktop GPU 5080 on some (but not all) resumes but am on Kernel 6.19.13

System: Arch Linux Kernel: linux-6.19.13 GPU: Nvidia RTX 5080 Driver: nvidia-open-595.58.03-5 CPU: AMD 9700x

This happens on resume from both KDE before and Gnome. Seems to happen a bit less often on Gnome but may have just been luck

Same issue reproduced — Lenovo Legion + RTX 5060 + Kubuntu 26.04 Confirming this regression on a different platform/GPU combination, ruling out laptop-vendor-specificity further.

Hardware

Laptop: Lenovo Legion (LENOVO 83M0 / LNVNB161216), BIOS RGCN34WW (12/11/2025) CPU: AMD (Hawk Point / HawkPoint1) iGPU: AMD Radeon (amdgpu) dGPU: NVIDIA GeForce RTX 5060 Max-Q / Mobile (GB206M, PCI ID 10de:2d19, rev a1) Display server: Wayland (KDE Plasma / kwin_wayland)

Software

Distro: Kubuntu 26.04 (Resolute Raccoon) Kernel: 7.0.0-14-generic (#14-Ubuntu SMP PREEMPT(lazy)) Driver: nvidia-dkms-580-open 580.142-0ubuntu3 (distro package, DKMS-built) Modules loaded: nvidia, nvidia_modeset, nvidia_drm, nvidia_uvm (all 4 active) nvidia-smi: GPU detected normally, driver functional in regular use OpenGL renderer: NVIDIA GeForce RTX 5060 Laptop GPU/PCIe/SSE2 (no llvmpipe fallback)

Reproduction

Boot kernel 7.0.0-14-generic with default modprobe config Log in to KDE Plasma on Wayland Run systemctl suspend

Actual behavior Hard kernel panic on suspend entry. Caps Lock LED unresponsive — full system freeze, only long power-button reset recovers.

Fatal kernel bug, unexpected op at nvkms_kthread_q_callback+0x8e/0x1a0 [nvidia_modeset] kernel BUG at arch/x86/kernel/jump_label.c:731 Oops: invalid opcode: 0000 [#1] SMP NOPTI CPU: 14 UID: 0 PID: 4178 Comm: systemd-sleep Tainted: G W OE 7.0.0-14-generic #14-Ubuntu PREEMPT(lazy)

Call Trace: arch_jump_label_transform_queue+0x37/0x90 __jump_label_update+0x47/0x100 jump_label_update+0x5c/0x110 static_key_slow_inc_cpuslocked+0x53/0xa0 static_key_slow_inc+0x1f/0xa0 freeze_processes+0xd1/0xe0 enter_state+0xe0/0x610 pm_suspend+0x49/0x90 state_store+0x2e/0x60 ...

Notes

Crash occurs during suspend entry (freeze_processes in the trace), not on resume systemd-sleep is the triggering process Same nvidia_modeset callback site (nvkms_kthread_q_callback) as the Framework + RTX 5070 Max-Q report — strongly suggests common root cause across Blackwell mobile parts Unable to test kernel 6.17 downgrade on Kubuntu 26.04 (kernel 6.17 not available in Resolute repos; 26.04 ships 7.0 only)

Workaround currently applied systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target plus disabling all sleep triggers in KDE power management. Suspend is unusable until a fix lands. Affected combination summary ComponentVersionGPU archBlackwell (GB206M)Driver580.142-openKernel7.0.0-14-generic (Ubuntu)iGPUAMD (hybrid)CompositorKDE/kwin_wayland

gcapellib avatar Apr 25 '26 00:04 gcapellib

This is affecting a Dell Precision 5540 I have with a turing card, using the 595 driver on the linux 7.0 kernel on Ubuntu 26.04. @a-pushkin can you remove "RTX 50-series (Blackwell):" from the title, this clearly affects a lot of cards outside of the blackwell series.

dylanmtaylor avatar Apr 25 '26 01:04 dylanmtaylor

This other github issue's comment fixed the problem for me.

https://github.com/NVIDIA/open-gpu-kernel-modules/issues/1095#issuecomment-4229829419

EdwardCooke avatar Apr 26 '26 14:04 EdwardCooke

Affetcs me too. RTX 5060 Ti + linux kernel 7.0 suspend hangs my computer. kernel 6.17 works though. is nvidia working on a fix?

perja2 avatar Apr 26 '26 16:04 perja2

The workaround in #1095 (veldenb) fixes this for me. Framework 16 + RTX 5070 Max-Q, Ubuntu 26.04 kernel 7.0.0-14-generic, nvidia-driver-595-open 595.58.03 — three lid-close suspend/resume cycles, all clean. PM: suspend entry (s2idle) now prints, which was the original smoking gun (it didn't before, meaning the nvidia PCI suspend callback wasn't returning).

So this and #1095 are the same bug. Also dropping "Blackwell" from the title — @dylanmtaylor reported the same hang on Turing earlier in this thread, and mikwii2000 on the NVIDIA forum thread hit it on Ampere. NVIDIA is tracking it as bug 6120895.

a-pushkin avatar Apr 28 '26 23:04 a-pushkin

Confirmed: workaround from #1095 (veldenb) fixes this on my setup too. System: Lenovo Legion 5, RTX 5060 Laptop (Blackwell GB206M), AMD iGPU (hybrid), Kubuntu 26.04, kernel 7.0.0-14-generic, nvidia-driver-595-open 595.58.03, KDE Plasma/Wayland.

gcapellib avatar Apr 30 '26 19:04 gcapellib

I think I'm hitting the same regression on kernel 7.0 — wanted to add data in case it helps narrow it down. Suspend used to work fine before the upgrade to Ubuntu 26.04 / kernel 7.x; broke after.

Trace:

jump_label: Fatal kernel bug, unexpected op at
  nvkms_kthread_q_callback+0x8e/0x1a0 [nvidia_modeset]
  (e9 9b 00 00 00 != 0f 1f 44 00 00) size:5 type:1
kernel BUG at arch/x86/kernel/jump_label.c:73!
Oops: invalid opcode: 0000 [#1] SMP NOPTI
RIP: __jump_label_patch.cold+0x24/0x26
Call Trace:
  arch_jump_label_transform_queue
  __jump_label_update
  jump_label_update
  static_key_slow_inc_cpuslocked
  static_key_slow_inc
  freeze_processes
  enter_state
  pm_suspend

Setup:

  • GPU: GTX 1050 Ti
  • Driver: nvidia-driver-580 580.142-0ubuntu3
  • Kernel: 7.0.0-15-generic, Ubuntu 26.04 (also reproduces on -14)
  • Trigger: KDE → Sleep

Possibly related on the same kernel:

undera avatar May 02 '26 15:05 undera

Additional datapoint: similar suspend/resume hang also reproduces with the proprietary NVIDIA module, not only nvidia-open.

System:

  • Ubuntu 26.04 LTS
  • Kernel: 7.0.0-15-generic
  • NVIDIA driver: 595.58.03
  • Package: nvidia-dkms-595 / nvidia-driver-595
  • modinfo nvidia license: NVIDIA
  • GPU: AD107M GeForce RTX 4060 Max-Q / Mobile [10de:28a0]
  • PRIME on-demand: fails
  • PRIME intel, NVIDIA modules not loaded: works

nvidia-suspend/resume services are enabled, and PreserveVideoMemoryAllocations=1 is active. I filed details and nvidia-bug-report.log.gz in NVIDIA Developer Forum / Launchpad.

KaysonSear avatar May 03 '26 16:05 KaysonSear

I think this is coming from that Ubuntu did not enable the new way for sleep. Ive seen zero reports for this on Archlinux, CachyOS and Fedora, which are all using the new way for sleep.

Can someone on an ubuntu machine please try:

  1. Add to /etc/modprobe.d/nvidia.conf:
# https://download.nvidia.com/XFree86/Linux-x86_64/595.45.04/README/powermanagement.html
# Enable Suspend Notifiers for faster and more modern suspend
options nvidia NVreg_UseKernelSuspendNotifiers=1
#
# The destination should not be using tmpfs, so we prefer
# /var/tmp instead of /tmp
options nvidia NVreg_TemporaryFilePath=/var/tmp
  1. Disable all services: sudo systemctl disable --now nvidia-resume nvidia-hibernate nvidia-suspend nvidia-suspend-then-hibernate
  2. Reboot and retry

If it works I think it would be the best hitting the packagers from ubuntu up to adjust their packaging properly.

ptr1337 avatar May 03 '26 19:05 ptr1337

Thanks for the suggestion. I tested the NVreg_UseKernelSuspendNotifiers workaround on my Ubuntu machine, but unfortunately it still does not fix suspend/resume for me.

System:

  • Ubuntu 26.04 LTS
  • Kernel: 7.0.0-15-generic
  • Driver: nvidia-dkms-595 / nvidia-driver-595, version 595.58.03
  • Module type: proprietary NVIDIA module, not nvidia-open
  • modinfo nvidia license: NVIDIA
  • GPU: NVIDIA AD107M GeForce RTX 4060 Max-Q / Mobile [10de:28a0]
  • PRIME mode: on-demand
  • GNOME Wayland
  • /sys/power/mem_sleep: [s2idle] deep

I tested with the following state after reboot:

  • NVreg_UseKernelSuspendNotifiers=1
  • NVreg_PreserveVideoMemoryAllocations=0
  • NVreg_TemporaryFilePath=/var/tmp
  • nvidia-suspend.service: disabled
  • nvidia-resume.service: disabled
  • nvidia-hibernate.service: disabled
  • nvidia-suspend-then-hibernate.service: disabled

Result:

  • sudo systemctl suspend still resumes to a black screen and requires a hard power reset.
  • PRIME intel mode still works correctly when the NVIDIA modules are not loaded.
  • PRIME on-demand fails as soon as the NVIDIA modules are loaded.

So this workaround does not seem sufficient for my machine with the proprietary 595.58.03 DKMS module. It might still be specific to the proprietary module path, or to this kernel 7.0 + NVIDIA 595 combination.

KaysonSear avatar May 04 '26 06:05 KaysonSear

I think this is coming from that Ubuntu did not enable the new way for sleep. Ive seen zero reports for this on Archlinux, CachyOS and Fedora, which are all using the new way for sleep.

Can someone on an ubuntu machine please try:

Add to /etc/modprobe.d/nvidia.conf: options nvidia NVreg_UseKernelSuspendNotifiers=1

Disable all services: sudo systemctl disable --now nvidia-resume nvidia-hibernate nvidia-suspend nvidia-suspend-then-hibernate

Reboot and retry

[ Edit - it appears I was wrong about this, the long delay after resume is back. :( I am still looking for a fix for it, but it is a different issue from the one described in this thread ]

This actually fixed a slightly different problem for me (Thinkpad P1, RTX2000, Kubuntu 26.04, 7.0.0-15-generic, nvidia-driver-595-open).

The initial problem was similar to the one described here (black screen after suspend, system unresponsive, requiring hard reset). That seems to have been fixed by applying the steps in this comment (dkms rebuild).

Now my system would resume, but resuming took a very long time (30-40 seconds from power on to the screen becoming visible). After applying the change suggested above (just the UseKernelSuspendNotifiers - in my case TemporaryFilePath was in /var, and I decided to leave it there), the system seems to come back a lot quicker (1-2 seconds from power on).

So... thank you, @ptr1337 , for the instructions!

bogd avatar May 06 '26 10:05 bogd

I think this is coming from that Ubuntu did not enable the new way for sleep. Ive seen zero reports for this on Archlinux, CachyOS and Fedora, which are all using the new way for sleep.

I'm on Arch with a 5080 desktop GPU (my cpu does have an AMD iGPU for what it's worth) and my system every so often will hard freeze after reboot. The NVidia GPU fans seem to rev up but everything is frozen. It's not on every resume. I'd say every 2-3 resumes it'll lock up a second or two after booting. It was not happening on kernels before 6.19 though. It does not happen on windows, so I don't think it's just my particular hardware.

I'm facing a similar issue. Kubuntu 26.04 Kernel: 7.0.0-15-generic Card: NVIDIA GeForce GTX 960M NVIDIA Driver version: 580.142

heshamamin avatar May 08 '26 10:05 heshamamin

Experiencing this as well in the last few weeks. Rolled back to LTS 6.18 which has resolved the problem for now. nvidia-open 595.71.05-5 Will update after trying solution outlined in https://github.com/NVIDIA/open-gpu-kernel-modules/issues/1095 after work; seems promising

adillari avatar May 11 '26 18:05 adillari

Can someone try to bisect and maybe find the offending commit?

ptr1337 avatar May 12 '26 13:05 ptr1337

I personally don’t have the time to go through every commit in the kernel but I can narrow it down for you. It was between 6.18 and 6.19. Should narrow that down a lot.

EdwardCooke avatar May 12 '26 18:05 EdwardCooke

I have the same jump_label trace as @undera. The objtool workaround from @fhangel in #1095#issuecomment-4384545333 resolved it for me.

  • GPU: GeForce RTX 5070 (10de:2f04) — discrete only, no iGPU
  • Kernel: 7.0.0-15-generic
  • Driver: nvidia-open 595.58.03
  • Sleep mode: deep (desktop default, not s2idle)

willbeason avatar May 17 '26 18:05 willbeason

BTW after upgrading to the latest driver (recently released nvidia-driver-595-open=595.71.05-0ubuntu0.26.04.1 with 3060ti GPU and nvidia-driver-580=580.159.03-0ubuntu0.26.04.1 with 1080 GPU) - suspend works fine for me

undera avatar May 27 '26 14:05 undera