Bug 108322 - RX580 Display flickering after waking from suspend
Summary: RX580 Display flickering after waking from suspend
Status: RESOLVED MOVED
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/AMDgpu (show other bugs)
Version: XOrg git
Hardware: x86-64 (AMD64) Linux (All)
: medium major
Assignee: Default DRI bug account
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-10-11 03:02 UTC by bmilreu
Modified: 2019-11-19 08:58 UTC (History)
2 users (show)

See Also:
i915 platform:
i915 features:


Attachments
dmesg | grep -i amd (1023 bytes, text/plain)
2018-10-11 03:39 UTC, bmilreu
no flags Details
dmesg | grep -i gpu (1.01 KB, text/plain)
2018-10-11 03:40 UTC, bmilreu
no flags Details
dmesg | grep -i drm (3.53 KB, text/plain)
2018-10-11 03:40 UTC, bmilreu
no flags Details
xorg log (135 bytes, text/plain)
2018-10-11 03:41 UTC, bmilreu
no flags Details
dmesg (77.06 KB, text/plain)
2018-10-11 03:45 UTC, bmilreu
no flags Details
fixed xorg log (222.22 KB, text/plain)
2018-10-11 04:07 UTC, bmilreu
no flags Details

Description bmilreu 2018-10-11 03:02:04 UTC
GPU RX580 Nitro+ over DisplayPort to a single AOC 75hz monitor. Issue is on last kernels 4.18 4.19 but not in 4.14.

Screen starts flickering until reboot if I sleep/wake or if I manually switch the monitor off/on.

Tried to turn amdgpu.dc=0, screen then flickers everywhere anytime unless I manually change frequency from 75hz to 60hz. That only solves it inside KDE though.

Checking gpu related logs shows this error, but couldn't find anything else:
"Invalid PCI ROM header signature: expecting 0xaa55, got 0xffff"
Comment 1 Alex Deucher 2018-10-11 03:05:31 UTC
Please attach your dmesg output and Xorg log if using X.
Comment 2 bmilreu 2018-10-11 03:39:37 UTC
Created attachment 141985 [details]
dmesg | grep -i amd
Comment 3 bmilreu 2018-10-11 03:40:10 UTC
Created attachment 141986 [details]
dmesg | grep -i gpu
Comment 4 bmilreu 2018-10-11 03:40:30 UTC
Created attachment 141987 [details]
dmesg | grep -i drm
Comment 5 bmilreu 2018-10-11 03:41:42 UTC
Created attachment 141988 [details]
xorg log
Comment 6 Alex Deucher 2018-10-11 03:42:09 UTC
Please just attach the full dmesg output.
Comment 7 bmilreu 2018-10-11 03:45:31 UTC
Created attachment 141990 [details]
dmesg
Comment 8 Alex Deucher 2018-10-11 03:48:56 UTC
Xorg log seems to be broken.
Comment 9 bmilreu 2018-10-11 04:07:31 UTC
Created attachment 141991 [details]
fixed xorg log

sorry
Comment 11 bmilreu 2018-10-13 01:03:46 UTC
Compiled last AMD-drm-next kernel from git and problem's still here, even worse, it's now flickering everywhere at 75hz.
Discovered from another bug report that forcing clocks to high "fixed" the flickering, and it does indeed.
It also doesn't flicker if I force 60hz everywhere. It's worth mentioning its a 1080p Freesync 75hz DP1.2 monitor.
Comment 12 bmilreu 2018-10-13 13:20:32 UTC
Created custom modes and forced it into xrandr. 75hz flickers, but 73hz is working fine it seems. This is on last amd-drm-next-staging 

~ >>> gtf 1920 1080 73                                                                                                                                                

  # 1920x1080 @ 73.00 Hz (GTF) hsync: 82.20 kHz; pclk: 214.37 MHz
  Modeline "1920x1080_73.00"  214.37  1920 2056 2264 2608  1080 1081 1084 1126  -HSync +Vsync
~ >>> xrandr --newmode "1920x1080_73.00"  214.37  1920 2056 2264 2608  1080 1081 1084 1126  -HSync +Vsync                                                        [130]
~ >>> xrandr --addmode DisplayPort-0 "1920x1080_73.00"                                                                                                                
~ >>> xrandr --output DisplayPort-0 --mode "1920x1080_73.00"                                                                                                          

Will keep it like this for now and test it in games, but in kde plasma/chromium 73hz is smooth as silk it seems. Another thing I noticed is gtf generates higher pixel clocks than the ones from my monitor (edid?). You can compare above result with the attached xorg log.
Comment 13 Nicholas Kazlauskas 2018-10-15 13:11:07 UTC
(In reply to bmilreu from comment #10)
> https://www.phoronix.com/scan.php?page=news_item&px=AMD-V4-Adaptive-VRR-
> FreeSync
> Is this maybe related?

This would be unrelated - those patches are still in review and not part of any tree yet.

Luminance flickering is also a bit different from typical flickering. It is a more subtle effect and doesn't have any sort of visual corruption associated with it - lines, the screen displaying black, etc.
Comment 14 bmilreu 2018-11-14 05:31:54 UTC
Problem still present for me on kernels 4.18, 4.19, 4.20 and 4.21-drm-next
Comment 15 bmilreu 2018-12-25 22:55:11 UTC
4.20 released with this bug still, now starts flickering everywhere since start like before. Please look at this
Comment 16 Martin Peres 2019-11-19 08:58:22 UTC
-- 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/551.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.