Bug 1402293

Summary: White dots/noise/speckling/shimmering/corruption on Radeon HD6320
Product: [Fedora] Fedora Reporter: mrj <mrj>
Component: xorg-x11-drv-atiAssignee: X/OpenGL Maintenance List <xgl-maint>
Status: CLOSED EOL QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 25CC: ajax, cz172638, extras-orphan, gansalmon, ichavero, itamar, jonathan, kernel-maint, labbott, madhu.chinakonda, mchehab, xgl-maint
Target Milestone: ---Flags: mrj: needinfo+
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-12-12 10:51:35 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Boot dmsg output on Fedora 25 none

Description mrj 2016-12-07 08:02:22 UTC
Created attachment 1228923 [details]
Boot dmsg output on Fedora 25

A default Gnome install of either Fedora 25 or Fedora 24 (latest spin) Workstation, on a machine with a Radeon HD6320 graphics chip, has a display that all over shimmers with white noise (a sort of render echo), as seen in the following video:

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

This occurs with both X and Wayland, so is probably an issue with the kernel Radeon driver. A Fedora 25 boot log is attached.

No such corruption occurs on the latest spin of the Fedora 23 Workstation live image, and on earlier releases.

Comment 1 mrj 2016-12-08 20:32:37 UTC
The problem doesn't occur after upgrading xorg-x11-drv-ati in Fedora 23 to 7.6.1-3.20160215, which has the same git date as the F24 package, which exhibits the problem when F24 is running.

Moreover, upgrading the F23 kernel from 4.2.3-300 to 4.8.11-100 caused the problem to occur on F23.

So the problem looks to be in the kernel package rather than the xorg-x11-drv-ati package.

I'd like some help trying to bisect by installing different F23 kernel packages. 

I've found a history here:

https://repos.fedorapeople.org/repos/thl/kernel-vanilla-fedora/fedora-23/history

but I'd appreciate some help on how to install an arbitrary one of these. I've been unsuccessful in my attempts with dnf. Are all these kernel versions still in a repository somewhere, or will I have to do a git bisect with compiles?

Thanks.

Comment 2 Laura Abbott 2016-12-08 21:58:52 UTC
Please see https://fedoraproject.org/wiki/KernelBugTriage#Video_Subsystem_bugs for why the component was changed to xorg-x11-drv-ati. You may have better luck with http://koji.fedoraproject.org/koji/packageinfo?packageID=8 for finding appropriate kernels.

Comment 3 mrj 2016-12-08 23:08:14 UTC
OK. Thank you Laura.

While I wasn't able to install old kernels directly from the koji repos, I was able to download them via commands like

wget -r -np -nd -R '*debug*','index*' http://kojipkgs.fedoraproject.org/packages/kernel/4.5.5/200.fc23/x86_64/

then

dnf install *

The result is that the last working kernel is 4.5.4-200, and 4.5.5-200 exhibits the problem.

I'll now look to see what commits could be the cause.

Note: Often, rather than a noisy display, the problem causes the display to go black (hang?) during boot, requiring a reboot to try again.

Comment 4 mrj 2016-12-08 23:32:29 UTC
Looking at the 4.5.5 changelog https://www.kernel.org/pub/linux/kernel/v4.x/ChangeLog-4.5.5 , there are three radeon commits:

drm/radeon: fix DP mode validation
https://github.com/torvalds/linux/commit/ff0bd441bdfbfa09d05fdba9829a0401a46635c1

drm/radeon: fix DP link training issue with second 4K monitor
https://github.com/torvalds/linux/commit/1a738347df2ee4977459a8776fe2c62196bdcb1b

and

drm/radeon: fix PLL sharing on DCE6.1 (v2)
https://github.com/torvalds/linux/commit/e3c00d87845ab375f90fa6e10a5e72a3a5778cd3

Comment 5 mrj 2016-12-09 04:59:43 UTC
Reversing all three patches didn't fix the problem, including a fourth patch that does the same as the first but for GPUs embedded in AMD CPUs (which is the hardware I have):

https://github.com/torvalds/linux/commit/c47b9e0944e483309d66c807d650ac8b8ceafb57#diff-c9c35e6d6def5e31f48356c03ca18a1b

So the problem must lie in either another vanilla patch or another Fedora-only patch.

Comment 6 mrj 2016-12-10 16:42:29 UTC
Sorry, I needed to run "dracat" to make sure the new modules loaded on boot (then had a struggle with magic numbers).

I've verified that the problem goes away when only this commit is reversed:

drm/radeon: fix DP mode validation
https://github.com/torvalds/linux/commit/ff0bd441bdfbfa09d05fdba9829a0401a46635c1

It wouldn't be easy for me to work out what code fixes my problem without re-introducing the original problem:

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

Comment 7 mrj 2017-01-29 03:53:06 UTC
The freedesktop.org bug for this is

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

Comment 8 Fedora End Of Life 2017-11-16 19:45:19 UTC
This message is a reminder that Fedora 25 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 25. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '25'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version'
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not
able to fix it before Fedora 25 is end of life. If you would still like
to see this bug fixed and are able to reproduce it against a later version
of Fedora, you are encouraged  change the 'version' to a later Fedora
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.

Comment 9 Fedora End Of Life 2017-12-12 10:51:35 UTC
Fedora 25 changed to end-of-life (EOL) status on 2017-12-12. Fedora 25 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.