Bug 14652 - Hang at RADEONSetupImageTexturedVideo
Summary: Hang at RADEONSetupImageTexturedVideo
Status: CLOSED NOTABUG
Alias: None
Product: xorg
Classification: Unclassified
Component: Driver/Radeon (show other bugs)
Version: git
Hardware: x86 (IA32) Linux (All)
: medium normal
Assignee: xf86-video-ati maintainers
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-24 11:40 UTC by Corbin Simpson
Modified: 2008-02-25 20:02 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
Xorg log (134.46 KB, text/plain)
2008-02-25 00:39 UTC, Corbin Simpson
no flags Details
Xorg config (2.52 KB, text/plain)
2008-02-25 00:41 UTC, Corbin Simpson
no flags Details

Description Corbin Simpson 2008-02-24 11:40:43 UTC
Hi. Using Xorg server 1.4.90 (a git snapshot) and the latest git of xf86-video-ati, the server hangs at RADEONSetupImageTexturedVideo, and can only be reset with magic SysRq.

(I figured out where it was using debug messages to the log and a segfault trigger, but I can't really reach into this function for some reason.)

I'm using a Radeon Mobility X1700, Gentoo Linux, with a laptop screen (1680x1050). Any tips, hints?
Comment 1 Alex Deucher 2008-02-24 23:09:02 UTC
Can you attach your xorg log and config?
Comment 2 Corbin Simpson 2008-02-25 00:39:02 UTC
Created attachment 14551 [details]
Xorg log

Xorg log from attempting to start X server with radeon. Server hangs at "Initializing Xv".
Comment 3 Corbin Simpson 2008-02-25 00:41:21 UTC
Created attachment 14552 [details]
Xorg config

xorg.conf used to load radeon.
Comment 4 Corbin Simpson 2008-02-25 00:46:41 UTC
About the xorg.conf: The lines about shadowfb and composite are commented for radeon, but are normally uncommented for radeonhd. (Composite is disturbingly slow with XAA/EXA.)

So, I tried again, but for some reason I can't log anything from inside RADEONSetupImageTexturedVideo. I can kill the X server from inside that function with something like:

int* seg = 0;
*int = 7;

So I know for sure that it's hanging somewhere in that function. But, xf86DrvMsg doesn't work inside there, and I don't know how to load X into a debugger, so I'm stuck.

Oh, and if I do segfault the server, my screen is still hosed; it's completely blank and the backlight is off, like the connector turned off and hasn't turned back on. (I know it's segfaulted because of things like:
    # startx && sleep 5 && sync && reboot
which does work if a segfault trigger is put in.)
Comment 5 Alex Deucher 2008-02-25 10:48:05 UTC
(In reply to comment #4)
> About the xorg.conf: The lines about shadowfb and composite are commented for
> radeon, but are normally uncommented for radeonhd. (Composite is disturbingly
> slow with XAA/EXA.)
> 
> So, I tried again, but for some reason I can't log anything from inside
> RADEONSetupImageTexturedVideo. I can kill the X server from inside that
> function with something like:


I suspect the symbol is missing.  Make sure you re-run configure after checking out the latest git tree as I added some files and the makefiles need to be updated to build them.
Comment 6 Manuel Lauss 2008-02-25 10:56:56 UTC
Mobility9600 here, also hangs.

git bisect fingered this commit:

d9be9f34b0d3313e7b22b2a8bb0a8924ad3116bf is first bad commit
commit d9be9f34b0d3313e7b22b2a8bb0a8924ad3116bf
Author: Alex Deucher <alex@samba.(none)>
Date:   Sat Feb 23 19:06:30 2008 -0500

    RADEON: add textured video support for r1xx-r4xx radeons
    
    Based on the kdrive ati video code by Eric Anholt.
    R3xx/R4xx still have some clipping issues in certain situations

:040000 040000 ed1d02afb9b2951df901458508f588bf64fd7bc0 f13511299ff2960a24193bcf095a8de7d2c836c5 M      src
Comment 7 Alex Deucher 2008-02-25 11:02:40 UTC
(In reply to comment #6)
> Mobility9600 here, also hangs.

I suspect you have the same problem.  Make sure you re-run configure (./autogen.sh) before rebuilding.
Comment 8 Manuel Lauss 2008-02-25 11:11:56 UTC
Indeed, HEAD works now. Thanks!
Comment 9 Corbin Simpson 2008-02-25 20:02:08 UTC
Okay, found it. It's a problem in Gentoo's patches on the xorg-server 1.4 unstable tree. Reverting to xorg-server 1.3 fixes the problem, and I've notified bugs.gentoo.org .

Video works! It freezes the system occasionally, but that's understandable since it's still unstable and using MMIO. Thanks for the hard work.

~ C


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.