Skip to contentSkip to conversation

radeonsi 120Hz graphic glitches

Bug 87796 [email protected] 1 participant 35 messages Dec 28, 2014 – Nov 19, 2019

lore
Share & tools
lore
#0 lore raw

https://bugs.freedesktop.org/show_bug.cgi?id=87796

Bug ID: 87796
Summary: radeonsi 120Hz graphic glitches
Product: Mesa
Version: git
Hardware: x86-64 (AMD64)
OS: Linux (All)
Status: NEW
Severity: normal
Priority: medium
Component: Drivers/Gallium/radeonsi
Assignee: [email protected]
Reporter: [email protected]

Created attachment 111427
--> https://bugs.freedesktop.org/attachment.cgi?id=111427&action=edit
video screenshot of the glitch

When I enable 120Hz refresh rate in the Radeon R9 290 card, with my Benq XL2420T monitor, I get horizontal glitches in the image. That happens in KDE, Unity, XFCE (all with or without compositing), and games. Without compositing, the windows decorations in KDE show artifacts in 60 and 120Hz.

60Hz refresh rate works okay. Fglx proprietary driver works okay with 120Hz. I also have a Radeon HD 6970 with the radeon OSS driver and it also works okay in 120Hz in my system.

Currently I am using Kubuntu 14.10, kernel 3.19RC1 and Mesa git from this PPA:
https://launchpad.net/~paulo-miguel-dias/+archive/ubuntu/mesa

The card is a Sapphire Radeon R9 290 4GB Tri-X.

This bug is happening since I got this card, in September.

I cant get a direct screenshot nor taking photos (with a smartphone) of the glitch happening, so I take a video of it with a phone and then take a screenshot.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#1 lore raw

https://bugs.freedesktop.org/show_bug.cgi?id=87796

Vladimir Ysikov <[email protected]> changed:

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

 Attachment #111427|text/plain                  |image/png
          mime type|                            |
Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#2 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=87796

--- Comment #1 from Michel Dänzer <[email protected]> --- Please attach /var/log/Xorg.0.log and the output of dmesg.

Can you upload the video somewhere?

If not, please provide more details about the glitches, e.g.: Are they always visible, or only intermittently? If the latter, how often? Does the vertical location of the glitches change or is it always the same? ...

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#3 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=87796

--- Comment #2 from Sandro <[email protected]> --- Same here with my gigabyte r9 290.
The glitches pop up randomly.
Here is the video http://youtu.be/ilH6em3eIrY

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#4 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=87796

--- Comment #3 from Alex Deucher <[email protected]> --- (In reply to Sandro from comment #2)

Quoted 3 lines

Same here with my gigabyte r9 290.
The glitches pop up randomly.
Here is the video http://youtu.be/ilH6em3eIrY

The link says the video is private.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#5 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=87796

--- Comment #4 from Sandro <[email protected]> --- (In reply to Alex Deucher from comment #3)

Quoted 6 lines

(In reply to Sandro from comment #2)

Quoted 3 lines

Same here with my gigabyte r9 290.
The glitches pop up randomly.
Here is the video http://youtu.be/ilH6em3eIrY

The link says the video is private.

try now

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#7 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=87796

--- Comment #6 from Clésio Luiz <[email protected]> --- Created attachment 112180
--> https://bugs.freedesktop.org/attachment.cgi?id=112180&action=edit
dmesg

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#8 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=87796

--- Comment #7 from Clésio Luiz <[email protected]> --- Created attachment 112181
--> https://bugs.freedesktop.org/attachment.cgi?id=112181&action=edit
/var/log/Xorg.0.log

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#9 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=87796

--- Comment #8 from Clésio Luiz <[email protected]> --- (In reply to Michel Dänzer from comment #1)

Quoted 7 lines

Please attach /var/log/Xorg.0.log and the output of dmesg.

Can you upload the video somewhere?

If not, please provide more details about the glitches, e.g.: Are they always visible, or only intermittently? If the latter, how often? Does the vertical location of the glitches change or is it always the same? ...

I set the 120Hz and restarted. Then I opened Konsole and got the results and put then as attachments.

Finally got a video and put it in Youtube:

https://www.youtube.com/watch?v=W7a9nrwPPeY

I cant get the video with tools like Kazam or SimpleScreenRecorder. I have to grab it with a external camera.

The glitches are intermittently. The image cam be fine for a fell seconds then the glitches show themselves.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#10 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=87796

--- Comment #9 from Clésio Luiz <[email protected]> --- (In reply to Clésio Luiz from comment #8)

Quoted 2 lines

I cant get the video with tools like Kazam or SimpleScreenRecorder. I have to grab it with a external camera.

I mean, the glitches don't appear in the video files created with the above tools, for some reason. The only way to show you guys the problem is to record it with a external camera.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#11 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=87796

--- Comment #10 from Alex Deucher <[email protected]> ---
It looks like maybe the dpm memory reclocking occasionally misses the vblank. Do you still get the glitches if you connect a secondary display or disable dynamic clocking? To disable able dynamic clocking (as root):
echo high > /sys/class/drm/card0/device/power_dpm_force_performance_level to re-enable it (as root):
echo auto > /sys/class/drm/card0/device/power_dpm_force_performance_level

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#12 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=87796

--- Comment #11 from Clésio Luiz <[email protected]> --- (In reply to Alex Deucher from comment #10)

Quoted 6 lines

It looks like maybe the dpm memory reclocking occasionally misses the vblank. Do you still get the glitches if you connect a secondary display or disable dynamic clocking? To disable able dynamic clocking (as root):
echo high > /sys/class/drm/card0/device/power_dpm_force_performance_level to re-enable it (as root):
echo auto > /sys/class/drm/card0/device/power_dpm_force_performance_level

The High value makes the glitches go away. As soon as I set the Auto value, the glitches reappear.

I don't have access to a second display to test right now, only tomorrow.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#14 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=87796

--- Comment #13 from Andreas Hartmetz <[email protected]> ---
I have a somewhat similar issue with radeonsi, latest everything (xorg, llvm, mesa) except Linux kernel which is 3.17.8, and Cape Verde PRO (aka Radeon HD 7750) hardware. The screen sometimes turns completely black for a frame. It happened a few times per hour. In the past this could be reliably avoided by pinning the power setting to min or max, but DPM changes prevented that fix from working.
Now that I know this:
echo high > /sys/class/drm/card0/device/power_dpm_force_performance_level (looks similar to the one that used to work a few kernels earlier?) I can avoid the problem again, but of course at the cost of power consumption. The underlying issue might be the same timing problem. I can file a new bug if you think it is a different issue.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#15 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=87796

--- Comment #14 from Clésio Luiz <[email protected]> ---
I tested now with 2 displays, the Benq monitor (DVI cable) at 120Hz and a Lg TV (HDMI cable) and the glitches disappear.

When I disable the TV (from System Settings) and disconnect the cable, the glitches are still gone. Only when I restart the system the glitches come back.

I should mention that any refresh rate above 60Hz triggers the problem, not only 120Hz.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#16 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=87796

Alex Deucher <[email protected]> changed:

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

          Component|Drivers/Gallium/radeonsi    |DRM/Radeon
            Version|git                         |unspecified
            Product|Mesa                        |DRI
Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#17 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=87796

--- Comment #15 from Alex Deucher <[email protected]> --- Created attachment 112228
--> https://bugs.freedesktop.org/attachment.cgi?id=112228&action=edit
add some debugging output

Based on the timing for the 1920x1080@120 timing from your xorg log, it looks like it should be just under the switch limit. Can you apply the attached patch and switch to the problematic mode and then attach your dmesg output so I can see what's happening?

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#18 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=87796

--- Comment #16 from Clésio Luiz <[email protected]> ---
I didn't compiled the driver myself, got it from a repository. I'm afraid that applying a patch and compile the driver is out of my knowledge... But I'm more than happy to follow instructions.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#19 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=87796

--- Comment #17 from Alex Deucher <[email protected]> --- (In reply to Clésio Luiz from comment #16)

Quoted 3 lines

I didn't compiled the driver myself, got it from a repository. I'm afraid that applying a patch and compile the driver is out of my knowledge... But I'm more than happy to follow instructions.

If you can download the source to your kernel, copy the patch to the root of the kernel tree then do the following:

patch -p1 -i dpm_vblank_dump.diff
make -j5
sudo make modules_install
sudo make install

Then reboot and select the new kernel from the grub menu.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#20 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=87796

Alex Deucher <[email protected]> changed:

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

--- Comment #18 from Alex Deucher <[email protected]> --- *** Bug 89198 has been marked as a duplicate of this bug. ***

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#21 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=87796

--- Comment #19 from Alex Deucher <[email protected]> --- Created attachment 113617
--> https://bugs.freedesktop.org/attachment.cgi?id=113617&action=edit
fix 1/2

The attaches patches should fix the issue, but I would still like to get the output of the debugging patch in comment 15 so that I can fine tune things if possible.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#22 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=87796

--- Comment #20 from Alex Deucher <[email protected]> --- Created attachment 113618
--> https://bugs.freedesktop.org/attachment.cgi?id=113618&action=edit
fix 2/2

Please apply both patches.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#23 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=87796

--- Comment #21 from Andreas Gihr <[email protected]> --- I'm still having this issue.
Here's some dmesg output:

[  363.951100] -- 2560x1440 --
[  363.951101] radeon_crtc->hw_mode.crtc_htotal: 2640
[  363.951101] radeon_crtc->hw_mode.clock: 482640
[  363.951102] radeon_crtc->hw_mode.crtc_vblank_end: 1525
[  363.951102] radeon_crtc->hw_mode.crtc_vdisplay: 1440
[  363.951103] radeon_crtc->v_border: 0
[  363.951103] vblank_time_us: 425
[  363.951104] vblank_lines: 85
[  363.951104] line_time_us: 5
[  363.951105] vblank_time: 425, switch_limit: 450
Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#24 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=87796

--- Comment #22 from Alex Deucher <[email protected]> --- (In reply to Andreas Gihr from comment #21)

Quoted 1 line

I'm still having this issue.

Does it still happen with the patches applied?

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#25 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=87796

--- Comment #23 from Andreas Gihr <[email protected]> --- I'm using the newest kernel from git.
It said: Reversed (or previously applied) patch detected!

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#26 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=87796

--- Comment #24 from Alex Deucher <[email protected]> --- Created attachment 114443
--> https://bugs.freedesktop.org/attachment.cgi?id=114443&action=edit
possible fix

Does this patch on top of latest git help?

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#28 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=87796

Alex Deucher <[email protected]> changed:

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

 Attachment #114443|0                           |1

is obsolete| |

--- Comment #26 from Alex Deucher <[email protected]> --- Created attachment 114452
--> https://bugs.freedesktop.org/attachment.cgi?id=114452&action=edit
possible fix

Does this patch against latest git help?

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#31 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=87796

--- Comment #29 from Clésio Luiz <[email protected]> --- The bug seems to be gone for me. Using Kernel 4.0 RC7 and latest Paulo Dias Mesa git PPA.

Temperature of the GPU appears to be normal at idle.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#32 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=87796

--- Comment #30 from Clésio Luiz <[email protected]> --- After reading the Andreas Gihr post about greater power consumption, I did a little test. Using Kubuntu KDE 4 I put the display at 60Hz and watched the GPU temperature drop 3°C. Put it back at 120Hz and the temp go up the same 3°C.

But to me, this is expected. The GPU is working more to double the FPS of the KDE compositing. So is natural it getting hotter.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#33 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=87796

--- Comment #31 from Andreas Gihr <[email protected]> ---
The power consumption rises about 40 watts at 120hz. This is the case in KDE and in Openbox without compositing. In Windows there's about 1 watt difference.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#34 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=87796

Martin Peres <[email protected]> changed:

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

         Resolution|---                         |MOVED
             Status|NEW                         |RESOLVED

--- Comment #32 from Martin Peres <[email protected]> --- -- 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/567.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel