Bug 23661

Summary: [RV380] Xorg randomly freezes (100% CPU)
Product: xorg Reporter: Bryce Harrington <bryce>
Component: Driver/RadeonAssignee: xf86-video-ati maintainers <xorg-driver-ati>
Status: RESOLVED INVALID QA Contact: Xorg Project Team <xorg-team>
Severity: major    
Priority: high CC: 93fy5qj02, marvin24
Version: 7.4 (2008.09)Keywords: regression
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments:
Description Flags
Xorg.0.log
none
dmesg
none
syslog
none
gdb-Xorg-1.txt
none
gdb-Xorg.txt none

Description Bryce Harrington 2009-09-02 17:36:32 UTC
Forwarding this bug from Ubuntu reporter Lev Makhlis:
http://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-ati/+bug/345224

[Problem]
Xorg freezes with 100% CPU within a minute of login.  Regression first appeared in Intrepid but is confirmed to still occur in Karmic with a recent -ati git snapshot.

[Original Description]
X started freezing once in a while after upgrading to Ubuntu 8.10.  Now with 9.04 it's even more common.
Mouse pointer works, keyboard doesn't work, can ssh remotely. Attaching backtrace.

Architecture: amd64
DistroRelease: Ubuntu 9.04
Package: xserver-xorg-video-ati 1:6.12.0-0ubuntu2
ProcEnviron:
 LANG=en_US.UTF-8ProcVersion: Linux version 2.6.28-11-generic (buildd@yellow) (gcc version 4.3.3 (Ubuntu 4.3.3-5ubuntu4) ) #35-Ubuntu SMP Wed Mar 18 21:55:34 UTC 2009
SourcePackage: xserver-xorg-video-ati
Uname: Linux 2.6.28-11-generic x86_64


#0  0x00007f692368acd7 in ioctl () from /lib/libc.so.6
No symbol table info available.
#1  0x00007f69222cf343 in drmIoctl () from /usr/lib/libdrm.so.2
No symbol table info available.
#2  0x00007f69222cf646 in drmCommandNone () from /usr/lib/libdrm.so.2
No symbol table info available.
#3  0x00007f6921462d74 in RADEONDownloadFromScreenCP (
    pSrc=<value optimized out>, x=0, y=18, w=17, h=0, dst=0x9aa4ba0 "", 
    dst_pitch=68) at ../../src/radeon_exa_funcs.c:411
	oldhpass = <value optimized out>
	i = 20984
	hpass = 0
	scratch_pitch_offset = 12060552
	indirect = {idx = 28090448, start = 50331648, end = 28363024, 
  discard = 0}
	__head = <value optimized out>
	pScrn = (ScrnInfoPtr) 0x1aca050
	src = (uint8_t *) 0x7f690ebfa000 "\033\005"
	bpp = <value optimized out>
	datatype = 6
	src_pitch_offset = 11955556
	scratch_pitch = 128
	scratch_off = 0
	scratch = (drmBufPtr) 0x1b0cd30
#4  0x00007f6920ba3c49 in exaCopyDirty (migrate=0x7fff2dab0100, 
    pValidDst=0x9a28e20, pValidSrc=<value optimized out>, 
    transfer=0x7f69214627d0 <RADEONDownloadFromScreenCP>, 
    fallback_src=0x7f691a6f3000 "\231\231\231", fallback_dst=0x9aa4ba0 "", 
    fallback_srcpitch=128, fallback_dstpitch=68, fallback_index=1, 
    sync=0x7f6920b9de10 <exaWaitSync>) at ../../exa/exa_migration.c:208
	pPixmap = (PixmapPtr) 0x9aa4b60
	pExaPixmap = (ExaPixmapPrivPtr) 0x9a28de0
	damage = <value optimized out>
	CopyReg = {extents = {x1 = 0, y1 = 0, x2 = 17, y2 = 18}, data = 0x0}
	save_offscreen = 1
	save_pitch = 128
	pBox = (BoxPtr) 0x7fff2daaff40
	nbox = 0
	access_prepared = 0
	need_sync = 0
	__func__ = "exaCopyDirty"
	firsttime = 0
#5  0x00007f6920ba3fc0 in exaDoMoveOutPixmap (migrate=0x7fff2dab0100)
    at ../../exa/exa_migration.c:256
	pPixmap = (PixmapPtr) 0x9aa4b60
#6  0x00007f6920ba46df in exaDoMigration (pixmaps=0x7fff2dab0100, npixmaps=1, 
    can_accel=0) at ../../exa/exa_migration.c:677
	pExaScr = (ExaScreenPrivPtr) 0x1b0c910
	i = 1
	j = <value optimized out>
	__func__ = "exaDoMigration"


[lspci]
00:00.0 Memory controller [0580]: nVidia Corporation CK804 Memory Controller [10de:005e] (rev a3)
    	Subsystem: ABIT Computer Corp. Device [147b:1c0c]
01:00.0 VGA compatible controller [0300]: ATI Technologies Inc RV380 [Radeon X600 (PCIE)] [1002:5b62]
    	Subsystem: ATI Technologies Inc Device [1002:0422]
Comment 1 Bryce Harrington 2009-09-02 17:36:48 UTC
Created attachment 29129 [details]
Xorg.0.log
Comment 2 Bryce Harrington 2009-09-02 17:37:00 UTC
Created attachment 29130 [details]
dmesg
Comment 3 Bryce Harrington 2009-09-02 17:37:13 UTC
Created attachment 29131 [details]
syslog
Comment 4 Bryce Harrington 2009-09-02 17:37:25 UTC
Created attachment 29132 [details]
gdb-Xorg-1.txt
Comment 5 Bryce Harrington 2009-09-02 17:37:39 UTC
Created attachment 29133 [details]
gdb-Xorg.txt
Comment 6 Alex Deucher 2009-09-02 22:48:35 UTC
please try with the latest git from master.  make sure you have:
794ae743c305331741e7cf45dd71c755fe325ed5
Comment 7 Bryce Harrington 2009-09-03 01:23:22 UTC
A Ubuntu package of 794ae743 can be found in this PPA for testing:

https://edge.launchpad.net/~xorg-edgers/+archive/ppa
 +  xserver-xorg-video-ati - 1:6.12.99+git20090902.794ae743-0ubuntu0tormod 

Comment 8 Lev Kandel 2009-09-03 06:40:25 UTC
Tested the package above. So far there's no freeze after ~10 minutes of use. I'll keep it running and report back.
Comment 9 Lev Kandel 2009-09-03 06:57:38 UTC
Took a little longer, but it still freezes :(
Comment 10 tomsen 2010-01-23 11:25:58 UTC
I see the exact same symptoms on my system since 8.10. Only that I am on 32 bit and 	Probed	RADEON(0): Chipset: "ATI Radeon X800SE (R420) JJ (AGP)" (ChipID = 0x4a4a)
Why have there been no updates since september of last year? I can see that people most likely want to support the new cards rather than fixing stuff for the old ones but Linux has been pretty much unsable for me since the 'freezes' started to occur. Is there anything going to happen with this problem?

regards, tomsen
Comment 11 Alex Deucher 2010-01-23 12:09:43 UTC
Have you tried a newer radeon drm or newer version of xf86-video-ati?
Comment 12 Alex Deucher 2010-10-19 17:48:13 UTC
Closing due to lack of feedback.

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.