https://bugzilla.kernel.org/show_bug.cgi?id=199319
Bug ID: 199319 Summary: Flickering screen on AMDGPU and DC with Linux 4.16-2 Product: Drivers Version: 2.5 Kernel Version: Linux 4.16 Hardware: x86-64 OS: Linux Tree: Mainline Status: NEW Severity: normal Priority: P1 Component: Video(DRI - non Intel) Assignee: drivers_video-dri@kernel-bugs.osdl.org Reporter: mail@rainer-finke.de Regression: No
Description: I upgraded to Linux 4.16-2 from the Arch Linux testing repository, but since then the screen is flickering with my RX480 and AMDGPU.DC enabled. The flickering is visible especially on Plasma-Wayland as soon as I move the mouse, it is like a bright flickering, not like a graphical corruption. On SDDM or Plasma X11 the flickering is much less frequent, but even there the screen flickers from time to time. I use a 4K display connected via DisplayPort. A downgrade to Linux 4.15 stable solved this even tough AMDGPU.DC is enabled as well. I couldn't reproduce the same issue with my AMD Ryzen 5 2500U Vega APU (1920x1080), so the issue might be related to the RX480 or 4K.
Additional info: * Linux 4.16-2 from Arch Linux testing * AMDGPU.DC=1 (kernel parameter) * 4K display DisplayPort
Steps to reproduce: 1. Ugrade to Linux 4.16.2 with AMDGPU.DC enabled on a RX480 2. Screen is flickering when moving the mouse
https://bugzilla.kernel.org/show_bug.cgi?id=199319
Laurent Carlier (lordheavym@gmail.com) changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |lordheavym@gmail.com
--- Comment #1 from Laurent Carlier (lordheavym@gmail.com) --- Same here with RX470 @ 1920x1080 - HDMI
https://bugzilla.kernel.org/show_bug.cgi?id=199319
Ed Tomlinson (edt@aei.ca) changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |edt@aei.ca
--- Comment #2 from Ed Tomlinson (edt@aei.ca) --- Here too on arch with either mesa 17.3 or 18.0 on 4.16.1-rc with a RX480 4G HDMI (1920x1200)
https://bugzilla.kernel.org/show_bug.cgi?id=199319
pmargeti34@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |pmargeti34@gmail.com
--- Comment #3 from pmargeti34@gmail.com --- +1
Arch Linux 4.16 with amdgpu.dc=1 MSI Radeon Rx560 4GB -> LG 2560x1080 panel over HDMI
Flickering doesn't happen if Option "TearFree" "true" isn't set in driver's .conf file or if there is no tearing option ("vsync") selected in KDE system settings->display and monitor->compositor
Running 4.16 with amdgpu.dc=0 removes flickering.
https://bugzilla.kernel.org/show_bug.cgi?id=199319
--- Comment #4 from Ed Tomlinson (edt@aei.ca) --- I checked my X conf, no tearfree option is set, using 4.15 I set tearing prevention to never and rebooted into 4.16.1-rc.
This does NOT stop the flickering here.
Flicking does not occur with 4.15 dc-1 and does with 4.16.
IMO this is a regression.
https://bugzilla.kernel.org/show_bug.cgi?id=199319
--- Comment #5 from mail@rainer-finke.de --- Thanks for the hint with vsync, but it didn't change anything for me on Plasma-Wayland.
At least I noticed, that the bright flickering on my screen on Plasma-Wayland when moving the mouse appears was due to night shift changing the colours. It worked well on Linux 4.15. But on Linux 4.16 I need to deactivate it so that the flickering on Plasma-Wayland during the mouse movements stops.
With night shift and even vsync disabled, there is now just from time to time a flickering, irregularly.
https://bugzilla.kernel.org/show_bug.cgi?id=199319
--- Comment #6 from mail@rainer-finke.de --- The flickering that is happening from time to time is probably the same as in the bug report https://bugzilla.kernel.org/show_bug.cgi?id=199101.
So only the flickering when night shift is enabled on Plasma-Wayland seems to be different.
https://bugzilla.kernel.org/show_bug.cgi?id=199319
Michel Dänzer (michel@daenzer.net) changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |harry.wentland@amd.com
--- Comment #7 from Michel Dänzer (michel@daenzer.net) --- Is this the same as bug 199101?
https://bugzilla.kernel.org/show_bug.cgi?id=199319
--- Comment #8 from mail@rainer-finke.de --- The random flickering every 30 seconds is the same from my point of view. What is different on my setup is that Plasma-Wayland with night shift enabled with a changed color flickers with every mouse movement since Linux 4.16. So the answer is partially.
https://bugzilla.kernel.org/show_bug.cgi?id=199319
Mike Lothian (mike@fireburn.co.uk) changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |mike@fireburn.co.uk
--- Comment #9 from Mike Lothian (mike@fireburn.co.uk) --- I'm seeing this too, also plasma-wayland but with a PRIME Skylake/Tonga setup only Skylake is used on the desktop
https://bugzilla.kernel.org/show_bug.cgi?id=199319
--- Comment #10 from Mike Lothian (mike@fireburn.co.uk) --- I should add this is 4.16-rc7 (agd5f's 4.18-wip branch) Qt 5.10, KDE frameworks 5.44, Plasma 5.12.4, Xorg 1.19.5 using the modesetting DDX (I'll try the Intel & AMDGPU DDXs tonight.
https://bugzilla.kernel.org/show_bug.cgi?id=199319
zxvfxwing (zxvfxwing@protonmail.com) changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |zxvfxwing@protonmail.com
--- Comment #11 from zxvfxwing (zxvfxwing@protonmail.com) --- Flickering here too: 4.16.0-2-ARCH, RX480, Mesa 18.0.0, x11 (X.Org 1.19.6).
https://bugzilla.kernel.org/show_bug.cgi?id=199319
haro41@gmx.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |haro41@gmx.de
--- Comment #12 from haro41@gmx.de --- Same here:
Flickering (as described by 'mail'): 4.16.1, R9 380X, Mesa 18.1.0-devel (git-d899826733), X11(1.19.6) Tried Gnome and XFCE, similar problems.
This problem doesn't occur with:
- older Kernel (4.15.0) - 3D Fullscreen (Games) - older GPU (R9 280X)
Maybe a powerplay related problem, since it only affect newer AMD cards?
https://bugzilla.kernel.org/show_bug.cgi?id=199319
--- Comment #13 from haro41@gmx.de --- ... have to add:
This problem doesn't occur too with:
- amdgpu.dc=0
https://bugzilla.kernel.org/show_bug.cgi?id=199319
--- Comment #14 from haro41@gmx.de --- linux 4.16.1, R9 380X, Mesa 18.1.0-devel (git-d899826733), X11(1.19.6)
with:
amdgpu.dc=0: no flickering, HDMI audio works
amdgpu.dc=1: flickering, HDMI audio not working
https://bugzilla.kernel.org/show_bug.cgi?id=199319
Márcio (marciosr10@gmail.com) changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |marciosr10@gmail.com
--- Comment #15 from Márcio (marciosr10@gmail.com) --- Same problem here, using linux 4.16.2 on Arch Linux and RX 480 DisplayPort, at 2560 x 1080.
No xorg config set.
Kernel parameter amdgpu.dc=1
The flickering happens eventualy, but when using nightlight gnome feature it happens more frequently.
https://bugzilla.kernel.org/show_bug.cgi?id=199319
--- Comment #16 from Harry Wentland (harry.wentland@amd.com) --- A fix should be in drm-next-4.17 of Alex's git repo at https://cgit.freedesktop.org/~agd5f/linux/?h=drm-next-4.17 and should make it into Linus's tree from there.
That fix should also make it into 4.16 stable.
https://bugzilla.kernel.org/show_bug.cgi?id=199319
--- Comment #17 from zxvfxwing (zxvfxwing@protonmail.com) --- (In reply to Harry Wentland from comment #16)
A fix should be in drm-next-4.17 of Alex's git repo at https://cgit.freedesktop.org/~agd5f/linux/?h=drm-next-4.17 and should make it into Linus's tree from there.
That fix should also make it into 4.16 stable.
Good to know! Thank you.
https://bugzilla.kernel.org/show_bug.cgi?id=199319
--- Comment #18 from haro41@gmx.de --- @Harry Wentland, i am trying kernel 4.17.0-rc1 (patches already merged by linus):
With 'amdgpu.dc=1', i get a black screen now at login (perhaps related to this dc issue). I found 2 new warnings and call traces in kernel log, like:
Apr 18 18:28:41 debian kernel: WARNING: CPU: 10 PID: 345 at drivers/gpu/drm/amd/amdgpu/../display/dc/dm_services.h:132 generic_reg_update_ex+0x102/0x150 [amdgpu]
...
https://bugzilla.kernel.org/show_bug.cgi?id=199319
--- Comment #19 from Harry Wentland (harry.wentland@amd.com) --- @haro41, I recommend opening a new bug if you're seeing a different issue, unless you have strong reason to believe it's caused by the fixes for the flickering screen, or otherwise related to it.
https://bugzilla.kernel.org/show_bug.cgi?id=199319
--- Comment #20 from haro41@gmx.de --- This issues (both, the flickering and the black screen) are obviously fixed with kernel 4.17.0-rc2. Thank you.
https://bugzilla.kernel.org/show_bug.cgi?id=199319
siyia (eutychios23@gmail.com) changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |eutychios23@gmail.com
--- Comment #21 from siyia (eutychios23@gmail.com) --- Hello i also get screen flickering when running 3d games and massive performance drop on Xorg with amdgpu.dc enabled.If i add amdgpu.dc=0 to kernel parameters, Xorgs runs buttery smooth and games do not flicker,my gpu is polaris RX 550 4gb.
Is there any disadvantage to run the gpu with amdgpu DC off? i use an analog vga monitor with an active vga to dvi-d converter and i do not plan to use hdmi in next few years ahead.
https://bugzilla.kernel.org/show_bug.cgi?id=199319
--- Comment #22 from siyia (eutychios23@gmail.com) --- Tested both kernels 4.19.x and 4.20rc6
dri-devel@lists.freedesktop.org