[Wayland/KMS] 4K@160/240 Hz HDMI 2.1 mode stalls (flip event timeout) when 3+ displays are active — RTX 5070 Ti, 620.70.06

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

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
8/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
技术栈
c, linux

调研方向

The failure surfaces in nv_drm_atomic_commit in the nvidia-drm modeset code, where the flip-event timeout is logged; start by reading that path alongside the atomic-check/TEST_ONLY handling, since the report's core complaint is that TEST_ONLY accepts a configuration the hardware cannot scan out. The reporter's suspicion is that high-pixel-clock modes need two heads (2Heads1OR) and head assignment fails once three or more displays are active — verify that against the head/bandwidth allocation logic rather than assuming it. Reproduce with the gdctl set commands given and the attached nvidia-bug-report.log.gz; done means either the multi-head assignment works or TEST_ONLY rejects the mode. This needs deep KMS and driver-internals knowledge; it is not a newcomer task.

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

描述

bug
NVIDIA Open GPU Kernel Modules Version

620.70.06

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 Linux (rolling, Arch-based), kernel 7.3.4-1-cachyos

Kernel Release

7.3.4-1-cachyos

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

NVIDIA GeForce RTX 5070 Ti

Describe the bug

Title: [Wayland/KMS] 4K@160/240 Hz HDMI 2.1 mode stalls (flip event timeout) when 3+ displays are active — RTX 5070 Ti, 620.70.06

Summary

On an RTX 5070 Ti with 4 monitors, a 3840x2160 mode above ~1.2 GHz pixel clock
(160 Hz or 240 Hz) on the HDMI 2.1 output works when at most one other display
is active, but stalls as soon as two or more other displays are active. The
atomic modeset is accepted (TEST_ONLY passes, the compositor reports the new
mode as current), then page flips time out on heads 0 and 1 (160 Hz and 240 Hz),
or every flip is rejected with EINVAL (240 Hz with all 4 displays on).

It depends only on the number of displays, not on total bandwidth: two
2560x1440@60 displays trigger it just like a 2560x1440@185 one. The same
hardware, cable and monitors run 4K@240 with all 4 displays active on Windows.
Earlier driver versions on Linux showed the same limit (never worked here).

System
  • GPU: NVIDIA GeForce RTX 5070 Ti (PCI ID 10de:2c05), VBIOS 98.03.4F.00.1C
  • Driver: 620.70.06, open kernel modules (nvidia-drm.modeset=1 nvidia-drm.fbdev=1)
  • Kernel: 7.3.4 (CachyOS)
  • Compositor: GNOME Shell / Mutter 51.1, Wayland (atomic KMS)
  • Displays (all four GPU outputs in use):
    • HDMI-A-1: 3840x2160 QD-OLED, HDMI 2.1. EDID advertises FRL 4×12 Gbps, DSC 1.2a (also over FRL 4×12), VRR 48–240 Hz. Mode timings from the driver:
      • 3840x2160 240.00 3840 3952 3984 4096 2160 2210 2215 2352 2312110 kHz
      • 3840x2160 160.00 3840 3888 3920 4224 2160 2163 2168 2188 1478740 kHz
      • 3840x2160 119.88 3840 4016 4104 4400 2160 2168 2178 2250 1186810 kHz (works in every configuration)
    • DP-1: 2560x1440@185
    • DP-4: 2560x1440@60
    • DP-5: 2560x1440@60 (rotated 270°)
  • Cable: certified HDMI 2.1 (48G) cable, same one used for the working Windows setup.
Results

The HDMI display was set to 4K@160 or 4K@240 with different subsets of the other displays enabled. Each test ran non-persistently through Mutter (gdctl set), and the kernel log was watched for 7 s afterwards.

Active outputs besides HDMI-A-1 4K@160 / 4K@240 on HDMI-A-1
none OK, no errors
DP-1 (1440p185) OK, no errors
DP-4 (1440p60) OK, no errors
DP-1 + DP-4 Flip event timeout on head 0, then head 1
DP-4 + DP-5 (both 1440p60) Flip event timeout on head 0, then head 1
DP-1 + DP-4 + DP-5 160 Hz: same flip timeouts. 240 Hz: every flip fails with drmModeAtomicCommit: Invalid argument

Kernel log (3 displays, 4K@240 on HDMI):

[drm:nv_drm_atomic_commit [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Flip event timeout on head 0
[drm:nv_drm_atomic_commit [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Flip event timeout on head 1

Compositor log (4 displays, 4K@240 on HDMI):

gnome-shell: Page flip failed: drmModeAtomicCommit: Invalid argument
gnome-shell: Failed to post KMS update: drmModeAtomicCommit: Invalid argument

The TEST_ONLY atomic commit (gdctl set --verify) passes for every failing
configuration, so the driver accepts a configuration it then can't scan out.

Expected

4K@160/240 on the HDMI output with all four displays active, as on Windows
with the same hardware. If the hardware can't do it, the TEST_ONLY commit
should fail, so the compositor never offers or applies the configuration.

Notes
  • The behaviour suggests high-pixel-clock modes need two heads (2Heads1OR) and the head assignment fails once three or more displays are active, but that's a guess from the outside.
  • Unrelated: nvidia-modeset: WARNING: GPU:0: HDMI FRL link training failed. appears on every display wake/unlock at [email protected], with no visible effect.
  • nvidia-bug-report.log.gz attached, captured after reproducing the failure.
To Reproduce
Reproduce

With 4 displays connected (one HDMI 2.1 4K@240-capable panel plus three others):

# OK: HDMI 4K@240 plus one other display
gdctl set -L -M HDMI-1 --mode [email protected] --primary -x 0 -y 0 \
          -L -M DP-4  --mode [email protected] -x 3840 -y 0

# Fails: HDMI 4K@240 plus two other displays
gdctl set -L -M HDMI-1 --mode [email protected] --primary -x 0 -y 0 \
          -L -M DP-4  --mode [email protected] -x 3840 -y 0 \
          -L -M DP-5  --mode [email protected] -x 6400 -y 0
journalctl -k -f   # -> Flip event timeout on head 0 / head 1
Bug Incidence

Always

nvidia-bug-report.log.gz

nvidia-bug-report.log.gz

More Info

No response

主要语言
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 摘要。