Bug 24311

Summary: R600, KMS: KDE4 freezes after several seconds
Product: xorg Reporter: Grzegorz Kowal <astronomo>
Component: Driver/RadeonAssignee: xf86-video-ati maintainers <xorg-driver-ati>
Status: RESOLVED FIXED QA Contact: Xorg Project Team <xorg-team>
Severity: critical    
Priority: medium CC: astronomo
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments:
Description Flags
Xorg.0.log
none
lspci -v output
none
dmesg
none
xorg.conf
none
Xorg.0.log with EXA turned off none

Description Grzegorz Kowal 2009-10-04 15:57:03 UTC
Created attachment 30052 [details]
Xorg.0.log

I tested KMS support for R600 for my Mobility Radeon HD 3650. I followed the steps described in http://wiki.x.org/wiki/radeonBuildHowTo in order to install the most recent software stack. I am using kernel version 2.6.31.1 with the drm-next branch merged, libdrm 2.4.13 and the most recent driver GIT master of xf86-video-ati (last commit 8404c37b2ff95aba31db97676f106ec2f30fda7f).

The system boots up, text console looks stable, and KDM login screen shows up correctly. However, after login to KDE 4.3.1, the screen freezes shortly after a time period of about 15-20 seconds. Sometimes the screen becomes white and then my laptop reboots.

In the case when the screen only freezes, I can still move mouse cursor, and shut down the machine cleanly, but I cannot move any window, and switch to the text console.

I tried that with DRI and EXA off in the xorg.conf, but the problem does not disappear.

My software stack is:
 xorg-server 1.6.3.901,
 libdrm 2.4.13,
 mesa 7.5.1 (but tested the master branch of git repository 7.7-devel),
 master branch of xf86-video-ati.
 dri2proto 2.1

My hardware is laptop ASUS M50SA with 4GB system memory, and graphics 1GB Mobility Radeon HD 3650.

I'll attach Xorg.0.log, dmesg, xorg.conf, and lspci -a output.
Comment 1 Grzegorz Kowal 2009-10-04 15:57:34 UTC
Created attachment 30053 [details]
lspci -v output
Comment 2 Grzegorz Kowal 2009-10-04 15:57:57 UTC
Created attachment 30054 [details]
dmesg
Comment 3 Grzegorz Kowal 2009-10-04 15:58:25 UTC
Created attachment 30055 [details]
xorg.conf
Comment 4 Grzegorz Kowal 2009-10-04 19:56:10 UTC
I also tried the following options in xorg.conf:

  Option           "DRI" "off"
  Option           "AccelMethod" "XAA"
  Option           "RenderAccel" "disable"
  Option           "EXANoComposite" "on"
  Option           "ExaNoUploadToScreen" "on"
  Option           "ExaNoDownloadFromScreen" "on"
  Option           "ExaOptimizeMigration" "off"

They do not help, and it looks like EXA is not completely turned off.
Comment 5 Grzegorz Kowal 2009-10-04 19:56:36 UTC
Created attachment 30060 [details]
Xorg.0.log with EXA turned off
Comment 6 Alex Deucher 2009-10-04 21:40:14 UTC
There is no XAA acceleration for r6xx+ chips.  To disable acceleration, you need:
Option "NoAccel" "TRUE"
In the device section of your config.
Does acceleration work ok without KMS?
Comment 7 Grzegorz Kowal 2009-10-05 05:41:35 UTC
Thank you for quick response! The 2D acceleration works fine without KMS.

With the option "NoAccel" "TRUE" and KMS on, I am getting this:

Backtrace:
0: /usr/bin/X(xorg_backtrace+0x26) [0x509576]
1: /usr/bin/X(xf86SigHandler+0x39) [0x48d189]
2: /lib/libc.so.6 [0x7fd07bd54290]
3: /usr/lib/xorg/modules//libexa.so(exaGetPixmapDriverPrivate+0x17) [0x7fd07961bac7]
4: /opt/xorg/lib/xorg/modules/drivers//radeon_drv.so(radeon_set_pixmap_bo+0x16) [0x7fd079cfce96]
5: /opt/xorg/lib/xorg/modules/drivers//radeon_drv.so [0x7fd079d3aeb2]
6: /usr/bin/X [0x4b6221]
7: /usr/bin/X(main+0x254) [0x430f34]
8: /lib/libc.so.6(__libc_start_main+0xe6) [0x7fd07bd405c6]
9: /usr/bin/X [0x4304a9]

Fatal server error:
Caught signal 11.  Server aborting

If you need I can post full Xorg.0.log.
Comment 8 Alex Deucher 2009-10-05 07:51:10 UTC
Looks like forcing accel off with kms isn't currently working.
Comment 9 Grzegorz Kowal 2010-02-06 19:41:04 UTC
I have tested once again with the kernel 2.6.32, mesa 7.7, master branch of xf86-video-radeon, xorg-server 1.7.4.

Seems to work fine now with EXA and KDE 3D effects.

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.