Bug 96960 - DRI3 + Radeon HD 7750 Screen corruption with Cinnamon
Summary: DRI3 + Radeon HD 7750 Screen corruption with Cinnamon
Status: RESOLVED DUPLICATE of bug 95475
Alias: None
Product: xorg
Classification: Unclassified
Component: Driver/Radeon (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: xf86-video-ati maintainers
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-07-16 20:24 UTC by Leon
Modified: 2016-07-26 06:27 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
screenshot (44.62 KB, image/png)
2016-07-16 20:24 UTC, Leon
no flags Details
dmesg for driver xserver-xorg-video-ati 1:7.7.0-1 (68.29 KB, text/plain)
2016-07-16 20:45 UTC, Leon
no flags Details
dmesg for xserver-xorg-video-ati 1:7.7.99+git1606280732.3be841~gd~x (43.99 KB, text/plain)
2016-07-16 20:47 UTC, Leon
no flags Details
Xorg.0.log for driver xserver-xorg-video-ati 1:7.7.0-1 (45.90 KB, text/plain)
2016-07-16 20:48 UTC, Leon
no flags Details
Xorg.0.log for xserver-xorg-video-ati 1:7.7.99+git1606280732.3be841~gd~x (43.99 KB, text/plain)
2016-07-16 20:49 UTC, Leon
no flags Details
dmesg with 20-radeon.conf and acceleration set to EXA (xserver-xorg-video-ati 1:7.7.0-1) (152.05 KB, text/plain)
2016-07-17 18:57 UTC, Leon
no flags Details
X.org.0.log with 20-radeon.conf and acceleration set to EXA (xserver-xorg-video-ati 1:7.7.0-1) (35.36 KB, text/x-log)
2016-07-17 18:57 UTC, Leon
no flags Details

Description Leon 2016-07-16 20:24:25 UTC
Created attachment 125110 [details]
screenshot

I started experiencing this issue with Mint 18, with the Oibaf ppa enabled. Mint ships with xserver-xorg-video-ati 1:7.7.0-1, so I was able to track down the issue from there using the source from the official repo. I traced it back to commit 1181b9c582f10b6c523e4b2988e2ce87ecf3d367 but as far as I can tell, this commit pretty much just enables DRI3 on this device:
( xserver-xorg-video-ati 1:7.7.0-1)
[  9837.338] (==) RADEON(0): DRI3 disabled

( xserver-xorg-video-ati 1181b9c582f10b6c523e4b2988e2ce87ecf3d367)
[  4355.160] (==) RADEON(0): DRI3 enabled


dmesg shows errors like https://bugs.freedesktop.org/show_bug.cgi?id=94901

[   44.866600] radeon 0000:01:00.0: evergreen_surface_check_linear_aligned:215 texture pitch 1680 invalid must be aligned with 64
[   44.866604] radeon 0000:01:00.0: evergreen_cs_track_validate_texture:830 texture invalid 0x1a3c3441 0x10000419 0x0a0a0000 0x00000000 0x00000000 0x8002001a
[   44.866630] [drm:radeon_cs_ioctl [radeon]] *ERROR* Invalid command stream !

but then followed by:

[ 9837.107021] gvfsd-network[29643]: segfault at 8 ip 0000000000403fa9 sp 00007ffea7be3740 error 4 in gvfsd-network[400000+7000]
[ 9837.109294] gvfsd-network[29647]: segfault at 8 ip 0000000000403fa9 sp 00007fffd4c5a550 error 4 in gvfsd-network[400000+7000]


both of which are only present when this or future versions are installed. 

This bug is mentioned here: https://forums.linuxmint.com/viewtopic.php?f=59&t=224526&p=1189762 (somehow does not affect MATE?)
and also SEEMS to be mentioned here as well: https://github.com/linuxmint/Cinnamon/issues/5209

I'll attach a logs in a few minutes
Comment 1 Leon 2016-07-16 20:27:11 UTC
kernel: 4.4.0-31-generic
video card: [AMD/ATI] Caicos PRO [Radeon HD 7450]
Comment 2 Leon 2016-07-16 20:45:35 UTC
Created attachment 125111 [details]
dmesg for driver xserver-xorg-video-ati  1:7.7.0-1
Comment 3 Leon 2016-07-16 20:47:43 UTC
Created attachment 125112 [details]
dmesg for xserver-xorg-video-ati 1:7.7.99+git1606280732.3be841~gd~x
Comment 4 Leon 2016-07-16 20:48:27 UTC
Created attachment 125113 [details]
Xorg.0.log for driver xserver-xorg-video-ati 1:7.7.0-1
Comment 5 Leon 2016-07-16 20:49:03 UTC
Created attachment 125114 [details]
Xorg.0.log for xserver-xorg-video-ati 1:7.7.99+git1606280732.3be841~gd~x
Comment 6 Leon 2016-07-17 17:36:06 UTC
OK, so digging into this even more, I think might be a duplicate of https://bugs.freedesktop.org/show_bug.cgi?id=95475 or at least related to it.

According to the logs, EXA is used by default, so I tried switching to glamour and it works fine, even with the latest commit. I guess I could try rolling through the commits again with DRI3 and EXA enabled and see what commit actually breaks things since there are only a few commits between.
Comment 7 Leon 2016-07-17 18:54:25 UTC
Looks like even with xserver-xorg-video-ati 1:7.7.0-1, setting EXA and DRI3 to enabled results in the same screen issue.

Here's my /usr/share/X11/xorg.conf.d/20-radeon.conf file (I created this after the first 2 log sets):
Section "Device"
        Identifier  "radeon"
        Driver "radeon"
        Option "AccelMethod"           "EXA" #valid options are XAA, EXA and Glamor. Default value varies per-GPU.
        Option "DRI3"                  "on" #enable DRI3 instead of the default DRI2-mode
EndSection
Comment 8 Leon 2016-07-17 18:57:00 UTC
Created attachment 125119 [details]
dmesg with 20-radeon.conf and acceleration set to EXA (xserver-xorg-video-ati 1:7.7.0-1)
Comment 9 Leon 2016-07-17 18:57:56 UTC
Created attachment 125120 [details]
X.org.0.log with 20-radeon.conf and acceleration set to EXA (xserver-xorg-video-ati 1:7.7.0-1)
Comment 10 Leon 2016-07-17 19:06:15 UTC
XAA also has the same issue including dmesg log errors. Looks like only Glamor works, confirming the other reports.
Comment 11 Leon 2016-07-21 13:04:03 UTC
Just a note, this is not a 7750, but a 7450. Not sure how that slipped by.
Comment 12 Michel Dänzer 2016-07-26 06:27:03 UTC

*** This bug has been marked as a duplicate of bug 95475 ***


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.