[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

Đang mở
#1,554 5 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
8/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
c, linux

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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

Ngôn ngữ chính
C
Star
17.7k
Fork
2k
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của NVIDIA/open-gpu-kernel-modules

Tất cả issue của NVIDIA/open-gpu-kernel-modules

Issue tương tự

Thêm issue về C

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.