[Needs AGPMode quirk] [RV280 9200SE] Intrepid X crashes

Bug #300304 reported by Risto H. Kurppa
12
Affects Status Importance Assigned to Milestone
xserver-xorg-driver-ati
Fix Released
Medium
xserver-xorg-video-ati (Ubuntu)
Fix Released
High
Bryce Harrington

Bug Description

My display adaptor:
01:00.0 VGA compatible controller: ATI Technologies Inc RV280 [Radeon 9200 SE] (rev 01)
Earlier I had a DVI-connected Apple Studio 15" monitor, now a DVI and VGA connected DELL 17" LCD

Hardy/KDE3 with vesa works okay.
Intrepid/KDE4, Jaunty Alpha4 and Alpha5/KDE4 fail:

X starts OK, I can see the cursor but the rest of the image is scrambled: Just 'random lines' all over the screen, starting from KDM. Might be some kind of a sync problem. Something like this: http://img34.picoodle.com/img/img34/4/7/22/f_screenscrewm_cac94d6.png (not my screenshot)

(originally the description mentioned also problems with fglrx drivers problem no. 2) but let's concentrate on the open source drivers now.. See the 'original description' for more information)

Revision history for this message
Risto H. Kurppa (risto.kurppa) wrote :
Revision history for this message
Risto H. Kurppa (risto.kurppa) wrote :

Change of the package to xorg.. Feel free to change if you know better..

Revision history for this message
Burger King (m-vitta) wrote :

Same problem on a system based on an ATI Radeon 9600 (ATI Technologies Inc RV350 AP [Radeon 9600]) and on an AMD 790G chipset (Radeon x1250). The bug appears also when using the open source Radeon drivers (tested on the 9600). VGA connected Hitachi CM640ET on the first system and a CRT Philips PAL TV on the second.

Revision history for this message
Burger King (m-vitta) wrote :

This bug looks wery similar to the bugs #295994 and #289996.

Revision history for this message
Burger King (m-vitta) wrote :

For the sake of completeness I added the Xorg.0.log for the Radeon open source driver.

Revision history for this message
Bryce Harrington (bryce) wrote :

Please collect a full backtrace on this crash. See http://wiki.ubuntu.com/X/Backtracing for directions.

description: updated
Changed in xorg:
status: New → Incomplete
Revision history for this message
Risto H. Kurppa (risto.kurppa) wrote :
Download full text (3.3 KiB)

I don't know if this is a 'full backtrace' but that's what I was able to get out so far. I also included trace.

kurppa@el-bond:~$ less /etc/X11/xorg.conf
Section "Device"
        Identifier "Configured Video Device"
EndSection

Section "Monitor"
        Identifier "Configured Monitor"
EndSection

Section "Screen"
        Identifier "Default Screen"
        Monitor "Configured Monitor"
        Device "Configured Video Device"
EndSection

Section "ServerFlags"
        Option "NoTrapSignals" "true"
EndSection

kurppa@el-bond:~$ sudo gdb /usr/bin/Xorg
[sudo] password for kurppa:
GNU gdb 6.8-debian
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "i486-linux-gnu"...
(gdb) run
Starting program: /usr/bin/Xorg
[Thread debugging using libthread_db enabled]

X.Org X Server 1.5.2
Release Date: 10 October 2008
X Protocol Version 11, Revision 0
Build Operating System: Linux 2.6.24-19-server i686 Ubuntu
Current Operating System: Linux el-bond 2.6.27-7-generic #1 SMP Tue Nov 4 19:33:20 UTC 2008 i686
Build Date: 24 October 2008 08:00:16AM
xorg-server 2:1.5.2-2ubuntu3 (<email address hidden>)
        Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
Module Loader present
Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Tue Dec 9 09:44:13 2008
(==) Using config file: "/etc/X11/xorg.conf"
[New Thread 0xb7aab6b0 (LWP 6044)]
[tcsetpgrp failed in terminal_inferior: Operation not permitted]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb7aab6b0 (LWP 6044)]
0x00000000 in ?? ()
(gdb) backtrace full
#0 0x00000000 in ?? ()
No symbol table info available.
#1 0xb79c7b07 in ?? () from /usr/lib/xorg/modules/drivers//radeon_drv.so
No symbol table info available.
#2 0xb799555a in ?? () from /usr/lib/xorg/modules/drivers//radeon_drv.so
No symbol table info available.
#3 0xb79984fc in ?? () from /usr/lib/xorg/modules/drivers//radeon_drv.so
No symbol table info available.
#4 0x080aac9f in InitOutput (pScreenInfo=0x8201200, argc=1, argv=0xbfa48bb4)
    at ../../../../hw/xfree86/common/xf86Init.c:749
        configured_device = <value optimized out>
        i = -1214279692
        j = 0
        k = <value optimized out>
        scr_index = <value optimized out>
        modulelist = <value optimized out>
        optionlist = (pointer *) 0x985ede0
        layout = (screenLayoutPtr) 0x98527d8
        screenpix24 = <value optimized out>
        pix24 = <value optimized out>
        pix24From = <value optimized out>
        autoconfig = <value optimized out>
#5 0x08071b19 in main (argc=1, argv=0xbfa48bb4, envp=0xbfa48bbc)
    at ../../dix/main.c:358
---Type <return> to continue, o...

Read more...

Bryce Harrington (bryce)
Changed in xserver-xorg-video-ati:
status: Incomplete → New
Revision history for this message
Bryce Harrington (bryce) wrote :

Hi Risto,

That's a very good start! The only other adjustment needed, is please install the debug package, xserver-xorg-video-ati-dbg, so we can get symbols on the calls #1-3.

Changed in xserver-xorg-video-ati:
status: New → Incomplete
Revision history for this message
Risto H. Kurppa (risto.kurppa) wrote :
Download full text (6.2 KiB)

ok, I did a new test today

Clean Kubuntu 8.10 install from the alternate cd.

First start: When KDM starts, I can see the cursor nice & clear but other than that I'd say there's a sync problem or something. Since I'm able to see the cursor it's something else..?

I ran updates, installed ssh and restarted.

Login & startx to see that the same problem is still there: cursor is nice and clear but the rest is a mess..

Installed xserver-xorg-core-dbg libgl1-mesa-dri-dbg xserver-xorg-video-ati-dbg (actually these were installed: libgl1-mesa-dri-dbg xserver-xorg-core-dbg xserver-xorg-video-ati-dbg xserver-xorg-video-mach64-dbg xserver-xorg-video-r128-dbg xserver-xorg-video-radeon-dbg) and added this to xorg.conf:
Section "ServerFlags"
        Option "NoTrapSignals" "true"
EndSection
and tried to backtrace but since X doesnt' crash here (see problem #1 in the first message of the bug rep)

Then I install xorg-driver-fglrx (which installed dkms fakeroot fglrx-amdcccle fglrx-kernel-source patch xorg-driver-fglrx) to try the problem #2 (actually I think I have two separate problems here - maybe this should be split in two reports, someone please tell me?)

At this point I also removed KDM..

I tried to run sudo /etc/init.d/Xorg and it started but running the open drivers, I think (same symptons).

So I run sudo dpkg-reconfigure xserver-xorg (though AFAIK it doesnt change the driver in xorg.conf) and then (for some reason) I restarted the computer (maybe it's required to install the kernel modules or something..?)

And now, finally got it crashing:

kurppa@el-bond:~$ sudo /usr/bin/Xorg
[sudo] password for kurppa:

X.Org X Server 1.5.2
Release Date: 10 October 2008
X Protocol Version 11, Revision 0
Build Operating System: Linux 2.6.24-19-server i686 Ubuntu
Current Operating System: Linux el-bond 2.6.27-9-generic #1 SMP Thu Nov 20 21:57:00 UTC 2008 i686
Build Date: 24 October 2008 08:00:16AM
xorg-server 2:1.5.2-2ubuntu3 (<email address hidden>)
        Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
Module Loader present
Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Thu Dec 18 15:34:25 2008
(==) Using config file: "/etc/X11/xorg.conf"

Backtrace:
0: /usr/bin/Xorg(xf86SigHandler+0x79) [0x80c3009]
1: [0xb8015400]
2: /usr/lib/xorg/modules/drivers//radeon_drv.so [0xb7a93b07]
3: /usr/lib/xorg/modules/drivers//radeon_drv.so [0xb7a6155a]
4: /usr/lib/xorg/modules/drivers//radeon_drv.so [0xb7a644fc]
5: /usr/bin/Xorg(InitOutput+0x96f) [0x80aac9f]
6: /usr/bin/Xorg(main+0x279) [0x8071b19]
7: /lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe5) [0xb7c1b685]
8: /usr/bin/Xorg [0x8071101]
Saw signal 11. Server aborting.
Aborted
kurppa@el-bond:~$

And now backtracing:

kurppa@el-bond:~$ sudo gdb /usr/bin/Xorg
GNU gdb 6.8-debian
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redi...

Read more...

Revision history for this message
Bryce Harrington (bryce) wrote : Re: [RV280 9200SE] Intrepid X crashes in RADEONDRIGetVersion (wrong DRM library present?)

Thanks; that helps a lot. In the log and backtrace, it seems to be crashing when it's trying to open the DRM device:

drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is -1, (No such device or address)
drmOpenDevice: open result is -1, (No such device or address)
drmOpenDevice: Open failed

The backtrace is pointing at this line (or a previous one) as where the crash is occuring:

    fd = drmOpen(RADEON_DRIVER_NAME, busId);

I think part of the problem is that installing fglrx has confused your system. You commented that with #2 you're attempting to use fglrx, but from the log and backtrace it appears to be using radeon. If you have fglrx's DRM installed, then it may be causing the conflict with starting radeon. As to why it's using radeon rather than fglrx, perhaps you've not specified fglrx as the driver in your xorg.conf. Please check this.

Let's focus this bug report on getting things working just with the open source radeon driver. Please completely purge fglrx and related packages, and reinstall the -ati driver (or do a fresh reinstall of Intrepid). Do not install fglrx. Attach the Xorg.0.log and xorg.conf from running that, as well as the output of lspci -vvnn.

Changed in xserver-xorg-video-ati:
status: Incomplete → New
status: New → Incomplete
Revision history for this message
Risto H. Kurppa (risto.kurppa) wrote :

Fresh Intrepid-Kubuntu-Alternate install and problem #1 appears, as expected. Three requested files attached

Revision history for this message
Risto H. Kurppa (risto.kurppa) wrote :

Will not attach xorg.conf since it's empty.

Revision history for this message
Risto H. Kurppa (risto.kurppa) wrote :

I made a quick try with Jaunty live CD, xorg.log included. I guess nothing too interesting there.
I have to give the intrepid installation hard drive for Windows :( a while so let's see when I can do some more testing, if required.

Revision history for this message
Risto H. Kurppa (risto.kurppa) wrote :

Tried this on Jaunty Alpha4 with a new monitor (DELL someting lcd) that has both VGA and DVI connectors and the same problem with both cables: the picture is fuzzy except the mouse cursor. Can I provide you with more information?

Revision history for this message
Risto H. Kurppa (risto.kurppa) wrote :

Marked as confirmed - same behaviour on several releases (Intrepid, Jaunty a4 & a5 both on DVI and VGA). Change if you don't agree.

Changed in xserver-xorg-video-ati:
status: Incomplete → Confirmed
description: updated
Revision history for this message
Bryce Harrington (bryce) wrote :

Based on the description of the symptoms, it sort of sounds like this might be caused by an incorrect AGPMode setting, which is relevant when DRI is enabled. You should test if changing this makes the issue go away. In your /etc/X11/xorg.conf set AGPMode to various values like this:

 Section "Device"
      ...
      Option "AGPMode" "2"
 EndSection

Possible values include 1, 2, 4, 8. You can see what it's currently set to by looking in /var/log/Xorg.0.log. It's worthwhile to test all four values even once you find one that works. If this takes care of it for you, we may be able to establish a quirk to set it for your hardware combo

For more details on this, please see the "ATI AGP Mode Quirk" section at https://wiki.ubuntu.com/X/Quirks

Changed in xserver-xorg-video-ati:
importance: Undecided → High
status: Confirmed → Incomplete
Revision history for this message
Risto H. Kurppa (risto.kurppa) wrote :

Indeed adding
Option "AGPMode" "4"
fixes the problem!

Now I'm running Hardy w. KDE 4, I'll try Jaunty soon with this fix.

Thank you a lot Bryce!!!!!!

If there's still something I can do to get this fixed for others, let me know!

Revision history for this message
Bryce Harrington (bryce) wrote :

Thanks, we've enough info to put a quirk in for this now.

Changed in xserver-xorg-video-ati:
assignee: nobody → bryceharrington
status: Incomplete → Triaged
Revision history for this message
Risto H. Kurppa (risto.kurppa) wrote :

Great, looking forward to see this working out-of-the-box :)

Revision history for this message
In , Bryce Harrington (bryce) wrote :

Created an attachment (id=23386)
quirk patch

From this Ubuntu bug:
https://edge.launchpad.net/ubuntu/+bug/300304

[Problem]
Corrupted screen at X startup. Issue resolved for this hardware by specifying AGPMode 4.

[lspci]
00:00.0 Host bridge [0600]: Intel Corporation 82865G/PE/P DRAM Controller/Host-Hub Interface [8086:2570] (rev 02)
 Subsystem: Hewlett-Packard Company Device [103c:12bc]
01:00.0 VGA compatible controller [0300]: ATI Technologies Inc RV280 [Radeon 9200 SE] [1002:5964] (rev 01)
 Subsystem: C.P. Technology Co. Ltd Device [148c:2073]

(In theory I would commit this directly myself, but I am having some ssh/gpg key issues with fdo currently. I should be good for committing once I've straightened that out.)

Revision history for this message
In , agd5f (agd5f) wrote :

pushed, thanks.

49b57767d0d2c041517b0764c2ed2d2ba5a7092c

Changed in xserver-xorg-driver-ati:
status: Unknown → Fix Released
Revision history for this message
Bryce Harrington (bryce) wrote :

Uploaded patch to Jaunty and to upstream git.

Changed in xserver-xorg-video-ati:
status: Triaged → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package xserver-xorg-video-ati - 1:6.11.0-1ubuntu2

---------------
xserver-xorg-video-ati (1:6.11.0-1ubuntu2) jaunty; urgency=low

  * Add 105_quirk_rv280_865g.patch: AGPMode quirk. Solves screen
    corruption issue for RV280 on Intel 82865G/PE/P DRAM
    Controller/Host-Hub
    (LP: #300304)

 -- Bryce Harrington <email address hidden> Fri, 27 Feb 2009 18:23:17 -0800

Changed in xserver-xorg-video-ati:
status: Fix Committed → Fix Released
Changed in xserver-xorg-driver-ati:
importance: Unknown → Medium
Changed in xserver-xorg-driver-ati:
importance: Medium → Unknown
Changed in xserver-xorg-driver-ati:
importance: Unknown → Medium
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.