hyprwm / Hyprland

Hyprland is an independent, highly customizable, dynamic tiling Wayland compositor that doesn't sacrifice on its looks.
https://hyprland.org
BSD 3-Clause "New" or "Revised" License
21.95k stars 912 forks source link

Graphics corruption with AMD GPU and Linux 6.10.5+ regression #7850

Closed 0xC0ncord closed 1 month ago

0xC0ncord commented 2 months ago

Already reported ? *

Regression?

Yes

System Info and Version

System/Version info ```sh Hyprland, built from branch at commit 0f594732b063a90d44df8c5d402d658f27471dfe (props: bump version to 0.43.0). Date: Sun Sep 8 16:48:21 2024 Tag: v0.43.0, commits: 5196 flags: (if any) System Information: System name: Linux Node name: bubbles Release: 6.10.10-gentoo-hardened1 Version: #5 SMP Wed Sep 18 23:31:52 EDT 2024 GPU information: 0c:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Navi 31 [Radeon RX 7900 XT/7900 XTX/7900M] [1002:744c] (rev cc) (prog-if 00 [VGA controller]) 0d:00.0 VGA compatible controller [0300]: NVIDIA Corporation TU104 [GeForce RTX 2080] [10de:1e82] (rev a1) (prog-if 00 [VGA controller]) os-release: NAME=Gentoo ID=gentoo PRETTY_NAME="Gentoo Linux" ANSI_COLOR="1;32" HOME_URL="https://www.gentoo.org/" SUPPORT_URL="https://www.gentoo.org/support/" BUG_REPORT_URL="https://bugs.gentoo.org/" VERSION_ID="2.15" plugins: ```

Description

(Please ignore the NVIDIA GPU in my hardware; it is for GPU passthrough via VFIO)

After upgrading to Linux 6.10.5 or higher, I noticed severe graphical corruption (see below) in my setup: 2 4K monitors running at 144Hz connected to an AMD RX 7900 XT. I bisected this down to this commit in the stable tree.

I also periodically switch to using KDE Plasma 6 on this system, and I never experienced this corruption before or after this kernel version there. To me this means Hyprland is doing something wrong.

I can reliably revert this commit in 6.10.10 and the problem goes away.

I can reproduce this issue regardless of the state of VRR, explicit sync, or direct scanout.

How to reproduce

(Taking a guess, as it seems I'm the only one who has seen this)

  1. Linux 6.10.5 or higher.
  2. Two 4K monitors at 144Hz connected to an AMD GPU (RX 7900 XT).

Crash reports, logs, images, videos

PXL_20240918_193134452

0xC0ncord commented 2 months ago

Another thing to note: when this bug occurs, quitting Hyprland or changing TTYs causes the system to hang.

vaxerski commented 2 months ago

I am not a kernel dev but they shouldnt break userspace so isnt this an amdgpu bug?

erikwb commented 2 months ago

(Taking a guess, as it seems I'm the only one who has seen this)

I have this same problem on 6.10.x+hyprland as well. Very similar setup to you with dual displays, high refresh rate. 7900XTX. The screen looks exactly the same as your photo.

vaxerski commented 2 months ago

could be a kernel/mesa/amdgpu bug tbh, 6.10 has been a disaster for me on amd too and I've locked kernel to 6.9 for now

0xC0ncord commented 2 months ago

It could be an amdgpu or Mesa bug. Forgive me as I'm not familiar with the Linux graphics stack at all, but wouldn't I be seeing this corruption on Plasma as well if that was the case?

erikwb commented 1 month ago

This is resolved for me on arch as of (or some time prior to) linux 6.11.3-arch1-1 and hyprland 0.44.1-1.

vaxerski commented 1 month ago

@0xC0ncord

0xC0ncord commented 1 month ago

I'll give this a spin on Linux 6.11 later today and see if I can still reproduce.

0xC0ncord commented 1 month ago

I'll give this a spin on Linux 6.11 later today and see if I can still reproduce.

I'm no longer seeing this problem on Hyprland 0.44.1, AQ 0.4.2, and Linux 6.11.4. Thanks!