Skip to contentSkip to conversation

New: Flickering screen on AMDGPU and DC with Linux 4.16-2

Bug 199319 [email protected] 1 participant 23 messages Apr 8, 2018 – Dec 12, 2018

lore
Share & tools
lore
#0 lore raw

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: [email protected]
Reporter: [email protected]
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

Signature · 6 lines
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#1 lore raw

[Bug 199319] Flickering screen on AMDGPU and DC with Linux 4.16-2

https://bugzilla.kernel.org/show_bug.cgi?id=199319

Laurent Carlier ([email protected]) changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]

--- Comment #1 from Laurent Carlier ([email protected]) --- Same here with RX470 @ 1920x1080 - HDMI

Signature · 6 lines
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#2 lore raw

[Bug 199319] Flickering screen on AMDGPU and DC with Linux 4.16-2

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=199319

Ed Tomlinson ([email protected]) changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]

--- Comment #2 from Ed Tomlinson ([email protected]) ---
Here too on arch with either mesa 17.3 or 18.0 on 4.16.1-rc with a RX480 4G HDMI (1920x1200)

Signature · 6 lines
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#3 lore raw

[Bug 199319] Flickering screen on AMDGPU and DC with Linux 4.16-2

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=199319

[email protected] changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]

--- Comment #3 from [email protected] ---
+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.

Signature · 6 lines
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#4 lore raw

[Bug 199319] Flickering screen on AMDGPU and DC with Linux 4.16-2

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=199319

--- Comment #4 from Ed Tomlinson ([email protected]) ---
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.

Signature · 6 lines
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#5 lore raw

[Bug 199319] Flickering screen on AMDGPU and DC with Linux 4.16-2

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=199319

--- Comment #5 from [email protected] ---
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.

Signature · 6 lines
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#6 lore raw

[Bug 199319] Flickering screen on AMDGPU and DC with Linux 4.16-2

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=199319

--- Comment #6 from [email protected] ---
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.

Signature · 6 lines
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#7 lore raw

[Bug 199319] Flickering screen on AMDGPU and DC with Linux 4.16-2

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=199319

Michel Dänzer ([email protected]) changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]

--- Comment #7 from Michel Dänzer ([email protected]) --- Is this the same as bug 199101?

Signature · 6 lines
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#8 lore raw

[Bug 199319] Flickering screen on AMDGPU and DC with Linux 4.16-2

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=199319

--- Comment #8 from [email protected] ---
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.

Signature · 6 lines
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#9 lore raw

[Bug 199319] Flickering screen on AMDGPU and DC with Linux 4.16-2

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=199319

Mike Lothian ([email protected]) changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]

--- Comment #9 from Mike Lothian ([email protected]) ---
I'm seeing this too, also plasma-wayland but with a PRIME Skylake/Tonga setup only Skylake is used on the desktop

Signature · 6 lines
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#10 lore raw

[Bug 199319] Flickering screen on AMDGPU and DC with Linux 4.16-2

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=199319

--- Comment #10 from Mike Lothian ([email protected]) ---
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.

Signature · 6 lines
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#11 lore raw

[Bug 199319] Flickering screen on AMDGPU and DC with Linux 4.16-2

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=199319

zxvfxwing ([email protected]) changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]

--- Comment #11 from zxvfxwing ([email protected]) --- Flickering here too: 4.16.0-2-ARCH, RX480, Mesa 18.0.0, x11 (X.Org 1.19.6).

Signature · 6 lines
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#12 lore raw

[Bug 199319] Flickering screen on AMDGPU and DC with Linux 4.16-2

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=199319

[email protected] changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]

--- Comment #12 from [email protected] ---
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?

Signature · 6 lines
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#13 lore raw

[Bug 199319] Flickering screen on AMDGPU and DC with Linux 4.16-2

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=199319

--- Comment #13 from [email protected] ---
... have to add:

This problem doesn't occur too with:

- amdgpu.dc=0

Signature · 6 lines
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#14 lore raw

[Bug 199319] Flickering screen on AMDGPU and DC with Linux 4.16-2

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=199319

--- Comment #14 from [email protected] ---
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

Signature · 6 lines
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#15 lore raw

[Bug 199319] Flickering screen on AMDGPU and DC with Linux 4.16-2

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=199319

Márcio ([email protected]) changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]

--- Comment #15 from Márcio ([email protected]) ---
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.

Signature · 6 lines
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#16 lore raw

[Bug 199319] Flickering screen on AMDGPU and DC with Linux 4.16-2

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=199319

--- Comment #16 from Harry Wentland ([email protected]) --- 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.

Signature · 6 lines
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#17 lore raw

[Bug 199319] Flickering screen on AMDGPU and DC with Linux 4.16-2

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=199319

--- Comment #17 from zxvfxwing ([email protected]) --- (In reply to Harry Wentland from comment #16)

Quoted 5 lines

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.

Signature · 6 lines
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#18 lore raw

[Bug 199319] Flickering screen on AMDGPU and DC with Linux 4.16-2

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=199319

--- Comment #18 from [email protected] ---
@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]

...

Signature · 6 lines
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#19 lore raw

[Bug 199319] Flickering screen on AMDGPU and DC with Linux 4.16-2

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=199319

--- Comment #19 from Harry Wentland ([email protected]) --- @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.

Signature · 6 lines
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#20 lore raw

[Bug 199319] Flickering screen on AMDGPU and DC with Linux 4.16-2

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=199319

--- Comment #20 from [email protected] ---
This issues (both, the flickering and the black screen) are obviously fixed with kernel 4.17.0-rc2. Thank you.

Signature · 6 lines
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#21 lore raw

[Bug 199319] Flickering screen on AMDGPU and DC with Linux 4.16-2

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=199319

siyia ([email protected]) changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]

--- Comment #21 from siyia ([email protected]) ---
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.

Signature · 6 lines
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#22 lore raw

[Bug 199319] Flickering screen on AMDGPU and DC with Linux 4.16-2

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=199319

--- Comment #22 from siyia ([email protected]) --- Tested both kernels 4.19.x and 4.20rc6

Signature · 6 lines
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel