Bug 72269 - black screen and corrupted cursor with DRI_PRIME=1, resulting in X restart
Summary: black screen and corrupted cursor with DRI_PRIME=1, resulting in X restart
Status: RESOLVED FIXED
Alias: None
Product: xorg
Classification: Unclassified
Component: Driver/Radeon (show other bugs)
Version: 7.7 (2012.06)
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: xf86-video-ati maintainers
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-12-03 14:21 UTC by kh3095
Modified: 2013-12-11 10:10 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
dmesg output (71.74 KB, text/plain)
2013-12-03 15:07 UTC, kh3095
no flags Details
Xorg.0.log (44.39 KB, text/plain)
2013-12-03 15:08 UTC, kh3095
no flags Details
Xorg.0.log.old (46.26 KB, text/plain)
2013-12-03 15:08 UTC, kh3095
no flags Details
lspci -vv (16.96 KB, text/plain)
2013-12-03 15:09 UTC, kh3095
no flags Details
xrandr --listproviders (310 bytes, text/plain)
2013-12-03 15:09 UTC, kh3095
no flags Details
glxinfo for integrated radeom (56.43 KB, text/plain)
2013-12-03 15:10 UTC, kh3095
no flags Details
glxinfo for discrete radeon (56.58 KB, text/plain)
2013-12-03 15:10 UTC, kh3095
no flags Details
gdb (3.05 KB, text/plain)
2013-12-04 13:58 UTC, kh3095
no flags Details
kwin_kcrash (7.10 KB, text/plain)
2013-12-04 14:01 UTC, kh3095
no flags Details
ck2.log (1.99 KB, text/plain)
2013-12-04 14:02 UTC, kh3095
no flags Details
gdb-2950 (2.94 KB, text/plain)
2013-12-04 14:41 UTC, kh3095
no flags Details
xorg-2950 (47.89 KB, text/plain)
2013-12-04 14:42 UTC, kh3095
no flags Details
gdb log (246 bytes, text/plain)
2013-12-04 23:27 UTC, kh3095
no flags Details
gdb log (281 bytes, text/plain)
2013-12-04 23:28 UTC, kh3095
no flags Details

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.