amdgpu 7900 XTX Adaptive Sync VRR enabled causes bad flicker on screens
As per:
Kernel 6.1.45 #2760 (comment 2041363)
Kernel 6.5-rc6 #2760 (comment 2042572)
when Adaptive sync is enabled (VRR on):
- HDMI screen flickers, very noticeable, on desktop idle, when playing a video or a game.
- For the HDMI screen the flicker is most noticeable when running at 60 Hz, less so when running at 120 Hz. Moving the mouse cursor on this screen causes the flicker to stop.
- DP screen, does not flicker as noticeable, however when i move the mouse cursor is moving on this display, the colors (active window) get darker or brighter and a small flicker amount happens.
- For the DP screen, with 144Hz, when moving the mouse there are noticeable cursor skips or hangs.
Trying with https://gitlab.freedesktop.org/agd5f/linux.git up to:
095822fdb2b7 (HEAD -> amd-staging-drm-next, origin/amd-staging-drm-next, origin/HEAD) drm/amdgpu/vcn : Skip vcn power-gating change for sriov
- The HDMI screen flicker does not appear during testing.
- The DP screen flicker does happen and the mouse cursor hang/skip also. I guess #2186 (closed) is related.
Trying kernel 6.4.10, 6.3.12 the flicker is there also.
Hardware description:
- CPU: AMD 5950x
- GPU: 0a:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Navi 31 [Radeon RX 7900 XT/7900 XTX] [1002:744c] (rev c8) Sapphire Nitro+
- System Memory: 32GB DDR4
- Display(s): DELL 27" 2560x1440@144 DisplayPort and SAMSUNG 75" 3840x2160@120 HDMI
System Info:
- Debian 12 bookworm
- Kernel: 6.5-rc6 vanilla
- DE: KDE Plasma 5.27.2 Wayland
- Package: firmware-amd-graphics Version: 20230515-3
How to reproduce the issue:
Boot 6.5-rc6 kernel, no kernel params. Enable Adaptive sync in Plasma Wayland session. Change refresh rates on HDMI screen to 60 Hz, very noticeable (annoying) flicker. Change to 120 Hz, less noticeable.