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
Mantenedores costumam responder em até 1 dia
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 4/5
- Tempo estimado
- 3-5 dias
- Facilidade para iniciantes
- 43/100
- Tipo de issue
- Bug
- Clareza
- Razoavelmente clara
- Status de atividade
- Ativa
- Domínio
- backend, operating-systems
Direção de pesquisa
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.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
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.
- Linguagem predominante
- C
- Estrelas
- 17.7k
- Forks
- 2k
- Métricas de merge de PRs
- Nenhum PR com merge em 30d
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Sem modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de NVIDIA/open-gpu-kernel-modules
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
NVIDIA/open-gpu-kernel-modules#1635 ·
Mantenedores costumam responder em até 1 dia
-
nvidia-drm: NULL dereference in nv_drm_create_sync_file() when sync_file_create() fails (kernel oops when fs.file-max is exhausted)Talvez livre de novo Um pull request para esta issue foi fechado sem ser mesclado. Abertabug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 82/100
NVIDIA/open-gpu-kernel-modules#1601 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
NVIDIA/open-gpu-kernel-modules#1479 · 2 comentários ·
Mantenedores costumam responder em até 1 dia
-
PlatformRequestHandler: missing !bInit guard on bSystemParamLimitUpdate causes NV_ERR_INVALID_DATA at bootTalvez já em andamento @SammyTourani assumiu há 70 dias. Aberta
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 88/100
NVIDIA/open-gpu-kernel-modules#1360 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
NVIDIA/open-gpu-kernel-modules#1343 · 3 comentários ·
Mantenedores costumam responder em até 1 dia
Todas as issues de NVIDIA/open-gpu-kernel-modules
Issues semelhantes
-
CF_CFDP_S_SendFileData computes the file checksum from the SB buffer after CFE_SB_TransmitBufferAberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
-
needs triage
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
389ds/389-ds-base#8251 ·
Mantenedores costumam responder em até 1 dia
-
bug data-types
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
ClickHouse/clickhouse-cpp#645 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 70/100
Mantenedores costumam responder em até 2 dias
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
Mantenedores costumam responder em até 1 dia