Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 424367 - sys-kernel/gentoo-sources-3.4.4 - radeon driver with ColorTiling2D causes display corruption
Summary: sys-kernel/gentoo-sources-3.4.4 - radeon driver with ColorTiling2D causes dis...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: Normal normal with 1 vote (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard: linux-3.5 libdrm-2.4.37 xorg-server-1...
Keywords:
Depends on:
Blocks:
 
Reported: 2012-07-01 12:41 UTC by Marcus Becker
Modified: 2012-11-07 23:00 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (emerge_info.txt,5.69 KB, text/plain)
2012-07-01 12:42 UTC, Marcus Becker
Details
kernel config gentoo-sources 3.4.4 (kernel-config-x86_64-3.4.4-gentoo,105.53 KB, text/plain)
2012-07-01 12:43 UTC, Marcus Becker
Details
Xorg.0.log (Xorg.0.log.old,65.14 KB, text/plain)
2012-07-01 16:48 UTC, Marcus Becker
Details
log during bisect (bisect.log,4.29 KB, text/plain)
2012-07-19 01:20 UTC, Marcus Becker
Details
git bisect log (bisect_log.log,2.69 KB, text/plain)
2012-07-19 01:21 UTC, Marcus Becker
Details
Xorg.0.log with 9999 drivers (Xorg.0.log.9999,60.86 KB, text/plain)
2012-07-20 17:20 UTC, Marcus Becker
Details
display corruption with mirrored displays (Screenshot from 2012-07-20 18:58:08.png,560.19 KB, image/png)
2012-07-20 18:22 UTC, Marcus Becker
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marcus Becker 2012-07-01 12:41:27 UTC
After upgrade from gentoo-sources-3.3.8 to gentoo-sources-3.4.4:
ColorTiling2D and xrandr extend to monitors corrupts the display (mirror is OK), works if I disable ColorTiling2D in xorg.conf
Pop up windows cause display corruptions http://ompldr.org/vZWtwYw
OilRush doesn't work any more, just flickers between black and some corrupted graphics
All these are fine in gentoo-sources-3.3.8

Reproducible: Always

Steps to Reproduce:
1.upgrade to gentoo-sources-3.4.4
2.
3.
Actual Results:  
regression
Comment 1 Marcus Becker 2012-07-01 12:42:03 UTC
Created attachment 316861 [details]
emerge --info
Comment 2 Marcus Becker 2012-07-01 12:43:14 UTC
Created attachment 316863 [details]
kernel config gentoo-sources 3.4.4

I created it using 'make oldconfig' on the 3.3.8 config and chose default values.
Comment 3 Marcus Becker 2012-07-01 16:48:51 UTC
Created attachment 316889 [details]
Xorg.0.log

I first tried the pre setup of my existing user, logged into gdm and the screen got scrambled
created a new user 'peng' and he can login with mirrored displays, if I switched to extend the screen gets scrambled
switching back to 3.3.8 fixes the problem
I also rebuild xorg-server and all x11 drivers with the new kernel headers and kernel
This happens since version 3.4.0...
Comment 4 Mike Pagano gentoo-dev 2012-07-17 15:31:34 UTC
Can you do a git bisect between vanilla-sources-3.3.8 and 3.4.0 to see if we can narrow the commit that caused the error?

http://www.reactivated.net/weblog/archives/2006/01/using-git-bisect-to-find-buggy-kernel-patches/
Comment 5 Marcus Becker 2012-07-17 16:32:56 UTC
Not today :( Will try tomorrow...
btw. http://wiki.gentoo.org/wiki/Kernel_git-bisect ;)
Comment 6 Marcus Becker 2012-07-19 01:20:09 UTC
Created attachment 318598 [details]
log during bisect
Comment 7 Marcus Becker 2012-07-19 01:21:27 UTC
Created attachment 318600 [details]
git bisect log

I had to do it between 3.4.1 and 3.3.8, it wouldn't take 3.4.0 or 3.4
hope that helps :)
Comment 8 Marcus Becker 2012-07-20 11:27:51 UTC
drm/radeon: add support for evergreen/ni tiling informations v11
http://lkml.indiana.edu/hypermail/linux/kernel/1206.0/02997.html

This is their solution, have to try it out:
Update your libdrm to libdrm from git should fix your issue.
Comment 9 Marcus Becker 2012-07-20 17:20:25 UTC
Created attachment 318754 [details]
Xorg.0.log with 9999 drivers

Exactly the same result as before on gentoo-sources-3.4.5 with xf86-video-ati-9999 and libdrm-9999

It works fine with a single display or mirror but not to extend on the external monitor, which scrambles the whole display. Without ColorTiling2D I can extend to the external monitor but popups are scrambled.

Related packages:
[ebuild   R    ] x11-libs/libdrm-2.4.33  USE="libkms -static-libs" VIDEO_CARDS="radeon -intel -nouveau (-omap) -vmware" 0 kB
[ebuild   R    ] x11-apps/xrandr-1.3.5  0 kB
[ebuild   R    ] sys-kernel/gentoo-sources-3.4.5  USE="-build -deblob -symlink" 0 kB
[ebuild   R    ] media-libs/mesa-8.0.3-r1  USE="egl g3dvl gallium gbm gles1 gles2 llvm nptl openvg shared-glapi vdpau xa xvmc -bindist -classic -d3d -debug -osmesa -pax_kernel -pic (-selinux) -shared-dricore -wayland" VIDEO_CARDS="radeon -i915 -i965 -intel -nouveau -r100 -r200 -r300 -r600 -vmware" 0 kB
[ebuild   R    ] x11-base/xorg-server-1.12.3  USE="ipv6 kdrive nptl udev xorg -dmx -doc -minimal (-selinux) -static-libs -tslib -xnest -xvfb" 0 kB
[ebuild   R    ] x11-drivers/xf86-video-ati-6.14.4-r1  0 kB

Where is works just fine pre linux-3.4
Comment 10 Marcus Becker 2012-07-20 18:22:42 UTC
Created attachment 318756 [details]
display corruption with mirrored displays

If there is a popup window
Comment 11 Marcus Becker 2012-07-26 18:44:07 UTC
With everything turned off and default settings (empty xorg.conf) it works fine on gentoo-sources-3.5 with x11-drivers/xf86-video-ati-6.14.6-r1 and  x11-libs/libdrm-2.4.37 and x11-base/xorg-server-1.12.99.903 and media-libs/mesa-8.1_rc1_pre20120724::x-portage
Comment 12 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2012-11-07 23:00:06 UTC
Seems the issue has been mitigated then. Between 3.3.8 and 3.5.7 there's only 3.4.9 now which sounds like a sufficient upgrade from 3.4.4 and might even not experience this anymore; and if it wasn't the kernel, then there have been quite some newer libdrm versions as well. If current stable versions still reproduce this for you or others, it might be worth attempting to stabilize the newer working versions...

Another option is to undo the patch, although I don't know if that has consequences.