Hello all,<br><br>I've got my X server stuck in some kind of loop that is using up nearly %100 of the CPU.  I have a remote ssh connection and I'm running gdb against it.  I've very unfamiar with debugging at this level, but I really want to anything I can to help track down some X issues I'm been hitting.<br>
<br>I turned on drm kernel debugging for awhile, and I see this group of errors repeated over and over again:<br><br>[ 9812.879383] [drm:drm_ioctl] pid=3917, cmd=0x6444, nr=0x44, dev 0xe200, auth=1<br>[ 9812.879388] [drm:radeon_cp_idle]<br>
[ 9812.879390] [drm:radeon_do_cp_idle]<br>[ 9813.035795] [drm:radeon_do_wait_for_idle] wait idle failed status : 0x80010140 0x00000000<br>[ 9813.035798] [drm:drm_ioctl] ret = fffffff0<br><br>When I ran gdb remotely on X and got the following backtrace:<br>
<br>0  0xb8033430 in __kernel_vsyscall ()<br>#1  0xb7cb9d59 in ioctl () from /lib/tls/i686/cmov/libc.so.6<br>#2  0xb801eadd in drmIoctl () from /usr/lib/libdrm.so.2<br>#3  0xb801eee2 in drmCommandNone () from /usr/lib/libdrm.so.2<br>
#4  0xb78fd797 in RADEONDownloadFromScreenCP (pSrc=0xb2d3e20, x=0, y=3, w=24, h=0, dst=0xb2d3e50 "_\005~", dst_pitch=96)<br>    at radeon_exa_funcs.c:411<br>#5  0xb76d5cbc in exaCopyDirty (migrate=<value optimized out>, pValidDst=0xace5908, pValidSrc=0xace5914,<br>
    transfer=0xb78fd260 <RADEONDownloadFromScreenCP>, fallback_src=0xb62a3000 "", fallback_dst=0xb2d3e50 "_\005~", fallback_srcpitch=128,<br>    fallback_dstpitch=96, fallback_index=1, sync=0xb76cff50 <exaWaitSync>) at ../../exa/exa_migration.c:208<br>
#6  0xb76d5ffd in exaDoMoveOutPixmap (migrate=0xb76dd1e4) at ../../exa/exa_migration.c:256<br>#7  0xb76d6171 in exaPixmapSave (pScreen=0x964a5c0, area=0xa40b3a8) at ../../exa/exa_migration.c:414<br>#8  0xb76d6d6e in ExaOffscreenKickOut (pScreen=0x964a5c0, area=0x0) at ../../exa/exa_offscreen.c:68<br>
#9  0xb76d724e in exaOffscreenAlloc (pScreen=0x964a5c0, size=4128000, align=4096, locked=0, save=0xb76d6130 <exaPixmapSave>,<br>    privData=0xa50f5008) at ../../exa/exa_offscreen.c:247<br>#10 0xb76d6380 in exaDoMoveInPixmap (migrate=0xbfc50344) at ../../exa/exa_migration.c:322<br>
#11 0xb76d6ac2 in exaDoMigration (pixmaps=0xbfc50344, npixmaps=1, can_accel=1) at ../../exa/exa_migration.c:683<br>#12 0xb76d193b in exaFillRegionSolid (pDrawable=0xa50f5008, pRegion=0x9c9b970, pixel=0, planemask=4294967295, alu=<value optimized out>)<br>
    at ../../exa/exa_accel.c:936<br>#13 0xb76d3312 in exaPolyFillRect (pDrawable=0xa50f5008, pGC=0x9693b70, nrect=1, prect=0xa35e11c) at ../../exa/exa_accel.c:751<br>#14 0x08180b94 in damagePolyFillRect (pDrawable=0xa50f5008, pGC=0x9693b70, nRects=1, pRects=0xa35e11c)<br>
    at ../../../miext/damage/damage.c:1404<br>#15 0x08170da0 in miColorRects (pDst=0xb14b398, pClipPict=0xb14b398, color=0xa35e114, nRect=1, rects=0xa35e11c, xoff=0, yoff=0)<br>    at ../../render/mirect.c:84<br>#16 0x08170ecc in miCompositeRects (op=3 '\003', pDst=0xb14b398, color=0xa35e114, nRect=1, rects=0xa35e11c) at ../../render/mirect.c:116<br>
#17 0x081723af in CompositeRects (op=240 '�', pDst=0xb14b398, color=0xa35e114, nRect=1, rects=0xa35e11c) at ../../render/picture.c:1699<br>#18 0x08178ee5 in ProcRenderFillRectangles (client=0x989f1e8) at ../../render/render.c:1500<br>
#19 0x08175125 in ProcRenderDispatch (client=0x6444) at ../../render/render.c:2086<br>#20 0x0808d57f in Dispatch () at ../../dix/dispatch.c:437<br>#21 0x080722ed in main (argc=8, argv=0xbfc506f4, envp=Cannot access memory at address 0x644c<br>
) at ../../dix/main.c:397<br><br>I'm willing to let my system stuck in this state for an hour or so.  If anyone has any gdb commands they would like be to run to get some additional info, please email me back asap.  I'll provide some additional info below.<br>
<br>- Lowell<br><br>Ubuntu 9.04  (with non-default kernel; comes with 2.6.28 but that results in hard lockups very frequently.)<br><br>Linux hostname 2.6.29-02062902-generic #02062902 SMP Tue Apr 28 17:10:08 UTC 2009 i686 GNU/Linux<br>
<br>01:00.0 VGA compatible controller: ATI Technologies Inc RV350 [Mobility Radeon 9600 M10]<br>        Subsystem: IBM Device 0550<br>        Flags: bus master, fast Back2Back, 66MHz, medium devsel, latency 66, IRQ 11<br>
        Memory at e0000000 (32-bit, prefetchable) [size=128M]<br>        I/O ports at 3000 [size=256]<br>        Memory at c0100000 (32-bit, non-prefetchable) [size=64K]<br>        [virtual] Expansion ROM at c0120000 [disabled] [size=128K]<br>
        Capabilities: [58] AGP version 2.0<br>        Capabilities: [50] Power Management version 2<br>        Kernel modules: radeonfb<br><br>Section "Device"<br>    Identifier  "ATI Technologies, Inc. RV350 NP [Mobility Radeon 9600/9700 M10/M11]"<br>
    Driver      "ati"<br>    BusID       "PCI:1:0:0"<br>    #Option "AccelMethod" "XAA"<br>    Option "AccelMethod" "EXA"<br>    Option "AccelDFS" "on"<br>
    #Option "XAANoOffscreenPixmaps" "true"<br>    Option "DynamicClocks" "on"<br>    Option "DPMS" "true"<br>    Option "EnablePageFlip" "true"<br>
    Option "EXAOptimizeMigration" "true"<br>    # Disable drm/radeon kernel modules... doesn't lockup when DRI is disabled...<br>    #Option "DRI" "off"<br>EndSection<br><br>