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

GSP heartbeat stuck at 0 since boot with S0ix power management on RTX PRO 1000 Blackwell laptop

Open mnencia opened this issue 8 months ago • 37 comments

NVIDIA Open GPU Kernel Modules Version

595.45.04

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.

N/A — Blackwell (GB207GLM) only supports open kernel modules.

Operating System and Version

Debian 13 (trixie)

Kernel Release

6.18.15+deb13-amd64

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 RTX PRO 1000 Blackwell Generation Laptop GPU (GB207GLM, part 2DB8-975-A1)

Describe the bug

On a hybrid graphics laptop (Intel Arc Pro 140T iGPU + NVIDIA RTX PRO 1000 dGPU) with S0ix power management enabled, the GSP firmware heartbeat counter is stuck at 0 for the entire boot session. Every time the GPU wakes from runtime power management (D3cold→D0), the driver logs assertion failures and heartbeat timeouts.

The GPU is otherwise functional — nvidia-smi reports normal temperature/power/utilization, GNOME Shell renders on external displays via DP-MST through the NVIDIA GPU, and CUDA works. However, every power transition produces a burst of errors in dmesg.

The pattern repeats indefinitely throughout the entire uptime (observed over 30+ hours since boot).

Error pattern on each GPU wake:

NVRM: GPU0 _kgspProcessRpcEvent: Attempted to process RPC event from GPU0: 0x101a (PFM_REQ_HNDLR_STATE_SYNC_CALLBACK) during bootup without API lock
NVRM: GPU0 nvAssertFailedNoLog: Assertion failed: 0 @ kernel_gsp.c:1446
NVRM: GPU0 _kgspIsHeartbeatTimedOut: Heartbeat timed out, currentTimeMs 4239432340 heartbeat 0 heartbeatWithOffsetMs 4227261603 diff 12170737 timeout 5200
NVRM: GPU0 _kgspRpcRecvPoll: GSP RM heartbeat timed out

Key observations:

  • heartbeat is always 0 — it never increments from boot
  • The PFM_REQ_HNDLR_STATE_SYNC_CALLBACK RPC event is rejected because the driver thinks it is still in "bootup" state
  • Each burst is correlated with nvidia 0000:01:00.0: Enabling HDA controller (GPU waking from power save)
  • The heartbeatWithOffsetMs value is stable within a session but the diff grows over time

Possible impact: While the GPU works for display and compute, the degraded GSP state may affect the driver's ability to recover from DP-MST hotplug events. I also have a separate issue (#1055) where DP-MST monitors fail to recover after brief signal drops from a Dell WD19DC dock, and the broken GSP heartbeat may be a contributing factor.

To Reproduce

  1. Boot a Dell Pro Max 16 Premium (MA16250) with hybrid graphics (Intel iGPU primary, NVIDIA dGPU for external displays via Direct Output Mode)
  2. S0ix power management is enabled via module parameters
  3. Let the GPU enter and exit power save naturally (it happens within minutes of idle)
  4. Check dmesg — heartbeat timeouts appear on every power transition

System Configuration

  • Laptop: Dell Pro Max 16 Premium (MA16250)
  • BIOS: 1.7.1 (Hybrid Graphics ON, Discrete Graphics Direct Output Mode ON)
  • VBIOS: 98.07.1C.40.1C
  • GSP Firmware: 595.45.04
  • iGPU: Intel Arc Pro 140T (i915 driver)
  • Desktop: GNOME 48.7 on Wayland
  • Dock: Dell WD19DC (USB-C) — two 1920x1080 monitors via DP-MST through NVIDIA GPU
  • Module parameters:
options nvidia NVreg_TemporaryFilePath=/var/tmp
options nvidia NVreg_EnableS0ixPowerManagement=1
options nvidia NVreg_PreserveVideoMemoryAllocations=1
options nvidia-drm modeset=1

dmesg excerpts

First occurrence after boot (system booted 2026-03-16 09:10:49):

2026-03-17T01:08:26 NVRM: _kgspIsHeartbeatTimedOut: Heartbeat timed out, currentTimeMs 4132580456 heartbeat 0 heartbeatWithOffsetMs 4121941346 diff 10639110 timeout 5200
2026-03-17T01:08:26 NVRM: _kgspRpcRecvPoll: GSP RM heartbeat timed out
2026-03-17T01:09:42 NVRM: GPU0 _kgspProcessRpcEvent: Attempted to process RPC event from GPU0: 0x101a (PFM_REQ_HNDLR_STATE_SYNC_CALLBACK) during bootup without API lock
2026-03-17T01:09:42 NVRM: GPU0 nvAssertFailedNoLog: Assertion failed: 0 @ kernel_gsp.c:1446
2026-03-17T01:09:42 NVRM: GPU0 _kgspProcessRpcEvent: Attempted to process RPC event from GPU0: 0x101a (PFM_REQ_HNDLR_STATE_SYNC_CALLBACK) during bootup without API lock
2026-03-17T01:09:42 NVRM: GPU0 nvAssertFailedNoLog: Assertion failed: 0 @ kernel_gsp.c:1446
2026-03-17T01:09:42 NVRM: GPU0 _kgspIsHeartbeatTimedOut: Heartbeat timed out, currentTimeMs 4132656633 heartbeat 0 heartbeatWithOffsetMs 4121941346 diff 10715287 timeout 5200
2026-03-17T01:09:42 NVRM: GPU0 _kgspRpcRecvPoll: GSP RM heartbeat timed out

Still occurring 30 hours later:

2026-03-18T06:49:18 NVRM: GPU0 nvAssertFailedNoLog: Assertion failed: 0 @ kernel_gsp.c:1446
2026-03-18T06:49:18 NVRM: GPU0 _kgspIsHeartbeatTimedOut: Heartbeat timed out, currentTimeMs 4239432340 heartbeat 0 heartbeatWithOffsetMs 4227261603 diff 12170737 timeout 5200
2026-03-18T06:49:18 NVRM: GPU0 _kgspRpcRecvPoll: GSP RM heartbeat timed out
2026-03-18T06:51:45 nvidia 0000:01:00.0: Enabling HDA controller
2026-03-18T06:51:45 NVRM: GPU0 _kgspProcessRpcEvent: Attempted to process RPC event from GPU0: 0x101a (PFM_REQ_HNDLR_STATE_SYNC_CALLBACK) during bootup without API lock
2026-03-18T06:51:45 NVRM: GPU0 nvAssertFailedNoLog: Assertion failed: 0 @ kernel_gsp.c:1446
2026-03-18T06:51:45 NVRM: GPU0 _kgspProcessRpcEvent: Attempted to process RPC event from GPU0: 0x101a (PFM_REQ_HNDLR_STATE_SYNC_CALLBACK) during bootup without API lock
2026-03-18T06:51:45 NVRM: GPU0 nvAssertFailedNoLog: Assertion failed: 0 @ kernel_gsp.c:1446
2026-03-18T06:51:45 NVRM: GPU0 _kgspIsHeartbeatTimedOut: Heartbeat timed out, currentTimeMs 4239579024 heartbeat 0 heartbeatWithOffsetMs 4227261603 diff 12317421 timeout 5200
2026-03-18T06:51:45 NVRM: GPU0 _kgspRpcRecvPoll: GSP RM heartbeat timed out

Bug Incidence

Always (every boot, every power transition)

nvidia-bug-report.log.gz

Will upload in a follow-up comment.

More Info

  • Related: #1059 has identical GSP heartbeat errors on the same driver version (595.45.04) but triggered by module reload + nvidia-powerd restart on an RTX 4060. This issue occurs on a clean boot without any module reloading.
  • Related: #1055 (my earlier report on DP-MST monitor recovery failures on the same system) — the broken GSP state may degrade the driver's ability to handle DP hotplug recovery.
  • nvidia-smi output during the issue:
+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 595.45.04              Driver Version: 595.45.04      CUDA Version: 13.2     |
+-----------------------------------------+------------------------+----------------------+
| GPU  Name                 Persistence-M | Bus-Id          Disp.A | Volatile Uncorr. ECC |
| Fan  Temp   Perf          Pwr:Usage/Cap |           Memory-Usage | GPU-Util  Compute M. |
|                                         |                        |               MIG M. |
|=========================================+========================+======================|
|   0  NVIDIA RTX PRO 1000 Blac...    On  |   00000000:01:00.0  On |                  N/A |
| N/A   42C    P8              6W /   35W |     101MiB /   8151MiB |      0%      Default |
|                                         |                        |                  N/A |
+-----------------------------------------+------------------------+----------------------+

mnencia avatar Mar 17 '26 17:03 mnencia

Update after reboot: The issue reproduces on every boot. The GSP heartbeat is fine during initial driver load, but fails on the first GPU power save/wake cycle (D3cold→D0).

Timeline from a clean boot:

18:39:56 pci 0000:01:00.0: Enabling HDA controller          ← early boot, GPU init, no error
18:41:40 NVRM: loading NVIDIA UNIX Open Kernel Module 595.45.04   ← driver loads clean
18:41:43 nvidia-modeset: WARNING: GPU:0: Got unknown DPCD revision 0.0 for Philips PHL 234E5 (DP-3.3)  ← dock MST, cosmetic
         [GPU enters D3cold power save after idle]
18:57:36 nvidia 0000:01:00.0: Enabling HDA controller        ← first wake from power save
18:57:36 NVRM: _kgspIsHeartbeatTimedOut: Heartbeat timed out, currentTimeMs 4243730060 heartbeat 0 heartbeatWithOffsetMs 4227261887 diff 16468173 timeout 5200
18:57:36 NVRM: _kgspRpcRecvPoll: GSP RM heartbeat timed out

So the GSP heartbeat counter is initialized to 0 during driver load, and after the first D3cold suspend/resume cycle it never resumes incrementing. Every subsequent GPU wake triggers the same heartbeat timeout.

This is 100% reproducible — happens on every boot within minutes of the GPU entering power save for the first time.

Visible impact: The first GPU wake from D3cold (when the heartbeat error first appears) also causes a brief flicker on the external DP-MST monitors. This confirms the GSP heartbeat failure is not just a cosmetic log error — it correlates with an actual disruption of the display output during the power transition.

mnencia avatar Mar 17 '26 18:03 mnencia

nvidia-bug-report.log.gz from a fresh boot (2026-03-17 18:41), captured ~40 minutes after boot with the GSP heartbeat error already present after the first D3cold wake.

mnencia avatar Mar 17 '26 18:03 mnencia

Same behaviour here with Razer blade 14 2021 with 3080.

sharp004 avatar Mar 22 '26 14:03 sharp004

Same issue with Acer Nitro V15 with 4050

SoloSaravanan avatar Mar 23 '26 17:03 SoloSaravanan

Asus TUF F17 FX707VV with NVIDIA GTX 4060 mobile GPU and NVIDIA Open 595.58.03 on CachyOS 6.19.9-2

No visible impact on my Display. I dont use any external monitor. KDE and Games running without any visible problems. When I switch the mode manually via "supergfxctl -m AsusMuxDgpu" then the below attached errors don't appear. Those errors only appear when the GPU mode is set to "Hybrid".

[ 0.000000] Command line: quiet nowatchdog splash rw rootflags=subvol=/@ root=UUID=45db2457-5674-47fc-9715-4e449f3a6d22 resume=UUID=fe6b2702-23bb-4baa-adcb-9335372e87e8 [ 0.048624] Kernel command line: quiet nowatchdog splash rw rootflags=subvol=/@ root=UUID=45db2457-5674-47fc-9715-4e449f3a6d22 resume=UUID=fe6b2702-23bb-4baa-adcb-9335372e87e8 [ 1.308237] nvidia: loading out-of-tree module taints kernel. [ 1.367104] nvidia-nvlink: Nvlink Core is being initialized, major device number 239 [ 1.370751] nvidia 0000:01:00.0: enabling device (0000 -> 0003) [ 1.370888] nvidia 0000:01:00.0: vgaarb: VGA decodes changed: olddecodes=io+mem,decodes=none:owns=none [ 1.446584] nvidia-modeset: Loading NVIDIA UNIX Open Kernel Mode Setting Driver for x86_64 595.58.03 Release Build (notroot@) Tue Mar 24 22:39:33 UTC 2026 [ 1.487282] [drm] [nvidia-drm] [GPU ID 0x00000100] Loading driver [ 2.794807] nvidia-modeset: nvidia-modeset: ACPI reported no NVIDIA native backlight available; attempting to use ACPI backlight. [ 2.797300] nvidia-modeset: WARNING: GPU:0: Unable to read EDID for display device DP-2 [ 2.809610] nvidia-modeset: WARNING: GPU:0: Unable to read EDID for display device DP-2 [ 2.813289] [drm] Initialized nvidia-drm 0.0.0 for 0000:01:00.0 on minor 1 [ 2.813759] nvidia 0000:01:00.0: [drm] Cannot find any crtc or sizes

[ 1.413654] NVRM: loading NVIDIA UNIX Open Kernel Module for x86_64 595.58.03 Release Build (notroot@) Tue Mar 24 22:39:42 UTC 2026 [ 59.664082] NVRM: _kgspIsHeartbeatTimedOut: Heartbeat timed out, currentTimeMs 632240385 heartbeat 0 heartbeatWithOffsetMs 0 diff 632240385 timeout 5200 [ 59.664087] NVRM: _kgspRpcRecvPoll: GSP RM heartbeat timed out [ 82.584174] NVRM: GPU0 _kgspProcessRpcEvent: Attempted to process RPC event from GPU0: 0x101a (PFM_REQ_HNDLR_STATE_SYNC_CALLBACK) during bootup without API lock [ 82.584177] NVRM: GPU0 nvAssertFailedNoLog: Assertion failed: 0 @ kernel_gsp.c:1446 [ 82.662913] NVRM: GPU0 _kgspProcessRpcEvent: Attempted to process RPC event from GPU0: 0x101a (PFM_REQ_HNDLR_STATE_SYNC_CALLBACK) during bootup without API lock [ 82.662917] NVRM: GPU0 nvAssertFailedNoLog: Assertion failed: 0 @ kernel_gsp.c:1446 [ 82.674572] NVRM: GPU0 _kgspIsHeartbeatTimedOut: Heartbeat timed out, currentTimeMs 632263402 heartbeat 0 heartbeatWithOffsetMs 0 diff 632263402 timeout 5200 [ 82.674573] NVRM: GPU0 _kgspRpcRecvPoll: GSP RM heartbeat timed out [ 108.341148] NVRM: GPU0 _kgspProcessRpcEvent: Attempted to process RPC event from GPU0: 0x101a (PFM_REQ_HNDLR_STATE_SYNC_CALLBACK) during bootup without API lock [ 108.341151] NVRM: GPU0 nvAssertFailedNoLog: Assertion failed: 0 @ kernel_gsp.c:1446 [ 108.420295] NVRM: GPU0 _kgspProcessRpcEvent: Attempted to process RPC event from GPU0: 0x101a (PFM_REQ_HNDLR_STATE_SYNC_CALLBACK) during bootup without API lock [ 108.420298] NVRM: GPU0 nvAssertFailedNoLog: Assertion failed: 0 @ kernel_gsp.c:1446 [ 108.431788] NVRM: GPU0 _kgspIsHeartbeatTimedOut: Heartbeat timed out, currentTimeMs 632289161 heartbeat 0 heartbeatWithOffsetMs 0 diff 632289161 timeout 5200 [ 108.431790] NVRM: GPU0 _kgspRpcRecvPoll: GSP RM heartbeat timed out [ 134.102792] NVRM: GPU0 _kgspProcessRpcEvent: Attempted to process RPC event from GPU0: 0x101a (PFM_REQ_HNDLR_STATE_SYNC_CALLBACK) during bootup without API lock [ 134.102799] NVRM: GPU0 nvAssertFailedNoLog: Assertion failed: 0 @ kernel_gsp.c:1446 [ 134.181814] NVRM: GPU0 _kgspProcessRpcEvent: Attempted to process RPC event from GPU0: 0x101a (PFM_REQ_HNDLR_STATE_SYNC_CALLBACK) during bootup without API lock [ 134.181815] NVRM: GPU0 nvAssertFailedNoLog: Assertion failed: 0 @ kernel_gsp.c:1446 [ 134.193453] NVRM: GPU0 _kgspIsHeartbeatTimedOut: Heartbeat timed out, currentTimeMs 632314924 heartbeat 0 heartbeatWithOffsetMs 0 diff 632314924 timeout 5200 [ 134.193455] NVRM: GPU0 _kgspRpcRecvPoll: GSP RM heartbeat timed out [ 252.229946] NVRM: _kgspIsHeartbeatTimedOut: Heartbeat timed out, currentTimeMs 632432962 heartbeat 0 heartbeatWithOffsetMs 0 diff 632432962 timeout 5200 [ 252.229951] NVRM: _kgspRpcRecvPoll: GSP RM heartbeat timed out [ 341.147252] NVRM: _kgspIsHeartbeatTimedOut: Heartbeat timed out, currentTimeMs 632521881 heartbeat 0 heartbeatWithOffsetMs 0 diff 632521881 timeout 5200 [ 341.147256] NVRM: _kgspRpcRecvPoll: GSP RM heartbeat timed out [ 399.119789] NVRM: _kgspIsHeartbeatTimedOut: Heartbeat timed out, currentTimeMs 632579854 heartbeat 0 heartbeatWithOffsetMs 0 diff 632579854 timeout 5200 [ 399.119794] NVRM: _kgspRpcRecvPoll: GSP RM heartbeat timed out [ 453.330056] NVRM: _kgspIsHeartbeatTimedOut: Heartbeat timed out, currentTimeMs 632634066 heartbeat 0 heartbeatWithOffsetMs 0 diff 632634066 timeout 5200 [ 453.330060] NVRM: _kgspRpcRecvPoll: GSP RM heartbeat timed out [ 588.476627] NVRM: _kgspIsHeartbeatTimedOut: Heartbeat timed out, currentTimeMs 632769214 heartbeat 0 heartbeatWithOffsetMs 0 diff 632769214 timeout 5200 [ 588.476631] NVRM: _kgspRpcRecvPoll: GSP RM heartbeat timed out [ 635.353103] NVRM: _kgspIsHeartbeatTimedOut: Heartbeat timed out, currentTimeMs 632816090 heartbeat 0 heartbeatWithOffsetMs 0 diff 632816090 timeout 5200 [ 635.353109] NVRM: _kgspRpcRecvPoll: GSP RM heartbeat timed out [ 778.198220] NVRM: _kgspIsHeartbeatTimedOut: Heartbeat timed out, currentTimeMs 632958937 heartbeat 0 heartbeatWithOffsetMs 0 diff 632958937 timeout 5200 [ 778.198225] NVRM: _kgspRpcRecvPoll: GSP RM heartbeat timed out

nvidia-bug-report.log.gz

janmetz76-byte avatar Mar 25 '26 16:03 janmetz76-byte

Same issue with ASUS TUF Gaming A15 Notebook 2022 with NVIDIA RTX 3060 Mobile EndeavourOS 6.19.9-arch1-1 on KDE Plasma nvidia-open-dkms 595.58.03-1 supergfxctl-git 5.2.7.r9.g5d503b1-1 asusctl 6.3.5.r0.g96fb55b1-2

supergfxctl set to Hybrid. Not always reproducable. Some boot attempts brings heartbeat failure after 2 minutes. Sometimes runs without issue. When issue occurs:

-Very short freeze -Thrown from session to SDDM -Ctl-Alt-F2 brings back session -BT-Stack not working (dbus issue etc)

Wayland or X11 does not matter. It seems it sometimes matter if AC Power and/or USB devices are present during boot though.

pipingtravel avatar Mar 28 '26 06:03 pipingtravel

Update: Issue persists after upgrading driver, kernel, and dock firmware.

Current versions:

  • Driver: 595.58.03 (open kernel modules, unchanged)
  • Kernel: 6.19.8+deb13-amd64 (was 6.19.6)
  • Dock firmware (Dell WD19DC, all updated today via LVFS):
    • EC: 01.01.00.16 (was 01.01.00.14)
    • VMM5331 MST hub: 05.07.08 (was 05.04.03)
    • Package: 01.01.02.01 (was 01.01.00.01)

GSP heartbeat is still stuck at 0 after the first D3cold wake, same as before. Today it also caused a practical failure: one of the external DP-MST monitors went black (dock MST hub dropped the video stream while DP AUX stayed alive). DRM showed enabled=enabled, dpms=On but ddcutil confirmed DDC/CI (I2C 0x37) was unresponsive. DPMS off/on cycle recovered the monitor, but a suspend/resume would have been needed to also reset the stuck GSP state.

nvidia-bug-report.log.gz captured while the monitor was black and GSP heartbeat stuck.

mnencia avatar Apr 03 '26 15:04 mnencia

I dug into the 595.58.03 source to try to understand what's going on. Pretty sure this is a GSP-RM firmware bug, not host-side.

What I found

The heartbeat works fine during normal operation. On my system there are zero heartbeat errors for the first ~30 minutes after boot. The first error shows up at the exact moment the GPU wakes from its first runtime PM sleep (GC6 exit). After that, NV_PGSP_MAILBOX(0) reads 0 on every single wake (13 events over ~2 hours), and it never recovers.

I verified that PTIMER doesn't reset during GC6 by looking at the diff values across wakes. They grow monotonically and track wall-clock uptime at 1:1:

14:50:59  diff=1823s  wall_uptime=1805s  (+18s constant offset from BIOS/PCI init)
14:52:11  diff=1895s  wall_uptime=1877s
15:17:04  diff=3388s  wall_uptime=3370s
15:19:01  diff=3505s  wall_uptime=3487s

So the timer math in _kgspIsHeartbeatTimedOut() is fine, sysTimerOffsetNs is correct (also verified by computing (NvU32)(epoch_at_driver_load / 1e6) which matches heartbeatWithOffsetMs to within 18 seconds). The register genuinely reads zero.

Why

On GC6 exit, gpuExitSuspend() sets bootMode = KGSP_BOOT_MODE_GC6_EXIT. The bootstrap path in kgspBootstrap_TU102() skips init RPCs (line 531, only for NORMAL), skips status queue init (line 564), and just runs Booter Load + waits for GSP_INIT_DONE. GSP-RM is supposed to restore its full context including the heartbeat timer, but apparently it doesn't.

_kgspHeartbeatInit() is purely host-side (just sets timeout thresholds, no RPC to GSP), so the host can't tell GSP-RM to restart heartbeat. The comment at line 5018 says "GSP starts sending heartbeat after rminit" — but the GC6 exit path doesn't go through rminit.

I also noticed that during GC6 exit bootstrap, GSP-RM sends PFM_REQ_HNDLR_STATE_SYNC_CALLBACK (0x101a) while the host is in POLL_BOOTUP context. This event isn't in the allowlist at kernel_gsp.c:1435, so it gets silently dropped with an NV_ASSERT(0). Probably a separate issue but worth noting.

Practical impact

The stuck heartbeat by itself is just log noise, but it means the driver can't distinguish "GSP-RM is fine" from "GSP-RM is actually hung" during power transitions. On my system this interacts badly with dock DP-MST stream drops — when the dock's MST hub glitches, the NVIDIA driver can't properly recover the connector because it thinks GSP-RM is unresponsive. A suspend/resume cycle fixes both (resets GSP state and re-trains the dock link).

nvidia-bug-report.log.gz captured with heartbeat stuck + one external monitor black is attached to the previous comment.

mnencia avatar Apr 03 '26 16:04 mnencia

Update: GC6 exit failure leading to total GPU loss (Xid 79/143/154)

On 2026-04-08 I hit a new, more severe failure that appears related to the GC6/heartbeat issues documented above. During a routine runtime PM GC6 exit, the BIOS ACPI GC6 exit method timed out and the GPU fell completely off the PCI bus, requiring a reboot.

Timeline

Environment: same system as issue opener, now on kernel 6.19.10+deb13-amd64, driver 595.58.03.

Boot (Apr 7 21:35) through three S0ix suspend/resume cycles, the GPU went through multiple GC6 cycles. PFM_REQ_HNDLR assertion failures appeared on some GC6 exits (same as #1064), but no heartbeat timeouts and all cycles completed successfully.

After the third resume (Apr 8 09:07, following a 9.4-hour S0ix sleep), the first runtime PM GC6 exit at 09:50 showed both PFM errors and heartbeat timeout (heartbeat=0, diff=2569s). All subsequent GC6 exits (12:29, 12:56, 13:01) also had heartbeat timeouts. GPU remained functional during this period.

At 13:08, the 5th GC6 exit since the heartbeat broke failed catastrophically:

ACPI Error: Aborting method \_SB.PC00.RP12.PXSX.NC6O due to previous error (AE_AML_LOOP_TIMEOUT) (20250807/psparse-529)
ACPI Error: Aborting method \_SB.PC00.RP12.PXSX.GC6O due to previous error (AE_AML_LOOP_TIMEOUT) (20250807/psparse-529)
ACPI Error: Aborting method \_SB.PC00.RP12.PPON due to previous error (AE_AML_LOOP_TIMEOUT) (20250807/psparse-529)
ACPI Error: Aborting method \_SB.PC00.RP12.NPON due to previous error (AE_AML_LOOP_TIMEOUT) (20250807/psparse-529)
ACPI Error: Aborting method \_SB.PC00.RP12.PXP._ON due to previous error (AE_AML_LOOP_TIMEOUT) (20250807/psparse-529)
nvidia 0000:01:00.0: not ready 1023ms after resume; waiting
[... exponential backoff up to 65535ms ...]
nvidia 0000:01:00.0: not ready 65535ms after resume; giving up
NVRM: GPU0 kbifPollBarFirewallDisengage_GB202: Timeout polling CFG BAR firewall disengage.
NVRM: GPU0 gpuResumeFromStandby_IMPL: Polling BAR0 or BAR firewall timeout
NVRM: Xid (PCI:0000:01:00): 79, GPU has fallen off the bus.
NVRM: Xid (PCI:0000:01:00): 143, Error status 0x65 while polling for FSP boot complete, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff
NVRM: GPU0 _gpuGc6ExitStateLoad: GPU is unable to transition from GC6 to D0 state.
NVRM: Xid (PCI:0000:01:00): 154, GPU recovery action changed from 0x0 (None) to 0x1 (GPU Reset Required)

All registers read 0xffffffff. The GPU was permanently unreachable until reboot.

What's new vs previous reports on this issue

  1. ACPI NC6O method timeout: the BIOS GC6 exit method (\_SB.PC00.RP12.PXSX.NC6O) itself timed out with AE_AML_LOOP_TIMEOUT. This is the BIOS firmware polling the GPU hardware during GC6 power-on and getting no response. This has not been reported before on this issue.

  2. Total GPU loss: previous reports showed heartbeat stuck but GPU functional. Here the GPU falls off the PCI bus entirely (Xid 79), FSP fails to boot (Xid 143), and reset is required but impossible (Xid 154).

  3. Heartbeat only broke after long S0ix sleep: in this session, the pre-suspend GC6 cycles (7 cycles over ~47 minutes) had PFM assertion errors but working heartbeat. The heartbeat only broke on the first GC6 exit after an overnight (9.4h) S0ix resume. This differs slightly from my earlier reports where the heartbeat broke on the first GC6 exit after a fresh boot.

What's NOT proven

I cannot prove that the stuck heartbeat (Part A) caused the ACPI GC6 exit failure (Part B). Four GC6 cycles succeeded with heartbeat=0 before the fifth one failed catastrophically. The correlation is suggestive (GSP in degraded state after broken heartbeat may eventually fail to respond to the BIOS GC6 polling), but there could be an independent trigger.

Side note: kernel UBSAN bug

The failed GC6 exit also triggered a kernel bug: UBSAN array-index-out-of-bounds in pci_restore_iov_state() (drivers/pci/iov.c:948). When the GPU config space reads all 0xffffffff, sriov_restore_vf_rebar_state() extracts bar_idx=7 from the garbage register value and accesses barsz[7] (array size is 6). This is a missing bounds check in the recently-added VF resizable BAR restore code.

Fix submitted upstream: https://lore.kernel.org/linux-pci/[email protected]/

mnencia avatar Apr 08 '26 16:04 mnencia

New observation: stuck GSP heartbeat prevents DPMS-triggered display recovery

Today I experienced a dock MST stream drop on DP-8 (Philips PHL 234E5 via Dell WD19DC DP-MST hub). The usual workaround for this dock issue is a DPMS off/on cycle via Mutter's PowerSaveMode D-Bus property, which normally forces the NVIDIA driver to tear down and re-establish the MST streams.

This time, the DPMS toggle had no effect. The driver produced zero modeset activity in dmesg, it silently ignored the DPMS state change entirely.

Timeline (all times CEST, 2026-04-09, approximate, dmesg wall-clock timestamps shifted ~13h due to suspend accounting bug):

  • ~02:57 (dmesg) -- System resumed from overnight suspend. nvidia-modeset loaded. DP-8 already showing "DPCD revision 0.0" on initial probe (dock MST hub flaky for this port from the start).
  • ~04:43 (dmesg) -- First GSP heartbeat timeout (heartbeat=0, never recovered).
  • Morning -- Multiple GC6 cycles, all with heartbeat stuck at 0. PFM_REQ_HNDLR_STATE_SYNC_CALLBACK (0x101a) dropped on every GC6 exit. DP-8 getting DPCD 0.0 on most cycles.
  • ~10:05 -- System resumed from suspend. Two more GC6 cycles within minutes.
  • ~10:10 -- DP-8 (left monitor) went black. DRM state: enabled=enabled, dpms=On, status=connected. EDID readable via sysfs. Mutter PowerSaveMode=0. Classic dock MST stream drop.
  • ~10:15 -- Attempted DPMS toggle (PowerSaveMode i 3, sleep 5, PowerSaveMode i 0). Zero modeset/DP/DPCD messages in dmesg. All screens blanked and returned, but DP-8 remained black.
  • ~10:20 -- Physically disconnected dock USB-C cable. Monitor recovered on reconnect (though dock still returned DPCD 0.0 for DP-8 during re-enumeration, it eventually recovered after multiple retries).

DRM connector state captured during live failure (DP-8):

enabled: enabled
dpms: On
status: connected
EDID: readable (Philips PHL 234E5, serial UHB1649013652)

GPU state during failure:

nvidia-smi: functional, P5, 48C, 12W
GSP heartbeat: stuck at 0 (heartbeatWithOffsetMs=1896324325, not advancing)
Heartbeat diff growing: 2966404 -> 3183363 -> 3676788 (ms)

DDC/CI (DP-7, right monitor, video working): DDC/CI at I2C 0x37 was also unresponsive on DP-7, suggesting broader dock I2C forwarding degradation, even though video was flowing on that port.

Analysis: The DPMS toggle normally works for this dock issue because it forces the NVIDIA driver to cycle the display pipeline, which triggers MST stream re-negotiation. With GSP-RM unresponsive (heartbeat stuck), the driver appears unable to process the DPMS state change, it silently does nothing. This makes the stuck heartbeat a functional blocker for display recovery, not just a log-spam issue.

Previously documented recovery paths and their interaction with stuck GSP:

  • DPMS toggle: FAILS (driver ignores it)
  • Suspend/resume: works (resets GSP state + MST re-enumeration)
  • Dock cable reconnect: works (bypasses driver, MST hub hardware reset)

nvidia-bug-report.log.gz captured during the live failure is attached.

mnencia avatar Apr 09 '26 09:04 mnencia

@Binary-Eater -- could this be routed to the GSP-RM firmware team? My analysis in the April 3 comment traces the root cause to GSP-RM firmware not restoring heartbeat writes to NV_PGSP_MAILBOX(0) after GC6 exit. The host-side driver code is correct (PTIMER offsets, timeout math all verified). The issue is that the GC6 exit bootstrap path (KGSP_BOOT_MODE_GC6_EXIT) doesn't go through rminit, and GSP-RM never resumes heartbeat writes after context restore.

Since your March 17 reply, the situation has escalated significantly:

  • April 8: stuck heartbeat preceded a fatal GC6 exit failure. ACPI \_SB.PC00.RP12.PXSX.NC6O timed out (AE_AML_LOOP_TIMEOUT), GPU fell off the PCI bus (Xid 79), FSP failed to boot (Xid 143). Full details in my April 8 comment. Four GC6 cycles succeeded with heartbeat=0 before the fifth killed the GPU.

  • April 9: stuck heartbeat blocks DPMS-triggered display recovery. When the dock MST hub drops a video stream (separate hardware issue), the normal DPMS off/on workaround produces zero modeset activity when GSP heartbeat is stuck. The driver silently ignores the DPMS state change. Only suspend/resume or physical dock reconnect can recover.

  • 4 other users confirmed the same heartbeat symptoms across RTX 3060, 3080, 4050, and my RTX PRO 1000 Blackwell, on both 595.45.04 and 595.58.03.

Also wondering: is the internal fix for #1055 (bug 5947370) related to the GC6 exit path? If GSP-RM's display recovery is being improved there, the heartbeat restore might be in the same area.

nvidia-bug-report.log.gz files are attached to the April 3, April 8, and April 9 comments above.

mnencia avatar Apr 14 '26 12:04 mnencia

Same issue on RTX 5070 desktop, CachyOS kernel 6.19.12, nvidia-open 595.58.03, GNOME 50 Wayland

tomasvana10 avatar Apr 15 '26 14:04 tomasvana10

Same issue on RTX 3050 CachyOS kernel 7.0.0-1, nvidia-open 595.58.03-2, hyprland 0.54.3-2.1

ali-afk avatar Apr 20 '26 10:04 ali-afk

Same issue on g14 2023 laptop, Hybrid Mode, RTX 4050, kernel: 7.0.0-1-cachyos, nvidia-open: 595.58.03, GNOME 50 Wayland

sudo dmesg | grep -i "nvidia|gsp"

[    1.229812] nvidia: loading out-of-tree module taints kernel.
[    1.378099] nvidia-nvlink: Nvlink Core is being initialized, major device number 239
[    1.383668] nvidia 0000:01:00.0: enabling device (0000 -> 0003)
[    1.383856] nvidia 0000:01:00.0: vgaarb: VGA decodes changed: olddecodes=io+mem,decodes=none:owns=none
[    1.433666] NVRM: loading NVIDIA UNIX Open Kernel Module for x86_64  595.58.03  Release Build  (notroot@)  Fri Apr 17 12:04:07 UTC 2026
[    1.481665] nvidia-modeset: Loading NVIDIA UNIX Open Kernel Mode Setting Driver for x86_64  595.58.03  Release Build  (notroot@)  Fri Apr 17 12:04:01 UTC 2026
[    1.548475] [drm] [nvidia-drm] [GPU ID 0x00000100] Loading driver
[    3.008827] nvidia-modeset: nvidia-modeset: ACPI reported no NVIDIA native backlight available; attempting to use ACPI backlight.
[    3.012106] nvidia-modeset: WARNING: GPU:0: Unable to read EDID for display device DP-2
[    3.024533] nvidia-modeset: WARNING: GPU:0: Unable to read EDID for display device DP-2
[    3.028840] [drm] Initialized nvidia-drm 0.0.0 for 0000:01:00.0 on minor 1
[    3.029295] nvidia 0000:01:00.0: [drm] Cannot find any crtc or sizes
[    7.761604] input: HDA NVidia HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:01.1/0000:01:00.1/sound/card0/input24
[    7.761680] input: HDA NVidia HDMI/DP,pcm=7 as /devices/pci0000:00/0000:00:01.1/0000:01:00.1/sound/card0/input25
[    7.761737] input: HDA NVidia HDMI/DP,pcm=8 as /devices/pci0000:00/0000:00:01.1/0000:01:00.1/sound/card0/input26
[    7.761788] input: HDA NVidia HDMI/DP,pcm=9 as /devices/pci0000:00/0000:00:01.1/0000:01:00.1/sound/card0/input27
[   51.724982] NVRM: _kgspIsHeartbeatTimedOut: Heartbeat timed out, currentTimeMs 3033795358 heartbeat 0 heartbeatWithOffsetMs 0 diff 3033795358 timeout 5200
[   51.724986] NVRM: _kgspRpcRecvPoll: GSP RM heartbeat timed out

The above logs are right after booting

This issue causes disabling the gpu to fail and crash

Apr 22 16:14:53 linux-g14 sudo[5970]:    crypticnoodle : TTY=pts/0 ; PWD=/home/crypticnoodle ; USER=root ; COMMAND=/usr/bin/tee /sys/class/firmware-attributes/asus-armoury/attributes/dgpu_disable/current_value
Apr 22 16:14:53 linux-g14 sudo[5970]: pam_unix(sudo:session): session opened for user root(uid=0) by crypticnoodle(uid=1000)
Apr 22 16:14:53 linux-g14 asusd[1313]: [DEBUG asusd::asus_armoury] dgpu_disable changed
Apr 22 16:14:54 linux-g14 kernel: NVRM: _kgspProcessRpcEvent: Attempted to process RPC event from GPU0: 0x101a (PFM_REQ_HNDLR_STATE_SYNC_CALLBACK) during bootup without API lock
Apr 22 16:14:54 linux-g14 kernel: NVRM: nvAssertFailedNoLog: Assertion failed: 0 @ kernel_gsp.c:1446
Apr 22 16:14:54 linux-g14 kernel: NVRM: _kgspProcessRpcEvent: Attempted to process RPC event from GPU0: 0x101a (PFM_REQ_HNDLR_STATE_SYNC_CALLBACK) during bootup without API lock
Apr 22 16:14:54 linux-g14 kernel: NVRM: nvAssertFailedNoLog: Assertion failed: 0 @ kernel_gsp.c:1446
Apr 22 16:14:54 linux-g14 kernel: NVRM: _kgspIsHeartbeatTimedOut: Heartbeat timed out, currentTimeMs 3033201586 heartbeat 0 heartbeatWithOffsetMs 0 diff 3033201586 timeout 5200
Apr 22 16:14:54 linux-g14 kernel: NVRM: _kgspRpcRecvPoll: GSP RM heartbeat timed out
Apr 22 16:14:55 linux-g14 kernel: snd_hda_intel 0000:01:00.1: GPU sound probed, but not operational: please add a quirk to driver_denylist
Apr 22 16:14:55 linux-g14 kernel: [drm] [nvidia-drm] [GPU ID 0x00000100] Removing device
Apr 22 16:14:55 linux-g14 kernel: [drm] [nvidia-drm] [GPU ID 0x00000100] Unloading driver
Apr 22 16:14:55 linux-g14 gnome-shell[3387]: Failed to reopen '/dev/dri/card1': Could not get device info for path /dev/dri/card1: No such file or directory
Apr 22 16:14:55 linux-g14 gnome-shell[3387]: Failed to reopen '/dev/dri/card1': Could not get device info for path /dev/dri/card1: No such file or directory
Apr 22 16:14:55 linux-g14 kernel: nvidia-modeset: nvidia-modeset: ACPI reported no NVIDIA native backlight available; attempting to use ACPI backlight.
Apr 22 16:14:55 linux-g14 kernel: NVRM: Attempting to remove device 0000:01:00.0 with non-zero usage count!
Apr 22 16:14:55 linux-g14 gnome-shell[3387]: Overwriting existing binding of keysym 32 with keysym 32 (keycode b).
Apr 22 16:14:55 linux-g14 gnome-shell[3387]: Overwriting existing binding of keysym 31 with keysym 31 (keycode a).
Apr 22 16:14:55 linux-g14 gnome-shell[3387]: Overwriting existing binding of keysym 35 with keysym 35 (keycode e).
Apr 22 16:14:55 linux-g14 gnome-shell[3387]: Overwriting existing binding of keysym 36 with keysym 36 (keycode f).
Apr 22 16:14:55 linux-g14 gnome-shell[3387]: Overwriting existing binding of keysym 33 with keysym 33 (keycode c).
Apr 22 16:14:55 linux-g14 gnome-shell[3387]: Overwriting existing binding of keysym 35 with keysym 35 (keycode e).
Apr 22 16:14:55 linux-g14 gnome-shell[3387]: Overwriting existing binding of keysym 37 with keysym 37 (keycode 10).
Apr 22 16:14:55 linux-g14 gnome-shell[3387]: Overwriting existing binding of keysym 36 with keysym 36 (keycode f).
Apr 22 16:14:55 linux-g14 gnome-shell[3387]: Overwriting existing binding of keysym 34 with keysym 34 (keycode d).
Apr 22 16:14:55 linux-g14 gnome-shell[3387]: Overwriting existing binding of keysym 37 with keysym 37 (keycode 10).
Apr 22 16:14:55 linux-g14 gnome-shell[3387]: Overwriting existing binding of keysym 34 with keysym 34 (keycode d).
Apr 22 16:14:55 linux-g14 gnome-shell[3387]: Overwriting existing binding of keysym 32 with keysym 32 (keycode b).
Apr 22 16:14:55 linux-g14 gnome-shell[3387]: Overwriting existing binding of keysym 31 with keysym 31 (keycode a).
Apr 22 16:14:55 linux-g14 gnome-shell[3387]: Overwriting existing binding of keysym 39 with keysym 39 (keycode 12).
Apr 22 16:14:55 linux-g14 gnome-shell[3387]: Overwriting existing binding of keysym 38 with keysym 38 (keycode 11).
Apr 22 16:14:55 linux-g14 gnome-shell[3387]: Overwriting existing binding of keysym 33 with keysym 33 (keycode c).
Apr 22 16:14:55 linux-g14 gnome-shell[3387]: Overwriting existing binding of keysym 39 with keysym 39 (keycode 12).
Apr 22 16:14:55 linux-g14 gnome-shell[3387]: Overwriting existing binding of keysym 38 with keysym 38 (keycode 11).
Apr 22 16:15:23 linux-g14 kernel: ACPI Error: Aborting method \_SB.WAT1 due to previous error (AE_AML_LOOP_TIMEOUT) (20251212/psparse-531)
Apr 22 16:15:23 linux-g14 kernel: ACPI Error: Aborting method \_SB.PCI0.SBRG.UMAC due to previous error (AE_AML_LOOP_TIMEOUT) (20251212/psparse-531)
Apr 22 16:15:23 linux-g14 sudo[5970]: pam_unix(sudo:session): session closed for user root
Apr 22 16:15:23 linux-g14 kernel: ACPI Error: Aborting method \_SB.ATKD.WMNB due to previous error (AE_AML_LOOP_TIMEOUT) (20251212/psparse-531)
Apr 22 16:15:23 linux-g14 kernel: asus_armoury: Failed to set current_value: -5

cryptic-noodle avatar Apr 22 '26 11:04 cryptic-noodle

I reproduce (and am sad) on RTX 4090 Laptop GPU, Ubuntu kernel 7.0.0-15-generic, nvidia-open 595.58.03, GNOME 50.1 Wayland.

khoek avatar May 02 '26 23:05 khoek

Update on the 595.71.05 test, this time with the NVreg_DynamicPowerManagement=0x00 workaround removed. Same RTX PRO 1000 Blackwell laptop, ~1.5 hours uptime.

What is not happening: no _kgspIsHeartbeatTimedOut, no GSP RM heartbeat timed out, no Xid. The original cold-boot heartbeat-stuck-at-0 does not reproduce. One s2idle suspend/resume cycle was clean modulo two RmHandleDNotifierEvent status=0x11 errors that have appeared on every 595.71.05 resume I have observed on this hardware (likely separate ACPI noise).

What is happening, on every runtime D3 wake observed today (n=2): a paired assertion at kernel_gsp.c:1447 (line 1446 on 595.58.03):

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

Two pairs ~200 ms apart per wake, surrounding the re-enable of the GPU's HDA controller. 4 assertions across 2 wakes. A few minutes after the second wake the dock's MST stream stalled on DP-8 (DRM stayed enabled/connected/dpms On while no signal reached the panel; recovered by a software modeset cycle, DPMS toggle and/or VT switch). I cannot claim the assertion caused the stall: the first wake had the same assertion pattern with no observable monitor effect.

@cryptic-noodle's Apr 22 log on RTX 4050 has the same assertion (line 1446 on 595.58.03) at 16:14:54 immediately followed by _kgspIsHeartbeatTimedOut and _kgspRpcRecvPoll: GSP RM heartbeat timed out. The temporal ordering rules out the heartbeat timeout causing the assert; the assert either contributes to the eventual wedge or both are downstream of an earlier root cause not visible in the log.

Mechanism, from the open kernel source. While GSP is in KGSP_RPC_EVENT_HANDLER_CONTEXT_POLL_BOOTUP without the RMAPI lock, _kgspProcessRpcEvent only forwards a small whitelist: UCODE_LIBOS_PRINT, GSP_LOCKDOWN_NOTICE, GSP_POST_NOCAT_RECORD, GSP_INIT_DONE, OS_ERROR_LOG, GSP_LOAD_EXEC_GENERIC_BOOTLOADER, GSP_LOAD_EXEC_HS_BINARY. Non-whitelisted RPCs hit NV_ASSERT(0) and are dropped. PFM_REQ_HNDLR_STATE_SYNC_CALLBACK (0x101a) is the platform-request-handler sensor state sync per the source (GSP-RM to CPU-RM, sensor limits including SMBPBI), and is not on the list. On this hardware the platform handler fires it inside the bootup window on every observed D3 wake.

Comparison vs the 2026-04-29 bug-report (same 595.71.05 driver, workaround active): zero kernel_gsp.c:1447 occurrences. The workaround appears to sidestep the bug by preventing runtime D3 transitions. I can attach both bug-reports.

Two candidate fixes from the outside, please ignore if obviously wrong:

  1. If 0x101a is safe to dispatch without the API lock, add it to the whitelist in _kgspProcessRpcEvent.
  2. Defer the platform handler's STATE_SYNC_CALLBACK until after GSP_INIT_DONE.

I cannot tell from outside whether either addresses the MST stall, but they would clean up the most reliable error fingerprint visible on D3 wake.

nvidia-bug-report.log.2026-04-29.gz nvidia-bug-report.log.gz

mnencia avatar May 04 '26 10:05 mnencia

Quick correction with more data. After ~3.5 hours uptime and 14 runtime D3 wakes, the assert rate is 9/14 ≈ 64%, not "every wake". The pattern includes both a cluster of 4 consecutive wakes (12:44-12:50, gaps of 11s-5min) with no asserts at all, and a cluster of 7 of 8 consecutive wakes producing asserts. So 0x101a hitting the bootup window is timing-dependent, probably driven by the platform handler's own sync schedule rather than every wake.

The fingerprint (paired _kgspProcessRpcEvent ... 0x101a + kernel_gsp.c:1447 ~200 ms apart) and the overall reproduction story stand. Just wanted to correct the implied "every wake" framing in the previous comment.

mnencia avatar May 04 '26 12:05 mnencia

Tracking this issue in bug 6140605.

Binary-Eater avatar May 05 '26 05:05 Binary-Eater

Another datapoint, with two pieces worth flagging: a clean A/B against the workaround over weeks of real usage, and a more severe downstream failure mode of the same kernel_gsp.c:1447 assertion.

Driver 595.71.05, kernel 6.19.13+deb13-amd64 (Debian backports), RTX 5070-class on a Dell Pro Max 16 (same hardware/config as my previous comment).

A/B over weeks of usage

  • With runtime PM disabled (NVreg_DynamicPowerManagement=0x00): no freezes, no GPU bus drops over weeks of normal daily use. MST stalls on the dock-attached display did still occur occasionally, but they were always recoverable via DPMS toggle; the system stayed responsive.
  • After re-enabling default fine-grained PM (NVreg_DynamicPowerManagement unset, runtime value 3) on 2026-04-29: ran for about a week, then a hard, unrecoverable system freeze on 2026-05-07 requiring sysrq REISUB.

I would not call one freeze in eight days statistically meaningful on its own, but stacked against weeks of clean operation under the workaround it does suggest fine-grained runtime PM (and the runtime D3 wakes it produces) is what introduces the catastrophic failure mode, not just a contributing factor.

Upstream marker (familiar)

May 07 12:34:08 rigel kernel: nvidia 0000:01:00.0: Enabling HDA controller
May 07 12:34:08 rigel kernel: NVRM: GPU0 _kgspProcessRpcEvent: Attempted to process RPC event from GPU0: 0x101a (PFM_REQ_HNDLR_STATE_SYNC_CALLBACK) during bootup without API lock
May 07 12:34:08 rigel kernel: NVRM: GPU0 nvAssertFailedNoLog: Assertion failed: 0 @ kernel_gsp.c:1447
May 07 12:34:09 rigel kernel: NVRM: GPU0 _kgspProcessRpcEvent: Attempted to process RPC event from GPU0: 0x101a (PFM_REQ_HNDLR_STATE_SYNC_CALLBACK) during bootup without API lock
May 07 12:34:09 rigel kernel: NVRM: GPU0 nvAssertFailedNoLog: Assertion failed: 0 @ kernel_gsp.c:1447

Same paired-assert fingerprint as before, surrounding Enabling HDA controller (runtime D3 wake on the discrete GPU).

New downstream signature: DIFR pmlock deadlock

40 seconds later, the kernel hung-task watchdog fires:

May 07 12:38:20 rigel kernel: INFO: task KMS thread:23811 blocked for more than 120 seconds.
May 07 12:38:20 rigel kernel: task:KMS thread      state:D stack:0     pid:23811 tgid:23796 ppid:20901  task_flags:0x400040 flags:0x00080000
May 07 12:38:20 rigel kernel: Call Trace:
May 07 12:38:20 rigel kernel:  <TASK>
May 07 12:38:20 rigel kernel:  __schedule+0x4ed/0xfa0
May 07 12:38:20 rigel kernel:  schedule+0x27/0xd0
May 07 12:38:20 rigel kernel:  schedule_timeout+0xbd/0x100
May 07 12:38:20 rigel kernel:  __down_common+0x181/0x2a0
May 07 12:38:20 rigel kernel:  down+0x53/0x70
May 07 12:38:20 rigel kernel:  nvkms_ioctl_from_kapi_try_pmlock+0x4b/0xa0 [nvidia_modeset]
May 07 12:38:20 rigel kernel:  ApplyModeSetConfig+0x4db/0xce0 [nvidia_modeset]
May 07 12:38:20 rigel kernel:  nv_drm_atomic_apply_modeset_config+0x768/0x8b0 [nvidia_drm]
May 07 12:38:20 rigel kernel:  drm_atomic_check_only+0x61d/0xa90 [drm]
May 07 12:38:20 rigel kernel:  drm_atomic_commit+0x71/0xe0 [drm]
May 07 12:38:20 rigel kernel:  drm_mode_atomic_ioctl+0xac9/0xd00 [drm]
May 07 12:38:20 rigel kernel:  drm_ioctl_kernel+0xae/0x100 [drm]
May 07 12:38:20 rigel kernel:  drm_ioctl+0x28f/0x520 [drm]
May 07 12:38:20 rigel kernel:  __x64_sys_ioctl+0x96/0xe0
May 07 12:38:20 rigel kernel:  do_syscall_64+0x85/0x5f0
May 07 12:38:20 rigel kernel:  entry_SYSCALL_64_after_hwframe+0x76/0x7e

That is Mutter's KMS thread, blocked on the pmlock semaphore while doing an atomic modeset on card1 (nvidia-drm). The kernel correctly identifies the holder:

May 07 12:38:20 rigel kernel: INFO: task KMS thread:23811 blocked on a semaphore likely last held by task nvidia-modeset/:1004
May 07 12:38:20 rigel kernel: task:nvidia-modeset/ state:R  running task     stack:0     pid:1004  tgid:1004  ppid:2      task_flags:0x208040 flags:0x00080000
May 07 12:38:20 rigel kernel: Call Trace:
May 07 12:38:20 rigel kernel:  <TASK>
May 07 12:38:20 rigel kernel:  ? __schedule+0x4f5/0xfa0
May 07 12:38:20 rigel kernel:  ? nvWriteGpEntry+0xba/0x3b0 [nvidia_modeset]
May 07 12:38:20 rigel kernel:  ? nvPushSetObject+0xb5/0x190 [nvidia_modeset]
May 07 12:38:20 rigel kernel:  ? nvPushKickoff+0x28/0x50 [nvidia_modeset]
May 07 12:38:20 rigel kernel:  ? PrefetchHelperSurfaceEvo+0x45a/0x640 [nvidia_modeset]
May 07 12:38:20 rigel kernel:  ? nvDIFRPrefetchSurfaces+0x130/0x1f0 [nvidia_modeset]
May 07 12:38:20 rigel kernel:  ? DifrPrefetchEventDeferredWork+0x16/0x30 [nvidia_modeset]
May 07 12:38:20 rigel kernel:  ? nvkms_kthread_q_callback+0xdb/0x160 [nvidia_modeset]
May 07 12:38:20 rigel kernel:  ? _main_loop+0x92/0x140 [nvidia_modeset]
May 07 12:38:20 rigel kernel:  ? kthread+0xfc/0x240
May 07 12:38:20 rigel kernel:  ? ret_from_fork+0x254/0x290
May 07 12:38:20 rigel kernel:  ? ret_from_fork_asm+0x1a/0x30
May 07 12:38:20 rigel kernel:  </TASK>

So the holder is nvidia-modeset/ (kthread pid 1004), wedged inside a DIFR (Display Idle Frame Refresh) prefetch GPU push:

DifrPrefetchEventDeferredWork
  -> nvDIFRPrefetchSurfaces
     -> PrefetchHelperSurfaceEvo
        -> nvPushKickoff
           -> nvWriteGpEntry

The push channel never returns. Hung-task reports continued at 120 / 241 / 362 / ... / 1208 seconds before Future hung task reports are suppressed. From userspace this presented as a total Wayland freeze (gsd-power, evolution, every DBus client around org.gnome.Mutter.DisplayConfig cascading into timeouts). DPMS toggles, VT switch, dock yank, none of it could recover the display because the compositor was wedged inside the kernel. sysrq REISUB at 13:21:41 was the only way out.

Why this matters relative to my earlier reports

The post-failure capture I attached on 2026-05-04 showed the assertion preceding an MST stall on a dock-attached display. That signature is recoverable: DRM connector stays enabled/connected/dpms On, monitor can be brought back via DPMS toggle.

This signature is qualitatively different. The pmlock is held by nvidia-modeset/ indefinitely, so nv_drm_atomic_apply_modeset_config from any client blocks forever. There is no graceful recovery path from userspace.

I cannot prove the assertion caused the DIFR push to hang, but the temporal ordering is the same as the MST-stall case: GSP RPC assertion fires on a runtime D3 wake at 12:34:08, DIFR prefetch path wedges shortly after. If the dropped 0x101a (PFM_REQ_HNDLR_STATE_SYNC_CALLBACK) event is leaving GSP in a state where subsequent push channel work cannot complete, that would explain both signatures (the MST stall as one consequence, the DIFR push hang as another).

On capturing more

Happy to attach a journal slice from the affected boot if useful (the dmesg around the assertion, the full hung-task reports, etc.). A fresh nvidia-bug-report.sh post-REISUB does not seem worth attaching here: by the time the system is back up the GPU and GSP have been reinitialized, so it would only capture static config you already have. Let me know what would be most useful.

mnencia avatar May 07 '26 13:05 mnencia