https://bugzilla.kernel.org/show_bug.cgi?id=203471
Bug ID: 203471 Summary: Tearing on Raven Ridge and RX560X PRIME setup even with Vsync enabled Product: Drivers Version: 2.5 Kernel Version: 5.1 rc6 Hardware: All OS: Linux Tree: Mainline Status: NEW Severity: high Priority: P1 Component: Video(DRI - non Intel) Assignee: drivers_video-dri@kernel-bugs.osdl.org Reporter: haxk612@gmail.com Regression: No
I have Acer Nitro 5 AN515-42 with Ryzen 5 2500U and RX560X. When i launch some game with DRI_PRIME=1 to have it on dGPU there is huge tearing on top of the screen that is there with or without Vsync. If i launch the game on iGPU there is no tearing at all. Also the tearing happens only when the game is in fullscreen. If i take a screenshot there is no tearing in the screenshot. And i cannot post a picture as my phone camera is broken in my latest build of android. I have tried 5.2-wip branch and there is the same issue. Will post dmesg and journalctl in few hours.
https://bugzilla.kernel.org/show_bug.cgi?id=203471
--- Comment #1 from Haxk20 (haxk612@gmail.com) --- Created attachment 282573 --> https://bugzilla.kernel.org/attachment.cgi?id=282573&action=edit dmesg
https://bugzilla.kernel.org/show_bug.cgi?id=203471
--- Comment #2 from Haxk20 (haxk612@gmail.com) --- Created attachment 282575 --> https://bugzilla.kernel.org/attachment.cgi?id=282575&action=edit journalctl
If you need anything more please tell me.
https://bugzilla.kernel.org/show_bug.cgi?id=203471
--- Comment #3 from Michel Dänzer (michel@daenzer.net) --- Please attach the corresponding Xorg log file and the output of glxinfo (both with and without DRI_PRIME=1).
https://bugzilla.kernel.org/show_bug.cgi?id=203471
--- Comment #4 from Haxk20 (haxk612@gmail.com) --- Created attachment 282585 --> https://bugzilla.kernel.org/attachment.cgi?id=282585&action=edit Xorg log
https://bugzilla.kernel.org/show_bug.cgi?id=203471
--- Comment #5 from Haxk20 (haxk612@gmail.com) --- Created attachment 282587 --> https://bugzilla.kernel.org/attachment.cgi?id=282587&action=edit DRI_PRIME=1 glxinfo
https://bugzilla.kernel.org/show_bug.cgi?id=203471
--- Comment #6 from Haxk20 (haxk612@gmail.com) --- Created attachment 282589 --> https://bugzilla.kernel.org/attachment.cgi?id=282589&action=edit glxinfo
Here is Xorg log, glxinfo with DRI_PRIME=1 and glxinfo without PRIME.
https://bugzilla.kernel.org/show_bug.cgi?id=203471
Haxk20 (haxk612@gmail.com) changed:
What |Removed |Added ---------------------------------------------------------------------------- Kernel Version|5.1 rc6 |5.1 rc6 and | |drm-next-5.2-wip
https://bugzilla.kernel.org/show_bug.cgi?id=203471
--- Comment #7 from Haxk20 (haxk612@gmail.com) --- (In reply to Michel Dänzer from comment #3)
Please attach the corresponding Xorg log file and the output of glxinfo (both with and without DRI_PRIME=1).
Is there anything more you need to figure out whats casuing this bug ? I will try to play some game on HDMI output and see if its purely eDP issue or it applies to other connectors too. Will post tomorrow.
https://bugzilla.kernel.org/show_bug.cgi?id=203471
Michel Dänzer (michel@daenzer.net) changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |nicholas.kazlauskas@amd.com
--- Comment #8 from Michel Dänzer (michel@daenzer.net) --- The tearing occurs because amdgpu doesn't support scatter/gather scanout with Raven yet, so page flipping cannot be used.
For the time being, you can get rid of the tearing by enabling TearFree:
xrandr --output eDP --set TearFree on
See the amdgpu (4) manpage for more information about TearFree.
https://bugzilla.kernel.org/show_bug.cgi?id=203471
--- Comment #9 from Haxk20 (haxk612@gmail.com) --- Thank you.
https://bugzilla.kernel.org/show_bug.cgi?id=203471
--- Comment #10 from Haxk20 (haxk612@gmail.com) --- (In reply to Michel Dänzer from comment #8)
The tearing occurs because amdgpu doesn't support scatter/gather scanout with Raven yet, so page flipping cannot be used.
For the time being, you can get rid of the tearing by enabling TearFree:
xrandr --output eDP --set TearFree on
See the amdgpu (4) manpage for more information about TearFree.
Also i forgot to ask. Isnt there an time estimate when can we expect scatter scanout support for Raven ?
https://bugzilla.kernel.org/show_bug.cgi?id=203471
vr00m (vmuppalla@outlook.com) changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |vmuppalla@outlook.com
--- Comment #11 from vr00m (vmuppalla@outlook.com) --- ICYMI, I was able to solve the tearing problem with raven ridge using iommu=soft boot param.
https://bugzilla.kernel.org/show_bug.cgi?id=203471
--- Comment #12 from Michel Dänzer (michel@daenzer.net) --- (In reply to vr00m from comment #11)
ICYMI, I was able to solve the tearing problem with raven ridge using iommu=soft boot param.
Tearing isn't related to the IOMMU. Scatter/gather scanout support for Raven Ridge is landing now, maybe you're running a development snapshot kernel which has it already?
https://bugzilla.kernel.org/show_bug.cgi?id=203471
--- Comment #13 from Haxk20 (haxk612@gmail.com) --- (In reply to Michel Dänzer from comment #12)
(In reply to vr00m from comment #11)
ICYMI, I was able to solve the tearing problem with raven ridge using iommu=soft boot param.
Tearing isn't related to the IOMMU. Scatter/gather scanout support for Raven Ridge is landing now, maybe you're running a development snapshot kernel which has it already?
Could you please point us to the patch series that implements scatter/gather scanout support for Raven Ridge ? I havent found it in rc4 nor in drm-next-5.4
Thank you.
https://bugzilla.kernel.org/show_bug.cgi?id=203471
Alex Deucher (alexdeucher@gmail.com) changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |alexdeucher@gmail.com
--- Comment #14 from Alex Deucher (alexdeucher@gmail.com) --- https://cgit.freedesktop.org/~agd5f/linux/commit/?h=drm-next-5.4&id=e4c4... https://cgit.freedesktop.org/~agd5f/linux/commit/?h=drm-next-5.4&id=3d1b... https://cgit.freedesktop.org/~agd5f/linux/commit/?h=drm-next-5.4&id=ddcb... https://cgit.freedesktop.org/~agd5f/linux/commit/?h=drm-next-5.4&id=1c42... https://cgit.freedesktop.org/~agd5f/linux/commit/?h=drm-next-5.4&id=f2bd...
https://bugzilla.kernel.org/show_bug.cgi?id=203471
--- Comment #15 from Haxk20 (haxk612@gmail.com) --- I have tried manually patching 5.3rc4 and even compiling drm-next-5.4 branch but sadly i still get tearing on the screen. Is there a config option to enable it or its enabled by default ? And as before TearFree fixes the tearing but causes stuttering sometimes so not perfect solution by any means.
https://bugzilla.kernel.org/show_bug.cgi?id=203471
--- Comment #16 from Haxk20 (haxk612@gmail.com) --- I just tried linux kernel from master and no improvement. Games still produce tearing even with Vsync on or off. Only way to get rid of it is TearFree set to on. Is there something im missing or what ?
https://bugzilla.kernel.org/show_bug.cgi?id=203471
Haxk20 (haxk612@gmail.com) changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |CODE_FIX
--- Comment #17 from Haxk20 (haxk612@gmail.com) --- My bad. I just replaced the panel inside the laptop with 120Hz one and tearing is gone.
https://bugzilla.kernel.org/show_bug.cgi?id=203471
Haxk20 (haxk612@gmail.com) changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|CODE_FIX |---
--- Comment #18 from Haxk20 (haxk612@gmail.com) --- Well i was blind it seems. The tearing is small but still is surely there sadly. Tearing is gone if using just iGPU. When using dGPU with PRIME then tearing is there.
https://bugzilla.kernel.org/show_bug.cgi?id=203471
--- Comment #19 from Haxk20 (haxk612@gmail.com) --- And yes im running linux kernel from master so the DRM patches for scatther/gather are there. Still tearing even tho they are there. Help ?
https://bugzilla.kernel.org/show_bug.cgi?id=203471
Haxk20 (haxk612@gmail.com) changed:
What |Removed |Added ---------------------------------------------------------------------------- Kernel Version|5.1 rc6 and |git master |drm-next-5.2-wip |
https://bugzilla.kernel.org/show_bug.cgi?id=203471
Haxk20 (haxk612@gmail.com) changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution|--- |CODE_FIX
https://bugzilla.kernel.org/show_bug.cgi?id=203471
Haxk20 (haxk612@gmail.com) changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|CODE_FIX |---
--- Comment #20 from Haxk20 (haxk612@gmail.com) --- Can we get help on this ? This is a kind of bad bug because it seems to happen in some games and in some it does not. Not only that but it started happening in video too on firefox and that is really horrible.
https://bugzilla.kernel.org/show_bug.cgi?id=203471
--- Comment #21 from Michel Dänzer (michel@daenzer.net) --- (In reply to Haxk20 from comment #20)
Not only that but it started happening in video too on firefox and that is really horrible.
Sounds like you're referring to https://gitlab.freedesktop.org/xorg/xserver/issues/924 ? I thought we'd just established that's not using PRIME, in which case it's probably not directly related to this.
https://bugzilla.kernel.org/show_bug.cgi?id=203471
--- Comment #22 from Haxk20 (haxk612@gmail.com) --- (In reply to Michel Dänzer from comment #21)
(In reply to Haxk20 from comment #20)
Not only that but it started happening in video too on firefox and that is really horrible.
Sounds like you're referring to https://gitlab.freedesktop.org/xorg/xserver/issues/924 ? I thought we'd just established that's not using PRIME, in which case it's probably not directly related to this.
Yes. I will reopen that bug again as you closed it but well its not solved yet.
https://bugzilla.kernel.org/show_bug.cgi?id=203471
--- Comment #23 from Haxk20 (haxk612@gmail.com) --- For people wondering yes this is still an issue. The bug is 1 year old now. scatter/gather support has been enabled in the kernel for a long time now yet its still broken.
dri-devel@lists.freedesktop.org