User-space reads on the GPU's DDC i2c adapter during a modeset wedge nvidia-modeset (615.78.08): compositor spins in the kernel, unkillable
Les mainteneurs répondent en général sous 1 jour
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Accessibilité débutants
- 43/100
- Type d'issue
- Bug
- Clarté
- Plutôt claire
- Activité
- Active
- Domaine
- backend, operating-systems
Piste de recherche
Start by reviewing the kernel log excerpt and the provided reproduction steps, then trace the exposed GPU DDC I2C adapter reads alongside the modeset and nvidia-modeset semaphore paths. The issue offers a Python reproducer and says the complete boot log can be provided; use these to investigate whether concurrent reads trigger the reported lockup. Done means identifying and fixing the cause so modesets complete or fail without wedging the compositor or blocking the nvidia-modeset thread.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
NVIDIA Open GPU Kernel Modules Version
615.78.08 (CachyOS package, nvidia-open; /proc/driver/nvidia/version: NVIDIA UNIX Open Kernel Module for x86_64 615.78.08 Release Build, Sat Oct 31 2026)
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.
- I confirm that this does not happen with the proprietary driver package.
Operating System and Version
CachyOS (rolling), lsb_release -d: CachyOS
Kernel Release
Linux 7.3.1-1-cachyos #1 SMP PREEMPT_DYNAMIC Sat, 31 Oct 2026 06:43:52 +0000 x86_64 GNU/Linux (distribution kernel, not self-built)
Please confirm you are running a stable release kernel (e.g. not a -rc). We do not accept bug reports for unreleased kernels.
- I am running on a stable kernel release.
Hardware: GPU
GPU 0: NVIDIA GeForce RTX 5080
Describe the bug
Summary
A user-space thread read three SCDC registers of an HDMI sink through the GPU's own i2c adapter (/dev/i2c-N, "NVIDIA i2c
adapter", I2C_SMBUS read-byte-data, address 0x54) in a loop with no pause (about 2 ms per turn) while another thread of
the same program asked the compositor for a modeset that needs HDMI FRL training. From the first such modeset the commits took
3 to 10 s instead of 0.2-0.6 s, the kernel logged lost display notifications and flip-event timeouts, and within a minute the
compositor process was spinning in the kernel holding a lock that nvidia-modeset's kernel thread then waited on for good.
The process could not be killed, the desk compositor (KWin, the DRM master on the same GPU) stopped answering display and lease queries, a systemctl reboot never
completed, and the machine had to be power-cycled.
The same reads with a 5 ms pause after each one ran through 300 modesets on the same day without any of this.
System
GeForce RTX 5080; NVIDIA Open Kernel Module 615.78.08 (nvidia_modeset debug=1); Linux 7.3.1 (CachyOS), PREEMPT(full),
sched_ext scheduler scx_bpfland 1.1.4 active (its dump line appears in the kernel log at 17:53:30, next to the flip-event WARNING); sway 1.12 / wlroots 0.20.2 on a DRM lease of the HDMI connector (KWin is the DRM master on the
same GPU and drives a second monitor); sink LG OLED65G4 on HDMI, [email protected] 10-bit (FRL rate 5) and @60 (FRL rate 3).
What ran
- Thread A:
swaymsg output HDMI-A-1 mode 3840x2160@60Hz...mode [email protected], alternating. - Thread B, only while a mode command was in flight:
ioctl(I2C_SMBUS)read-byte-data of registers 0x10, 0x41, 0x40 at
address 0x54 on the adapter that carries the TV's DDC, in a loop without sleeping.
Timeline (local time, kernel log)
17:53:17 first mode command of the run; it returns after 3.0 s (normal: 0.2-0.6 s)
17:53:20.707660 nvidia-modeset: WARNING: GPU:0: Lost display notification (0:0x00000000); continuing.
17:53:23.830674 [drm:nv_drm_atomic_commit [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Flip event timeout on head 0
17:53:30.359654 [drm:nv_drm_atomic_commit [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Flip event timeout on head 0
17:53:30.360675 nv_flip == NULL
17:53:30.360686 WARNING: nvidia-drm/nvidia-drm-crtc.h:368 at __nv_drm_handle_flip_event+0x1e4/0x1f0 [nvidia_drm], CPU#4: nvidia-modeset//460
Call Trace: nv_drm_event_callback+0x7b/0xb0 [nvidia_drm] <- nvKmsKapiHandleEventQueueChange+0x143/0x1e0 [nvidia_modeset]
<- _main_loop+0xbd/0x140 [nvidia_modeset] <- kthread
17:53:33.360664 nvidia-modeset: WARNING: GPU:0: Lost display notification (0:0x00000000); continuing.
17:53:41.876671 nvidia-modeset: WARNING: GPU:0: Lost display notification (0:0x00000000); continuing.
17:53:42.345671 nvidia-modeset: GPU:0: HdmiPacketLibrary: ERROR - RM call to enable hdmi ctrl failed.
17:53:54.480664 nvidia-modeset: WARNING: GPU:0: Lost display notification (0:0x00000000); continuing.
17:53:54.934659 nvidia-modeset: GPU:0: HdmiPacketLibrary: ERROR - RM call to enable hdmi ctrl failed.
17:54:05.547666 nvidia-modeset: WARNING: GPU:0: Lost display notification (0:0x00000000); continuing.
(the test program has exited by now; five mode commands were sent in all, taking 3.0 to 10.0 s each)
17:56:13.174670 INFO: task nvidia-modeset/:460 blocked for more than 122 seconds.
Call Trace: __schedule <- schedule <- schedule_timeout <- __down_common <- down
<- nvkms_kthread_q_callback+0xdb/0x170 [nvidia_modeset] <- _main_loop+0xbd/0x140 [nvidia_modeset] <- kthread
17:56:13.175009 INFO: task nvidia-modeset/:460 blocked on a semaphore likely last held by task <sway>:<pid>
task:<sway> state:R running task (its call trace is printed empty)
State after that, read from /proc (not changing over the following minutes):
- the sway process: one thread, state
R, 100 % CPU, all of it system time (stime +100 ticks per second);
SigPnd: 0000000000000100(SIGKILL pending),ShdPnd: 0000000000004000(SIGTERM pending) - it does not die; - a new sway instance could not get the DRM lease; KWin did not answer lease / display queries;
- everything not touching the GPU kept running;
systemctl reboot(rc 0) did not finish: minutes later the user manager and logind no longer answered, the stuck process
was still in stateR, the uptime kept counting. The machine was power-cycled by hand.
Controls
| Reads on the same adapter | Modesets | Result |
|---|---|---|
| only after each modeset returned, every ~20 ms | 300 | no problem |
| during each modeset, 5 registers, 5 ms sleep after each turn | 300 | no problem |
| during each modeset, 3 registers, no sleep | 5 | the above, from the first modeset |
One occurrence. The link between the no-pause reads and the hang is inferred from the timing and from the controls; it was not
repeated on purpose.
To Reproduce
- An HDMI sink that needs FRL (here an LG OLED65G4 at [email protected], FRL rate 5), driven by a compositor on a DRM lease (sway on KWin's lease; any client that issues modesets should do).
- Thread A: alternate modesets 3840x2160@60 and [email protected] (
swaymsg output HDMI-A-1 mode ...). - Thread B, only while a mode command is in flight: read SCDC registers 0x10, 0x41, 0x40 at I2C address 0x54 on the GPU's DDC adapter for that connector (
ioctl(I2C_SMBUS)read-byte-data) in a loop WITHOUT sleeping (~2 ms per turn). - Observed from the FIRST such modeset: commits take 3-10 s, "Lost display notification" and "Flip event timeout" in the kernel log; within a minute the compositor spins in the kernel and nvidia-modeset's kthread blocks on a semaphore it holds (hung-task report after 122 s). The process cannot be killed; the machine needs a power cycle.
- Controls on the same day: the same reads only after each modeset returned (300 modesets), or with a 5 ms sleep per turn (300 modesets): no problem.
- WARNING for anyone reproducing: this needs a power cycle to recover.
Bug Incidence
Once
nvidia-bug-report.log.gz
nvidia-bug-report.log.gz will be attached in a follow-up comment (EDID serial numbers redacted), or sent to [email protected] on request. The machine had to be power-cycled, so the log of the wedged boot is in the journal (kernel lines quoted above).
More Info
Expected
Whatever user space does on the i2c adapter the driver exposes, a modeset on the same connector either completes or fails;
the nvkms lock is not held by a task that spins in the kernel and cannot take SIGKILL.
What we can provide
The complete kernel log of that boot from 17:53 to the reboot, and the test program (about 250 lines of Python).
Found by accident while collecting the data for #1537 (HDMI FRL training ends with no lane locked). One occurrence; the link to the reads is inferred from the timing and the controls.
The RTX 5080 is supported only by the open kernel modules, so the proprietary driver package could not be tested.
- Langage dominant
- C
- Étoiles
- 17.7k
- Forks
- 2k
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Préparer son environnement
- Aucun Dockerfile ni fichier Docker Compose
- Aucun modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de NVIDIA/open-gpu-kernel-modules
-
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
NVIDIA/open-gpu-kernel-modules#1635 ·
Les mainteneurs répondent en général sous 1 jour
-
nvidia-drm: NULL dereference in nv_drm_create_sync_file() when sync_file_create() fails (kernel oops when fs.file-max is exhausted)Peut-être à nouveau libre Une pull request pour cette issue a été fermée sans être fusionnée. Ouvertebug
Difficulté 2/5 1-3 heures Accessibilité débutants 82/100
NVIDIA/open-gpu-kernel-modules#1601 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
NVIDIA/open-gpu-kernel-modules#1479 · 2 commentaires ·
Les mainteneurs répondent en général sous 1 jour
-
PlatformRequestHandler: missing !bInit guard on bSystemParamLimitUpdate causes NV_ERR_INVALID_DATA at bootPeut-être pris @SammyTourani l’a pris il y a 69 jours. Ouverte
Difficulté 1/5 Moins d'une heure Accessibilité débutants 88/100
NVIDIA/open-gpu-kernel-modules#1360 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
NVIDIA/open-gpu-kernel-modules#1343 · 3 commentaires ·
Les mainteneurs répondent en général sous 1 jour
Toutes les issues de NVIDIA/open-gpu-kernel-modules
Issues similaires
-
iOS: the "Edit controls" button never hides, even with a controller connected, and covers the gameOuvertegame: 010065A014024000 ios
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
seedds/nxnative#3714 · 1 commentaire ·
Les mainteneurs répondent en général sous 2 jours
-
HTTP/3
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
haskell/bytestring#730 · 1 commentaire ·
-
bug ux/behavior
Difficulté 2/5 1-3 heures Accessibilité débutants 70/100
DeusData/codebase-memory-mcp#3191 ·
Les mainteneurs répondent en général sous 1 jour
-
area/docdb kind/enhancement mvu-pg15-pg19 priority/low
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
yugabyte/yugabyte-db#40355 ·
Les mainteneurs répondent en général sous 1 jour