Bug 72269

Summary: black screen and corrupted cursor with DRI_PRIME=1, resulting in X restart
Product: xorg Reporter: kh3095
Component: Driver/RadeonAssignee: xf86-video-ati maintainers <xorg-driver-ati>
Status: RESOLVED FIXED QA Contact: Xorg Project Team <xorg-team>
Severity: normal    
Priority: medium    
Version: 7.7 (2012.06)   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments:
Description Flags
dmesg output
none
Xorg.0.log
none
Xorg.0.log.old
none
lspci -vv
none
xrandr --listproviders
none
glxinfo for integrated radeom
none
glxinfo for discrete radeon
none
gdb
none
kwin_kcrash
none
ck2.log
none
gdb-2950
none
xorg-2950
none
gdb log
none
gdb log none

Description kh3095 2013-12-03 14:21:38 UTC
I have problem with radeon cards on muxless laptop:

01:05.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] RS880M [Mobility Radeon HD 4225/4250]
02:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Whistler [Radeon HD 6630M/6650M/6750M/7670M/7690M]

PRIME works almost OK (glxinfo, glxgears, some opensource games), but in some applications (more critical are Crusader Kings 2 and Europa Universalis 4) I'm getting black screen and corrupted cursor, switching to some other window causes X restart.

Tried different window managers (e.g., kdm, xmonad with xcompmgr), results are the same.

Running Debina GNU/Linux testing+unstable, Linux kernel 3.11.8, drm 2.4.49, xserver 1.14.3, radeon 7.2.0, mesa 9.2.2.
Comment 1 Alex Deucher 2013-12-03 14:30:10 UTC
Please attach your xorg log and dmesg output.
Comment 2 kh3095 2013-12-03 15:07:45 UTC
Created attachment 90167 [details]
dmesg output
Comment 3 kh3095 2013-12-03 15:08:22 UTC
Created attachment 90168 [details]
Xorg.0.log
Comment 4 kh3095 2013-12-03 15:08:44 UTC
Created attachment 90169 [details]
Xorg.0.log.old
Comment 5 kh3095 2013-12-03 15:09:10 UTC
Created attachment 90170 [details]
lspci -vv
Comment 6 kh3095 2013-12-03 15:09:36 UTC
Created attachment 90171 [details]
xrandr --listproviders
Comment 7 kh3095 2013-12-03 15:10:16 UTC
Created attachment 90172 [details]
glxinfo for integrated radeom
Comment 8 kh3095 2013-12-03 15:10:45 UTC
Created attachment 90173 [details]
glxinfo for discrete radeon
Comment 9 Michel Dänzer 2013-12-04 04:03:03 UTC
It would be useful if you could do one or both of:

* Attach a full backtrace from gdb, with the xserver-xorg-video-radeon-dbg and xserver-xorg-core-dbg packages installed.

* Try upstream xf86-video-ati Git master and xserver Git server-1.14-branch to see if they work any better.
Comment 10 kh3095 2013-12-04 13:58:56 UTC
Created attachment 90234 [details]
gdb

gdb log of X crash, produced with the following:

# gdb -p $(pidof X) -batch -ex 'handle all nostop' -ex 'handle all pass' -ex 'handle 11 stop' -ex 'cont' -ex 'bt full' -ex 'cont' > gdb.log

I tried to do

gdb -p $(pidof X)
(inside gdb)
set logging overwrite on
set logging on
continue
(X server is stopped from when gdb is attached until "continue" is typed)
(do whatever caused the problem)
bt full
set logging off
quit

Unfortunately, after continue command laptop completely freezes, after restart gdb log is empty.
Comment 11 kh3095 2013-12-04 14:01:15 UTC
Created attachment 90235 [details]
kwin_kcrash

Sometimes I'm getting Kcrash messages like that, when running Crusader Kings 2 with DRI_PRIME=1.
Comment 12 kh3095 2013-12-04 14:02:25 UTC
Created attachment 90236 [details]
ck2.log

And with some settings Crusader Kings 2 throws this errors.
Comment 13 kh3095 2013-12-04 14:21:24 UTC
In the evening I will try to ssh to my laptop from another computer and gdb.
Comment 14 kh3095 2013-12-04 14:41:20 UTC
Created attachment 90239 [details]
gdb-2950

Another (somewhat different) gdb.log, see alsa corresponding Xorg.0.log (xorg-2950).
Comment 15 kh3095 2013-12-04 14:42:07 UTC
Created attachment 90240 [details]
xorg-2950

Another Xorg.0.log (see corresponding gdb log, gdb-2950).
Comment 16 kh3095 2013-12-04 23:27:56 UTC
Created attachment 90284 [details]
gdb log
Comment 17 kh3095 2013-12-04 23:28:25 UTC
Created attachment 90285 [details]
gdb log
Comment 18 kh3095 2013-12-04 23:31:17 UTC
Found out that with some settings PRIME works much better (renders application, X is not crashing), but cursor is still corrupted and colors are incorrect (compared to rendering on integrated radeon).
Comment 19 kh3095 2013-12-11 10:10:20 UTC
Finally tried a newer version of xserver, and it works much better! Cursor is OK, and DRI_PRIME doesn't cause X restart.

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.