[GH-ISSUE #311] GPU falls off the bus (Xid 79) after S3 resume on an RTX 3080 20 GB, ~1 in 25 resumes; resume then hangs in nvidia_modeset #272

Open
opened 2026-11-07 17:54:34 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @nielsfranke on GitHub (Nov 6, 2026).
Original GitHub issue: https://github.com/Zagitta/gpu-unlock/issues/311

Setup

  • 4x RTX 3080 20 GB (GA102, PCI 07:00.0, 08:00.0, 42:00.0, 43:00.0), Threadripper 1920X, Ubuntu 24.04, kernel 6.8.0-139-generic
  • NVIDIA open kernel module 595.84 with gpu-unlock at commit af28cbb (assets gpu-unlock/610.43.03/gsp_ga10x.bin and v67-ga102-610.43.03.bin in the log), all four cards unlocked
  • The machine suspends to S3 when idle and is woken by WoL, a few times a day. Since installing gpu-unlock on 2026-10-25 there were 25 resumes in one boot (12 days uptime)

What happened

  • Resume number 25 (S3 for about 12 minutes): on GPU 1 (08:00.0) the gpu-unlock sequence ran through normally (selector write, PCIe FLR returned result=0, post-FLR GFW result error=0, engine reset released, DMA masks restored).
  • About 3 seconds later the driver reported:
NVRM: Xid (PCI:0000:08:00): 79, GPU has fallen off the bus.
NVRM: Xid (PCI:0000:08:00): 154, GPU recovery action changed from 0x0 (None) to 0x1 (GPU Reset Required)
NVRM: _issueRpcAndWait: rpcSendMessage failed with status 0x0000000f ...   (repeated hundreds of times)
  • After that a slab corruption BUG in the resume path (__slab_free, call trace through nvKmsResume / nvidia_modeset_resume / nv_set_system_power_state / nv_procfs_write_suspend), nvidia-sleep.sh resume stuck in D state, nvidia-smi hung, and systemctl poweroff could not complete. Only sync + systemctl poweroff -f and a manual power cycle recovered the machine.

What looks different from the 24 good resumes

  • Nothing obvious at entry: the card's ss0 value at resume entry (0x75115113) is one that occurred in many successful resumes of the same card. No PCIe AER messages in the log.

Questions

  • Is a card not coming back after the FLR + GSP firmware swap on resume something you have seen? Is there a known race or a delay that is needed between the FLR and the driver's own GSP start?
  • Is there a resume path that avoids the FLR, or a debug option that logs more around that moment?
  • Is the 2.0 rewrite expected to change this?

Logs (kernel messages of the failed resume and of a good resume of the same boot, for comparison; GPU UUID, module list and unrelated device lines removed): https://gist.github.com/nielsfranke/1a6a4a994b0ce9d4ec1112366ef86c6a

Related: #43 reviews this resume path from the source and notes there is no hardware report of a failed resume yet; this is one. #260 reports Xid 79 after a successful unlock on another setup, and #137 a hard lock in 1 of 5 unlocked boots; this one happens on resume rather than on boot.

Originally created by @nielsfranke on GitHub (Nov 6, 2026). Original GitHub issue: https://github.com/Zagitta/gpu-unlock/issues/311 **Setup** - 4x RTX 3080 20 GB (GA102, PCI 07:00.0, 08:00.0, 42:00.0, 43:00.0), Threadripper 1920X, Ubuntu 24.04, kernel 6.8.0-139-generic - NVIDIA open kernel module 595.84 with gpu-unlock at commit af28cbb (assets `gpu-unlock/610.43.03/gsp_ga10x.bin` and `v67-ga102-610.43.03.bin` in the log), all four cards unlocked - The machine suspends to S3 when idle and is woken by WoL, a few times a day. Since installing gpu-unlock on 2026-10-25 there were 25 resumes in one boot (12 days uptime) **What happened** - Resume number 25 (S3 for about 12 minutes): on GPU 1 (08:00.0) the gpu-unlock sequence ran through normally (selector write, PCIe FLR returned result=0, post-FLR GFW result error=0, engine reset released, DMA masks restored). - About 3 seconds later the driver reported: ``` NVRM: Xid (PCI:0000:08:00): 79, GPU has fallen off the bus. NVRM: Xid (PCI:0000:08:00): 154, GPU recovery action changed from 0x0 (None) to 0x1 (GPU Reset Required) NVRM: _issueRpcAndWait: rpcSendMessage failed with status 0x0000000f ... (repeated hundreds of times) ``` - After that a slab corruption BUG in the resume path (`__slab_free`, call trace through `nvKmsResume` / `nvidia_modeset_resume` / `nv_set_system_power_state` / `nv_procfs_write_suspend`), `nvidia-sleep.sh resume` stuck in D state, `nvidia-smi` hung, and `systemctl poweroff` could not complete. Only `sync` + `systemctl poweroff -f` and a manual power cycle recovered the machine. **What looks different from the 24 good resumes** - Nothing obvious at entry: the card's `ss0` value at resume entry (`0x75115113`) is one that occurred in many successful resumes of the same card. No PCIe AER messages in the log. **Questions** - Is a card not coming back after the FLR + GSP firmware swap on resume something you have seen? Is there a known race or a delay that is needed between the FLR and the driver's own GSP start? - Is there a resume path that avoids the FLR, or a debug option that logs more around that moment? - Is the 2.0 rewrite expected to change this? **Logs** (kernel messages of the failed resume and of a good resume of the same boot, for comparison; GPU UUID, module list and unrelated device lines removed): https://gist.github.com/nielsfranke/1a6a4a994b0ce9d4ec1112366ef86c6a **Related:** #43 reviews this resume path from the source and notes there is no hardware report of a failed resume yet; this is one. #260 reports Xid 79 after a successful unlock on another setup, and #137 a hard lock in 1 of 5 unlocked boots; this one happens on resume rather than on boot.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Zagitta/gpu-unlock#272
No description provided.