Bug 69062

Summary: Corrupted visuals in Gnome3 (A6-4400M)
Product: DRI Reporter: LRN <lrn1986>
Component: DRM/RadeonAssignee: Default DRI bug account <dri-devel>
Status: RESOLVED MOVED QA Contact:
Severity: normal    
Priority: medium    
Version: DRI git   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments:
Description Flags
Corrupted shell
none
dmesg
none
Xorg log none

Description LRN 2013-09-07 01:42:29 UTC
Created attachment 85385 [details]
Corrupted shell

On boot gdm3 looks fine (displays a list of users).
When i choose a user from the list, the animation plays out - and that's when the corruption starts (missing text and missing graphics).
I can still log in by typing the password.
Once logged in, gnome shell looks fine at first. Opening the Activities screen might cause minor corruption (for example, hovering over icons on the left panel might show corrupted selection rectangle fadein). Typing in the Activities screen _always_ causes major corruption in visuals.
Only Gnome shell (top bar, Activities, window switcher) is affected. Applications continue to be drawn correctly.

Gnome shell reset (Alt+F2, r) cleans up corruption from the shell (completely or almost completely), but it quickly returns.

Tried changing radeon.gartsize on boot - no difference.

No errors on Xorg.log
No errors in dmesg

This is a regression (things used to work ~half a year ago)

Versions:
 *Gnome3
  3.8
  Debian sid/experimental

 *kernel:
  git://people.freedesktop.org/~airlied/linux
  86a7e1224a68511d3a1ae0b7e11581b9d37723ae
  (also tried older kernels, as far as 3.8rc4 - same thing, this doesn't seem to be kernel-dependent)

 *drm
  git://anongit.freedesktop.org/git/mesa/drm
  d18cd0c7ccf88c9f6585aaa3cc57f0f064d7310b

 *mesa
  git://anongit.freedesktop.org/git/mesa/mesa
  505fad04f10eee1efdfcd8986b4d484b49d39986

 *xorg (radeon driver, xserver, and its dependencies)
  git
  latest versions on 06.09.2013

A screenshot is attached.
Comment 1 LRN 2013-09-07 01:42:56 UTC
Created attachment 85386 [details]
dmesg
Comment 2 LRN 2013-09-07 01:43:14 UTC
Created attachment 85387 [details]
Xorg log
Comment 3 Alex Deucher 2013-09-09 15:46:58 UTC
Is this a regression?  Does disabling tiling help?

Add:

Option "ColorTiling" "False"
Option "ColorTiling2D" "False"

in the device section of your xorg.conf
Comment 4 LRN 2013-09-09 16:09:41 UTC
(In reply to comment #3)
> Is this a regression?
If by "regression" you mean "it worked before, but doesn't work now" - yes.

>  Does disabling tiling help?
> 
> Add:
> 
> Option "ColorTiling" "False"
> Option "ColorTiling2D" "False"
> 
> in the device section of your xorg.conf

I've added this:

> Section "Device"
>   Identifier "Device0"
>   Driver     "radeon"
>   Option "ColorTiling" "False"
>   Option "ColorTiling2D" "False"
> EndSection

to my /etc/X11/xorg.conf.d/00-git-xorg.conf.
After rebooting and looking at Xorg log, i can see that it groks these options, and later says that KMS Color Tiling and Color Tiling 2D are disabled.

However, this does not offer any visible improvements.
Comment 5 Alex Deucher 2013-09-09 16:17:42 UTC
How about setting env var R600_DEBUG=nodma?  Try adding that to /etc/environment .
Comment 6 LRN 2013-09-09 16:34:15 UTC
(In reply to comment #5)
> How about setting env var R600_DEBUG=nodma?  Try adding that to
> /etc/environment .

Added to /etc/environment, rebooted - no visible improvements (should the fact that this variable is set be mentioned in Xorg log or dmesg? i don't see anything specific there).

Do you want logs with more verbosity? I remember that there's a boot parameter that gives verbose logs for radeon driver.

Another bit of info (may be related):
lightspark has huge problems playing youtube videos (frames jump around in time, , some parts of the picture are corrupted, and the whole thing looks choppy).
Iceweasel's stderr is full of "GL error 1282"
Comment 7 LRN 2013-09-12 09:50:32 UTC
Upgraded kernel to b7a5ae97502e104371c7eb3b7b17ae959e50d6f5
No effect.

Tried to build and install older drm and mesa (git revs from ~Jan 2013, since i remember that things worked back then).
Installed drm - no effect.
Installed xf86-video-ati - no effect.
Tried to build old mesa, got errors. Installed llvm-3.3, made it the default. Got some more errors. Tinkered a bit more.
At some point i had to reboot. When the laptop booted again, gdm3 showed no corruption, and neither did gnome3.

Upgraded drm, xf86-video-ati and mesa back to git their respective git master HEADs. Rebooted. No corruption.

So, yeah. Weird.
Maybe i was building xorg in a wrong order, and my git gyrations made it right...
Comment 8 Martin Peres 2019-11-19 08:38:03 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/379.

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.