595.99.02: GSP RPC timeout during runtime D3 entry under host OOM → Xid 119 → Xid 154, dGPU stuck powered in 'GPU Reset Required' (RTX 3050 Ti Mobile, Optimus)
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 32/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- c, linux
- Área
- backend, operating-systems
Línea de trabajo
Start with the kernel log sequence around _issueRpcAndWait, _threadNodeCheckTimeout, and _gpushareddataSendDataPollRpc in kernel_gsp.c, especially the reported assertion at line 2727. Compare the GSP RPC timeout and runtime D3 transition with related issues #1271, #1045, and #1473; reproduce steps are documented but the failure is nondeterministic. Done means the driver recovers from the timeout or permits GPU reset or D3 entry without requiring a reboot.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
NVIDIA Open GPU Kernel Modules Version
595.99.02
Operating System and Version
Ubuntu (kernel 7.0.0-43-generic, PREEMPT(lazy))
Hardware: GPU
GeForce RTX 3050 Ti Mobile (GA107M, 10de:25a0) — Dell laptop, Optimus (Intel TigerLake-H iGPU + NVIDIA dGPU, prime-select on-demand)
Describe the bug
On a hybrid laptop with fine-grained runtime D3 enabled (NVreg_DynamicPowerManagement=0x02), a global OOM event (kernel OOM killer, heavy I/O thrashing) happened while the dGPU was being runtime-suspended. The GSP stopped answering RPCs and the GPU ended in GPU Reset Required (Xid 119 → Xid 154). It never recovers:
nvidia-smireportsERR!/GPU requires resetfor temperature, power and perf state;- the GPU stays
runtime_status = activeand can no longer enter D3, so the laptop runs hot with fans at max; - the restarted GNOME Shell (Wayland, holds
/dev/nvidiactl) fails to create VA spaces on it; - the kernel log is flooded with
NV_ERR_RESET_REQUIREDfrom_gpushareddataSendDataPollRpcevery ~0.4 s.
Only a reboot recovers the GPU (no GPU reset possible while the compositor holds it).
Timeline (kernel log):
14:55:56 Out of memory: Killed process (VBoxHeadless) ...
14:55:56 NVRM: _threadNodeCheckTimeout: Timeout was set to: 4000 msecs!
14:56:04 NVRM: nvAssertFailedNoLog: Assertion failed: !pKernelGsp->bPollingForRpcResponse @ kernel_gsp.c:2727
14:56:04 NVRM: _issueRpcAndWait: rpcRecvPoll failed with status 0x00000040 for fn 76 sequence 640420!
14:56:04 NVRM: Xid (PCI:0000:01:00): 119, Timeout after 14s of waiting for RPC response from GPU0 GSP! Expected function 4097 (GSP_INIT_DONE) sequence 0 (0x20800a70 0x0).
RPC history (CPU -> GSP):
0 76 GSP_RM_CONTROL 640420 0x20800a70 (actively polling)
-1 47 UNLOADING_GUEST_DRIVER 640419 244397us
-2 10 FREE 640418
14:56:04 NVRM: gpuHandleSanityCheckRegReadError_GM107: Possible bad register read: addr: 0x111404, regvalue: 0xbadf5720
14:56:11 NVRM: kperfPerfSetPowerstate_KERNEL: NV2080_CTRL_CMD_PERF_SET_POWERSTATE RPC failed
14:56:17 NVRM: Xid (PCI:0000:01:00): 119, pid=..., name=nvidia-smi, Timeout after 16s of waiting for RPC response from GPU0 GSP! Expected function 76 (GSP_RM_CONTROL) sequence 640423 (0x20800a70 0x0).
14:56:17 NVRM: Assertion failed: GPU marked for reset @ kernel_gsp.c:2612
14:56:17 NVRM: Xid (PCI:0000:01:00): 154, GPU recovery action changed from 0x0 (None) to 0x1 (GPU Reset Required)
14:56:17 NVRM: mmuWalkUnmap: Failed to unmap VA Range ... Status = 0x00000040 (x75)
14:56:19 NVRM: vaspaceapiConstruct_IMPL: Could not construct VA space. Status 1a (x6, new gnome-shell)
14:56:22 NVRM: RmCheckForGcxSupportOnCurrentState: Failed to get GCx pre-requisite, status=0x62 (x165)
14:56:37 NVRM: Check failed: Reset required [NV_ERR_RESET_REQUIRED] returned from _gpushareddataSendDataPollRpc (x2002 until 15:09:58)
Additional context from the bug report journal:
- the machine had been resumed from S3 the same morning (
nvidia-suspend.serviceon Nov 13 17:55,nvidia-resume.serviceon Nov 16 09:12), about 5h45 before the failure; - GNOME Shell restarted twice after the failure (14:56:19 then 14:56:35), each time re-adding the nvidia-drm device (
Added device '/dev/dri/card2' (nvidia-drm) using atomic mode setting).
The UNLOADING_GUEST_DRIVER RPC right before the hung GSP_RM_CONTROL suggests the GPU was entering runtime D3 when the host stalled under memory pressure (the CPU-side thread timed out at 4 s), leaving the GSP and the RM out of sync.
Related but different trigger: #1271 (resume from suspend), #1045, #1473 (same Xid 119 → 154 chain).
To Reproduce
Not deterministic. Conditions when it happened:
- Hybrid laptop,
on-demandPRIME, runtime D3 fine-grained,PreserveVideoMemoryAllocations=1, nvidia-suspend/resume/hibernate services enabled. - GNOME Shell on Wayland, dGPU idle.
- Exhaust host RAM (VirtualBox VM + browsers) until the global OOM killer fires and the system thrashes on I/O.
Bug Incidence
Once
nvidia-bug-report.log.gz
Generated while the GPU was still in the failed state, before rebooting. nvidia-bug-report-redacted.log.gz (hostname and serial numbers redacted).
More Info
Expected: the driver recovers from a GSP RPC timeout during runtime-PM transition (or at least lets the GPU fall back to D3 / be reset without rebooting), instead of staying in GPU Reset Required with the dGPU powered on.
- Lenguaje dominante
- C
- Estrellas
- 17.7k
- Forks
- 2k
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de NVIDIA/open-gpu-kernel-modules
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
NVIDIA/open-gpu-kernel-modules#1635 ·
Los mantenedores suelen responder en 1 día
-
nvidia-drm: NULL dereference in nv_drm_create_sync_file() when sync_file_create() fails (kernel oops when fs.file-max is exhausted)Quizá libre de nuevo Un pull request para esta issue se cerró sin fusionarse. Abiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
NVIDIA/open-gpu-kernel-modules#1601 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
NVIDIA/open-gpu-kernel-modules#1479 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
PlatformRequestHandler: missing !bInit guard on bSystemParamLimitUpdate causes NV_ERR_INVALID_DATA at bootPosiblemente ocupada @SammyTourani la tomó hace 69 días. Abierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
NVIDIA/open-gpu-kernel-modules#1360 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
NVIDIA/open-gpu-kernel-modules#1343 · 3 comentarios ·
Los mantenedores suelen responder en 1 día
Todos los issues de NVIDIA/open-gpu-kernel-modules
Issues similares
-
iOS: the "Edit controls" button never hides, even with a controller connected, and covers the gameAbiertogame: 010065A014024000 ios
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
seedds/nxnative#3714 · 1 comentario ·
Los mantenedores suelen responder en 2 días
-
area/docdb kind/enhancement mvu-pg15-pg19 priority/low
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
yugabyte/yugabyte-db#40355 ·
Los mantenedores suelen responder en 1 día
-
[BUG] Vector Sets fastjson recursion depth limit (MAX_RECURSION_DEPTH_LIMIT) missing in 8.12.0, 8.12.1, and unstablePosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
Jstar269/nakagawa-recomp#3753 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 72/100
ly05010419/MacNativeGames#2474 ·
Los mantenedores suelen responder en 1 día