[bisected] [regression] vblank_disable_immediate causes heavy stuttering with 6700XT on Xorg
The Problem
These small hangs last about half a second and can happen over and over multiple minutes (or even seconds) apart making desktop usage extremely annoying.
The kernel prints [drm:dc_dmub_srv_wait_idle [amdgpu]] *ERROR* Error waiting for DMUB idle: status=3
after every stutter.
I've seen the same error message in other reports with RDNA2 cards but none of them seems to describe the same symptoms so this error message is either extremely generic or this bug is even worse than I thought and it's affecting multiple cards in the Navi 2X line.
The Cause
Reverting it fixes the problem completely.
I suggest disabling vblank_disable_immediate until a proper solution is found since even light desktop usage is simply too annoying to be viable with this card on newer kernels when using Xorg.
How to Reproduce
Use Xorg and Linux 5.15.17+ (I've been living on 5.15.16 for a while to avoid this bug).
Simply leaving the system idle will eventually trigger this (the screen doesn't have to turn off and the system doens't have to suspend). Simple web browsing with Firefox or reproducing a video seems to trigger it faster.
This can take multiple minutes though (it took me a very long time to bisect this).
I've been able to reproduce this on KDE Plasma (Kwin) and Openbox (with Picom as a compositor).
I could not reproduce this bug on Plasma Wayland at this point but I can't exclude the possibility that other Wayland compositors can be affected.
Hardware Information
GPU: Radeon RX 6700XT
Display connection: DisplayPort
System Information
Distro: Ubuntu 22.04, Ubuntu 20.04
Kernel: 5.15.17+, 5.17+ git
Xorg 1.21.1.3, 1.20.13
Mesa 22.0.1 (radeonsi)
Window managers and compositors: KWin, Openbox+Picom