HDMI FRL training ends with no lane locked, no error, head reported active (RTX 5080, 615.78.08, LG OLED G4)

未关闭
#1,537 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
52/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
c, linux
领域
backend

调研方向

Start by reading PR #1505 and issue #1369, which cover lost-link retraining after restore; then trace the HDMI FRL training path in the kernel module and identify where SCDC status is checked. Compare the existing restore check with the reported post-training state in SCDC 0x40. Done means a rate-5 training with no locked lanes is retried or reported as failed; the report offers repeatable mode-step runs to verify it.

由索引模型根据 Issue 内容生成。

描述

bug
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

About 3 % of HDMI FRL link trainings at FRL rate 5 (10 Gbps x 4 lanes) end with the sink reporting no lane locked, while the
driver logs nothing (nvidia_modeset debug=1), the modeset returns success and the head is reported as HDMI FRL, active. The
screen stays black until user space does another modeset through a different mode. Trainings at FRL rate 3 on the same link
never failed (0 of 300). After a TV wake from standby the same end state is reached more often (14 of 60 wakes), because the TV
makes the driver train twice.

The request: after an FRL training, check the sink's lane-lock status (SCDC 0x40) and retry or report failure. PR #1505 adds a
similar check ("lost-link retrain") after a restore; this data says the check is needed after every FRL training.

System

GPU GeForce RTX 5080
Driver NVIDIA Open Kernel Module 615.78.08 (nvidia_modeset debug=1)
Kernel Linux 7.3.1 (CachyOS), x86_64
Compositor sway 1.12 / wlroots 0.20.2 on a DRM lease of the HDMI connector (KWin is the DRM master and leases it)
Sink LG OLED65G4 (webOS 11.2.0, firmware 43.21.73 as last read on 2026-10-20), HDMI input 3
Cable 20 m active optical HDMI cable, sold as 48 Gbps; not Ultra High Speed certified
Modes [email protected] and @100, 10-bit RGB, HDR: FRL rate 5 (SCDC 0x31 = 0x35). 3840x2160@60: FRL rate 3 (0x31 = 0x33)

The cable may well be why a training fails now and then. The report is about what happens next: neither a retry nor an error.

How the sink was read

SCDC registers of the TV (I2C address 0x54) through the GPU's own DDC adapter (/dev/i2c-N, "NVIDIA i2c adapter"), one SMBus
read-byte-data per register, read-only. (A plain two-message read ignores the register offset on this TV.)

Observation 1: mode steps on a TV that has been on for minutes

600 modesets through sway (output HDMI-A-1 mode ...), alternating 3840x2160@60 with [email protected] (240 times) or @100
(60 times), 2 s apart, TV on for 1.5 to 15 minutes.

Training Count No lane locked afterwards
FRL rate 5 (4K119.88 and 4K100) 300 9 (7 at 119.88, 2 at 100)
FRL rate 3 (4K60) 300 0
Good training Failed training (all 9 identical)
Modeset call returns after 0.14-0.83 s 0.49-0.73 s
SCDC 0x10 (update flags) 0x01 0x00
SCDC 0x31 (FRL rate / FFE) 0x35 0x35
SCDC 0x40 (status) 0x5e (FLT_ready, 4 lanes locked) 0x40 (FLT_ready, no lane locked)
SCDC 0x41 / 0x42 (LTP requests) 0x00 / 0x00 0x00 / 0x00
Kernel log, debug=1 nothing nothing
TV picture yes none
  • The failed state did not change for the 8 s each step was watched (in wakes: 18 s and more, until the next modeset).
  • Setting the same mode again does nothing (0 of 8; the commit takes 2-10 ms and no register changes).
  • Setting 3840x2160@60 and then the high mode again locked 9 of 9 times.
  • One further rate-5 training read the failed bytes 0.5 s after the modeset and was locked 4.8 s after it, with no hot-plug
    event and no log line in between.
  • The driver's only FRL message in these runs, HdmiPacketLibrary: ERROR - RM call to set HDMI FRL failed, appeared once,
    on a training that ended locked.

Read every ~5 ms during the modeset (150 of the steps, 3 failures):

  • Good: 0x31 goes 0x33 -> (sometimes 0x00 for a few ms) -> 0x35, and 0x40 reads 0x5e in the same or the next sample.
  • Failed: 0x31 = 0x35 appears while 0x40 = 0x40; 0x10 goes from 0x01/0x03 to 0x00 11-17 ms later; nothing changes after
    that. Bits 4 (FRL_start) and 5 (FLT_update) of 0x10 were not seen set at this sampling rate in either case.
To Reproduce
  • Sink: LG OLED65G4 on HDMI, a mode that needs FRL rate 5: [email protected] 10-bit RGB HDR (SCDC 0x31 = 0x35).
  • Alternate modesets 3840x2160@60 (FRL rate 3) and [email protected] (FRL rate 5), 2 s apart, through the compositor (here: swaymsg output HDMI-A-1 mode ... on a DRM lease).
  • After each rate-5 modeset, read SCDC 0x40 (status flags) once the modeset has returned: about 1 in 30 trainings ends with FLT_ready set and NO lane locked (0x40 = 0x40, 0x10 = 0x00), while the modeset reports success, the kernel log (nvidia_modeset debug=1) is silent and the head is reported active as HDMI FRL. The screen stays black.
  • Setting the same mode again does not recover it (0 of 8); setting 3840x2160@60 and then the high mode again does (9 of 9).
  • More often (about 1 wake in 4): wake the sink from deep standby so that it hot-plugs; the driver's second FRL training of the wake ends in the same state.
  • Important: read SCDC only AFTER the modeset call has returned. Reading it in a tight loop DURING the modeset wedged nvidia-modeset (filed separately).
Bug Incidence

Sometimes

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.

More Info

Expected

After writing the FRL rate, the source confirms that the sink's lanes are locked (or that FRL_start was signalled) before it
treats the link as up, and otherwise retrains, falls back, or at least reports the failure.

Workaround in use

User space reads SCDC 0x40 a few seconds after the last hot-plug event of a wake and, when no lane is locked, sets a lower
mode and then the high mode again.

What we can provide

The raw register timelines (JSON lines), kernel logs with debug=1 for any of the cases, and test runs of a patched module:
the mode-step test reproduces the failure in about ten minutes (about 1 failure per 30 rate-5 trainings).

Related: issue #1369 and PR #1505 ("lost-link retrain" after a restore). This data suggests the lane-lock check is needed after every FRL training, not only after a restore.

The RTX 5080 is supported only by the open kernel modules, so the proprietary driver package could not be tested.

主要语言
C
星标
17.7k
派生
2k
PR 合并指标
30 天内没有已合并 PR

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

NVIDIA/open-gpu-kernel-modules 的其他 Issue

查看 NVIDIA/open-gpu-kernel-modules 的全部 Issue

相似的 Issue

更多 C Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。