Skip to contentSkip to conversation

New: Tearing on Raven Ridge and RX560X PRIME setup even with Vsync enabled

Bug 203471 [email protected] 1 participant 27 messages May 1, 2019 – Oct 16, 2020

lore
Share & tools
lore
#0 lore raw

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

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 203471] Tearing on Raven Ridge and RX560X PRIME setup even with Vsync enabled

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

--- Comment #1 from Haxk20 ([email protected]) ---
Created attachment 282573
--> https://bugzilla.kernel.org/attachment.cgi?id=282573&action=edit
dmesg

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 203471] Tearing on Raven Ridge and RX560X PRIME setup even with Vsync enabled

In reply to [email protected]

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

--- Comment #2 from Haxk20 ([email protected]) ---
Created attachment 282575
--> https://bugzilla.kernel.org/attachment.cgi?id=282575&action=edit
journalctl

If you need anything more please tell me.

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 203471] Tearing on Raven Ridge and RX560X PRIME setup even with Vsync enabled

In reply to [email protected]

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

--- Comment #3 from Michel Dänzer ([email protected]) ---
Please attach the corresponding Xorg log file and the output of glxinfo (both with and without DRI_PRIME=1).

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 203471] Tearing on Raven Ridge and RX560X PRIME setup even with Vsync enabled

In reply to [email protected]

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

--- Comment #4 from Haxk20 ([email protected]) ---
Created attachment 282585
--> https://bugzilla.kernel.org/attachment.cgi?id=282585&action=edit
Xorg log

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 203471] Tearing on Raven Ridge and RX560X PRIME setup even with Vsync enabled

In reply to [email protected]

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

--- Comment #5 from Haxk20 ([email protected]) ---
Created attachment 282587
--> https://bugzilla.kernel.org/attachment.cgi?id=282587&action=edit
DRI_PRIME=1 glxinfo

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 203471] Tearing on Raven Ridge and RX560X PRIME setup even with Vsync enabled

In reply to [email protected]

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

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

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 203471] Tearing on Raven Ridge and RX560X PRIME setup even with Vsync enabled

In reply to [email protected]

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

Haxk20 ([email protected]) changed:

What |Removed |Added
----------------------------------------------------------------------------

     Kernel Version|5.1 rc6                     |5.1 rc6 and
                   |                            |drm-next-5.2-wip
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 203471] Tearing on Raven Ridge and RX560X PRIME setup even with Vsync enabled

In reply to [email protected]

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

--- Comment #7 from Haxk20 ([email protected]) --- (In reply to Michel Dänzer from comment #3)

Quoted 2 lines

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.

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 203471] Tearing on Raven Ridge and RX560X PRIME setup even with Vsync enabled

In reply to [email protected]

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

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

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

--- Comment #8 from Michel Dänzer ([email protected]) ---
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.

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 203471] Tearing on Raven Ridge and RX560X PRIME setup even with Vsync enabled

In reply to [email protected]

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

--- Comment #9 from Haxk20 ([email protected]) --- 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
#11 lore raw

[Bug 203471] Tearing on Raven Ridge and RX560X PRIME setup even with Vsync enabled

In reply to [email protected]

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

--- Comment #10 from Haxk20 ([email protected]) --- (In reply to Michel Dänzer from comment #8)

Quoted 8 lines

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 ?

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 203471] Tearing on Raven Ridge and RX560X PRIME setup even with Vsync enabled

In reply to [email protected]

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

vr00m ([email protected]) changed:

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

--- Comment #11 from vr00m ([email protected]) --- ICYMI, I was able to solve the tearing problem with raven ridge using iommu=soft boot param.

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 203471] Tearing on Raven Ridge and RX560X PRIME setup even with Vsync enabled

In reply to [email protected]

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

--- Comment #12 from Michel Dänzer ([email protected]) --- (In reply to vr00m from comment #11)

Quoted 2 lines

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?

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 203471] Tearing on Raven Ridge and RX560X PRIME setup even with Vsync enabled

In reply to [email protected]

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

--- Comment #13 from Haxk20 ([email protected]) --- (In reply to Michel Dänzer from comment #12)

Quoted 7 lines

(In reply to vr00m from comment #11)

Quoted 2 lines

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.

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 203471] Tearing on Raven Ridge and RX560X PRIME setup even with Vsync enabled

In reply to [email protected]
#16 lore raw

[Bug 203471] Tearing on Raven Ridge and RX560X PRIME setup even with Vsync enabled

In reply to [email protected]

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

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

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 203471] Tearing on Raven Ridge and RX560X PRIME setup even with Vsync enabled

In reply to [email protected]

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

--- Comment #16 from Haxk20 ([email protected]) --- 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 ?

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 203471] Tearing on Raven Ridge and RX560X PRIME setup even with Vsync enabled

In reply to [email protected]

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

Haxk20 ([email protected]) changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|NEW                         |RESOLVED
         Resolution|---                         |CODE_FIX

--- Comment #17 from Haxk20 ([email protected]) ---
My bad. I just replaced the panel inside the laptop with 120Hz one and tearing is gone.

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 203471] Tearing on Raven Ridge and RX560X PRIME setup even with Vsync enabled

In reply to [email protected]

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

Haxk20 ([email protected]) changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|RESOLVED                    |REOPENED
         Resolution|CODE_FIX                    |---

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

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 203471] Tearing on Raven Ridge and RX560X PRIME setup even with Vsync enabled

In reply to [email protected]

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

--- Comment #19 from Haxk20 ([email protected]) ---
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 ?

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 203471] Tearing on Raven Ridge and RX560X PRIME setup even with Vsync enabled

In reply to [email protected]

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

Haxk20 ([email protected]) changed:

What |Removed |Added
----------------------------------------------------------------------------

     Kernel Version|5.1 rc6 and                 |git master
                   |drm-next-5.2-wip            |
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 203471] Tearing on Raven Ridge and RX560X PRIME setup even with Vsync enabled

In reply to [email protected]

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

Haxk20 ([email protected]) changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|REOPENED                    |RESOLVED
         Resolution|---                         |CODE_FIX
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
#23 lore raw

[Bug 203471] Tearing on Raven Ridge and RX560X PRIME setup even with Vsync enabled

In reply to [email protected]

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

Haxk20 ([email protected]) changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|RESOLVED                    |REOPENED
         Resolution|CODE_FIX                    |---

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

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
#24 lore raw

[Bug 203471] Tearing on Raven Ridge and RX560X PRIME setup even with Vsync enabled

In reply to [email protected]

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

--- Comment #21 from Michel Dänzer ([email protected]) --- (In reply to Haxk20 from comment #20)

Quoted 2 lines

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.

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
#25 lore raw

[Bug 203471] Tearing on Raven Ridge and RX560X PRIME setup even with Vsync enabled

In reply to [email protected]

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

--- Comment #22 from Haxk20 ([email protected]) --- (In reply to Michel Dänzer from comment #21)

Quoted 8 lines

(In reply to Haxk20 from comment #20)

Quoted 2 lines

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.

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
#26 lore raw

[Bug 203471] Tearing on Raven Ridge and RX560X PRIME setup even with Vsync enabled

In reply to [email protected]

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

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

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