Attempting to track down radeon driver issue(s)?

Lowell Alleman lowell at allemansonline.com
Tue May 5 09:28:23 PDT 2009


Hello all,

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.

I turned on drm kernel debugging for awhile, and I see this group of errors
repeated over and over again:

[ 9812.879383] [drm:drm_ioctl] pid=3917, cmd=0x6444, nr=0x44, dev 0xe200,
auth=1
[ 9812.879388] [drm:radeon_cp_idle]
[ 9812.879390] [drm:radeon_do_cp_idle]
[ 9813.035795] [drm:radeon_do_wait_for_idle] wait idle failed status :
0x80010140 0x00000000
[ 9813.035798] [drm:drm_ioctl] ret = fffffff0

When I ran gdb remotely on X and got the following backtrace:

0  0xb8033430 in __kernel_vsyscall ()
#1  0xb7cb9d59 in ioctl () from /lib/tls/i686/cmov/libc.so.6
#2  0xb801eadd in drmIoctl () from /usr/lib/libdrm.so.2
#3  0xb801eee2 in drmCommandNone () from /usr/lib/libdrm.so.2
#4  0xb78fd797 in RADEONDownloadFromScreenCP (pSrc=0xb2d3e20, x=0, y=3,
w=24, h=0, dst=0xb2d3e50 "_\005~", dst_pitch=96)
    at radeon_exa_funcs.c:411
#5  0xb76d5cbc in exaCopyDirty (migrate=<value optimized out>,
pValidDst=0xace5908, pValidSrc=0xace5914,
    transfer=0xb78fd260 <RADEONDownloadFromScreenCP>,
fallback_src=0xb62a3000 "", fallback_dst=0xb2d3e50 "_\005~",
fallback_srcpitch=128,
    fallback_dstpitch=96, fallback_index=1, sync=0xb76cff50 <exaWaitSync>)
at ../../exa/exa_migration.c:208
#6  0xb76d5ffd in exaDoMoveOutPixmap (migrate=0xb76dd1e4) at
../../exa/exa_migration.c:256
#7  0xb76d6171 in exaPixmapSave (pScreen=0x964a5c0, area=0xa40b3a8) at
../../exa/exa_migration.c:414
#8  0xb76d6d6e in ExaOffscreenKickOut (pScreen=0x964a5c0, area=0x0) at
../../exa/exa_offscreen.c:68
#9  0xb76d724e in exaOffscreenAlloc (pScreen=0x964a5c0, size=4128000,
align=4096, locked=0, save=0xb76d6130 <exaPixmapSave>,
    privData=0xa50f5008) at ../../exa/exa_offscreen.c:247
#10 0xb76d6380 in exaDoMoveInPixmap (migrate=0xbfc50344) at
../../exa/exa_migration.c:322
#11 0xb76d6ac2 in exaDoMigration (pixmaps=0xbfc50344, npixmaps=1,
can_accel=1) at ../../exa/exa_migration.c:683
#12 0xb76d193b in exaFillRegionSolid (pDrawable=0xa50f5008,
pRegion=0x9c9b970, pixel=0, planemask=4294967295, alu=<value optimized out>)
    at ../../exa/exa_accel.c:936
#13 0xb76d3312 in exaPolyFillRect (pDrawable=0xa50f5008, pGC=0x9693b70,
nrect=1, prect=0xa35e11c) at ../../exa/exa_accel.c:751
#14 0x08180b94 in damagePolyFillRect (pDrawable=0xa50f5008, pGC=0x9693b70,
nRects=1, pRects=0xa35e11c)
    at ../../../miext/damage/damage.c:1404
#15 0x08170da0 in miColorRects (pDst=0xb14b398, pClipPict=0xb14b398,
color=0xa35e114, nRect=1, rects=0xa35e11c, xoff=0, yoff=0)
    at ../../render/mirect.c:84
#16 0x08170ecc in miCompositeRects (op=3 '\003', pDst=0xb14b398,
color=0xa35e114, nRect=1, rects=0xa35e11c) at ../../render/mirect.c:116
#17 0x081723af in CompositeRects (op=240 '�', pDst=0xb14b398,
color=0xa35e114, nRect=1, rects=0xa35e11c) at ../../render/picture.c:1699
#18 0x08178ee5 in ProcRenderFillRectangles (client=0x989f1e8) at
../../render/render.c:1500
#19 0x08175125 in ProcRenderDispatch (client=0x6444) at
../../render/render.c:2086
#20 0x0808d57f in Dispatch () at ../../dix/dispatch.c:437
#21 0x080722ed in main (argc=8, argv=0xbfc506f4, envp=Cannot access memory
at address 0x644c
) at ../../dix/main.c:397

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.

- Lowell

Ubuntu 9.04  (with non-default kernel; comes with 2.6.28 but that results in
hard lockups very frequently.)

Linux hostname 2.6.29-02062902-generic #02062902 SMP Tue Apr 28 17:10:08 UTC
2009 i686 GNU/Linux

01:00.0 VGA compatible controller: ATI Technologies Inc RV350 [Mobility
Radeon 9600 M10]
        Subsystem: IBM Device 0550
        Flags: bus master, fast Back2Back, 66MHz, medium devsel, latency 66,
IRQ 11
        Memory at e0000000 (32-bit, prefetchable) [size=128M]
        I/O ports at 3000 [size=256]
        Memory at c0100000 (32-bit, non-prefetchable) [size=64K]
        [virtual] Expansion ROM at c0120000 [disabled] [size=128K]
        Capabilities: [58] AGP version 2.0
        Capabilities: [50] Power Management version 2
        Kernel modules: radeonfb

Section "Device"
    Identifier  "ATI Technologies, Inc. RV350 NP [Mobility Radeon 9600/9700
M10/M11]"
    Driver      "ati"
    BusID       "PCI:1:0:0"
    #Option "AccelMethod" "XAA"
    Option "AccelMethod" "EXA"
    Option "AccelDFS" "on"
    #Option "XAANoOffscreenPixmaps" "true"
    Option "DynamicClocks" "on"
    Option "DPMS" "true"
    Option "EnablePageFlip" "true"
    Option "EXAOptimizeMigration" "true"
    # Disable drm/radeon kernel modules... doesn't lockup when DRI is
disabled...
    #Option "DRI" "off"
EndSection
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.x.org/archives/xorg/attachments/20090505/f85e1d30/attachment.html>


More information about the xorg mailing list