https://bugs.freedesktop.org/show_bug.cgi?id=103317
Bug ID: 103317 Summary: Tearing in WQHD, but not in FHD Product: DRI Version: unspecified Hardware: x86-64 (AMD64) OS: Linux (All) Status: NEW Severity: normal Priority: medium Component: DRM/AMDgpu Assignee: dri-devel@lists.freedesktop.org Reporter: torkes94@gmail.com
Created attachment 134888 --> https://bugs.freedesktop.org/attachment.cgi?id=134888&action=edit X server log
Hi all,
I'm using Arch Linux with kernel 4.13.5-1-ARCH, Xorg 1.19.5 and the amdgpu driver, version 1.4. My GPU is a R9 390. I attached the X server log. My window manager is i3.
Entries in xorg.conf.d:
20-amdgpu.conf
Section "Device" Identifier "AMD R9 390" Driver "amdgpu" Option "DRI" "3" Option "TearFree" "true" EndSection
With this setup I experience screen tearing and flickering on a WQHD monitor. Enabling a compositor like compton makes these effects worse. I can reproduce this issue on the same machine with KDE instead of i3. To give you an idea of my problem, I captured a scene from the RTS 0ad:
The same kind of flickering and tearing also happens in desktop mode. It seems to appear randomly. However, the problem disappears when I'm using the radeonsi driver or changing the resolution to FHD. In both cases everything is fine.
https://bugs.freedesktop.org/show_bug.cgi?id=103317
--- Comment #1 from Torsten Kessler torkes94@gmail.com --- Created attachment 134889 --> https://bugs.freedesktop.org/attachment.cgi?id=134889&action=edit Dmesg output
https://bugs.freedesktop.org/show_bug.cgi?id=103317
Michel Dänzer michel@daenzer.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #134888|text/x-log |text/plain mime type| |
https://bugs.freedesktop.org/show_bug.cgi?id=103317
Michel Dänzer michel@daenzer.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #134889|text/x-log |text/plain mime type| |
https://bugs.freedesktop.org/show_bug.cgi?id=103317
--- Comment #2 from Michel Dänzer michel@daenzer.net --- Please attach the output of
xrandr --verbose
while the problem occurs (i.e. while e.g. 0ad is running and showing flickering).
Does not enabling TearFree or
Option "EnablePageFlip" "off"
avoid the problem?
https://bugs.freedesktop.org/show_bug.cgi?id=103317
--- Comment #3 from Torsten Kessler torkes94@gmail.com --- Created attachment 134912 --> https://bugs.freedesktop.org/attachment.cgi?id=134912&action=edit Output of xrandr --verbose
As suggested I turned EnablePageFlip off:
Section "Device" Identifier "AMD R9 390" Driver "amdgpu" Option "DRI" "3" Option "EnablePageFlip" "off" # Option "TearFree" "true" EndSection
But this doesn't avoid the problem. As before, everything works fine when I switch to FHD or radeonsi.
https://bugs.freedesktop.org/show_bug.cgi?id=103317
Michel Dänzer michel@daenzer.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #134912|text/x-log |text/plain mime type| |
https://bugs.freedesktop.org/show_bug.cgi?id=103317
--- Comment #4 from Michel Dänzer michel@daenzer.net --- (In reply to Torsten Kessler from comment #3)
As suggested I turned EnablePageFlip off:
[...]
But this doesn't avoid the problem.
Please attach the corresponding Xorg log file.
As before, everything works fine when I switch to FHD or radeonsi.
You cannot "switch to radeonsi", I assume you mean when you use the radeon kernel driver instead of amdgpu. The Mesa radeonsi driver is used in both cases.
You might want to try a kernel built from the amd-staging-drm-next branch of https://cgit.freedesktop.org/~agd5f/linux/ with CONFIG_DRM_AMD_DC=y at build time and amdgpu.dc=1 at runtime, to see if that works better.
https://bugs.freedesktop.org/show_bug.cgi?id=103317
--- Comment #5 from Torsten Kessler torkes94@gmail.com --- Created attachment 134943 --> https://bugs.freedesktop.org/attachment.cgi?id=134943&action=edit Second Xorg log with EnablePageFlip turned off
You're right. I was mixing things up. I meant loading the radeon module and blacklisting the amdgpu module solves the issue. I'm just downloading the kernel from the amd-staging-drm-next branch. I will see tomorow if it helps. Thank you for your help so far!
https://bugs.freedesktop.org/show_bug.cgi?id=103317
--- Comment #6 from Torsten Kessler torkes94@gmail.com --- The new display engine (amdgpu.dc=1) definitely helps. It nearly eliminates the flickering during videos or browsing. It has no effect on 3D applications, for example 0ad. There seems to be a bug in the amd-staging-drm-next branch. Rotating the screen with xrandr results in a blackscreen. But this will be a different bug report. That's why I using the kernel from the amd-staging-4.13 branch with amdgpu.dc=1.
https://bugs.freedesktop.org/show_bug.cgi?id=103317
Michel Dänzer michel@daenzer.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #134943|text/x-log |text/plain mime type| |
https://bugs.freedesktop.org/show_bug.cgi?id=103317
Michel Dänzer michel@daenzer.net changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |harry.wentland@amd.com, | |jordan.lazare@amd.com
--- Comment #7 from Michel Dänzer michel@daenzer.net --- (In reply to Torsten Kessler from comment #6)
The new display engine (amdgpu.dc=1) definitely helps. It nearly eliminates the flickering during videos or browsing. It has no effect on 3D applications, for example 0ad.
Adding DC developers to Cc. I'm afraid at this point it's unlikely that this issue will be fixed in the non-DC code.
https://bugs.freedesktop.org/show_bug.cgi?id=103317
Martin Peres martin.peres@free.fr changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |MOVED
--- Comment #8 from Martin Peres martin.peres@free.fr --- -- GitLab Migration Automatic Message --
This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.
You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/drm/amd/issues/246.
dri-devel@lists.freedesktop.org