Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 124657 - ATI Radeon 9200 freezes on AMD64 using dri and glx
Summary: ATI Radeon 9200 freezes on AMD64 using dri and glx
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: AMD64 Linux
: High major (vote)
Assignee: Gentoo X packagers
URL: https://bugs.freedesktop.org/show_bug...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-02 08:54 UTC by Arvid Norlander
Modified: 2006-04-02 13:36 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
xorg.conf that makes computer lock up (xorg.conf,13.70 KB, text/plain)
2006-03-03 07:20 UTC, Arvid Norlander
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Arvid Norlander 2006-03-02 08:54:53 UTC
Using dri and the radeon driver for ATI Radeon 9200 PRO on AMD64 freezes the system about 10 minutes after startx. There are no relevant errors in /var/log/Xorg.0.log or /var/log/messages

If I disable dri and glx it works (didn't freeze for at least 10 hours) but I get no 3D acceleration.

Kernel version: gentoo-sources-2.6.15-r5
X.Org version: xorg-x11-6.8.2-r6

xorg.conf:
==========
# File generated by xorgconfig.

#
# Copyright 2004 The X.Org Foundation
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
# and/or sell copies of the Software, and to permit persons to whom the
# Software is furnished to do so, subject to the following conditions:
# 
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
# 
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
# The X.Org Foundation BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
# WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF
# OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
# 
# Except as contained in this notice, the name of The X.Org Foundation shall
# not be used in advertising or otherwise to promote the sale, use or other
# dealings in this Software without prior written authorization from
# The X.Org Foundation.
#

# **********************************************************************
# Refer to the xorg.conf(5x) man page for details about the format of 
# this file.
# **********************************************************************

# **********************************************************************
# Module section -- this  section  is used to specify
# which dynamically loadable modules to load.
# **********************************************************************
#
Section "Module"

# This loads the DBE extension module.

    Load        "dbe"  	# Double buffer extension

# This loads the miscellaneous extensions module, and disables
# initialisation of the XFree86-DGA extension within that module.
    SubSection  "extmod"
      Option    "omit xfree86-dga"   # don't initialise the DGA extension
    EndSubSection

# This loads the font modules
    Load        "type1"
#    Load        "speedo"
    Load        "freetype"
#    Load        "xtt"

# This loads the GLX module
    Load       "glx"
# This loads the DRI module
    Load       "dri"

EndSection

# **********************************************************************
# Files section.  This allows default font and rgb paths to be set
# **********************************************************************

Section "Files"

# The location of the RGB database.  Note, this is the name of the
# file minus the extension (like ".txt" or ".db").  There is normally
# no need to change the default.

    RgbPath	"/usr/X11R6/lib/X11/rgb"

# Multiple FontPath entries are allowed (which are concatenated together),
# as well as specifying multiple comma-separated entries in one FontPath
# command (or a combination of both methods)
# 
# 

    FontPath   "/usr/share/fonts/misc/"
    FontPath   "/usr/share/fonts/TTF/"
    FontPath   "/usr/share/fonts/Type1/"
#    FontPath   "/usr/share/fonts/CID/"
    FontPath   "/usr/share/fonts/75dpi/"
    FontPath   "/usr/share/fonts/100dpi/"
    FontPath   "/usr/share/fonts/local/"
#    FontPath   "/usr/share/fonts/Speedo/"
#    FontPath   "/usr/share/fonts/TrueType/"
    FontPath   "/usr/share/fonts/freefont/"

# The module search path.  The default path is shown here.

#    ModulePath "/usr/X11R6/lib/modules"

EndSection

# **********************************************************************
# Server flags section.
# **********************************************************************

Section "ServerFlags"

# Uncomment this to cause a core dump at the spot where a signal is 
# received.  This may leave the console in an unusable state, but may
# provide a better stack trace in the core dump to aid in debugging

#    Option "NoTrapSignals"

# Uncomment this to disable the <Crtl><Alt><Fn> VT switch sequence
# (where n is 1 through 12).  This allows clients to receive these key
# events.

#    Option "DontVTSwitch"

# Uncomment this to disable the <Crtl><Alt><BS> server abort sequence
# This allows clients to receive this key event.

#    Option "DontZap"

# Uncomment this to disable the <Crtl><Alt><KP_+>/<KP_-> mode switching
# sequences.  This allows clients to receive these key events.

#    Option "Dont Zoom"

# Uncomment this to disable tuning with the xvidtune client. With
# it the client can still run and fetch card and monitor attributes,
# but it will not be allowed to change them. If it tries it will
# receive a protocol error.

#    Option "DisableVidModeExtension"

# Uncomment this to enable the use of a non-local xvidtune client. 

#    Option "AllowNonLocalXvidtune"

# Uncomment this to disable dynamically modifying the input device
# (mouse and keyboard) settings. 

#    Option "DisableModInDev"

# Uncomment this to enable the use of a non-local client to
# change the keyboard or mouse settings (currently only xset).

#    Option "AllowNonLocalModInDev"

EndSection

# **********************************************************************
# Input devices
# **********************************************************************

# **********************************************************************
# Core keyboard's InputDevice section
# **********************************************************************

Section "InputDevice"

    Identifier	"Keyboard1"
    Driver	"kbd"

# For most OSs the protocol can be omitted (it defaults to "Standard").
# When using XQUEUE (only for SVR3 and SVR4, but not Solaris),
# uncomment the following line.

#    Option     "Protocol"      "Xqueue"

    Option "AutoRepeat" "500 30"

# Specify which keyboard LEDs can be user-controlled (eg, with xset(1))
#    Option	"Xleds"      "1 2 3"

#    Option "LeftAlt"     "Meta"
#    Option "RightAlt"    "ModeShift"

# To customise the XKB settings to suit your keyboard, modify the
# lines below (which are the defaults).  For example, for a non-U.S.
# keyboard, you will probably want to use:
#    Option "XkbModel"    "pc105"
# If you have a US Microsoft Natural keyboard, you can use:
#    Option "XkbModel"    "microsoft"
#
# Then to change the language, change the Layout setting.
# For example, a german layout can be obtained with:
#    Option "XkbLayout"   "de"
# or:
#    Option "XkbLayout"   "de"
#    Option "XkbVariant"  "nodeadkeys"
#
# If you'd like to switch the positions of your capslock and
# control keys, use:
#    Option "XkbOptions"  "ctrl:swapcaps"

# These are the default XKB settings for Xorg
#    Option "XkbRules"    "xorg"
#    Option "XkbModel"    "pc105"
#    Option "XkbLayout"   "us"
#    Option "XkbVariant"  ""
#    Option "XkbOptions"  ""
#    Option "XkbDisable"
    Option "XkbRules"	"xorg"
    Option "XkbModel"	"pc102"
    Option "XkbLayout"	"se"
EndSection


# **********************************************************************
# Core Pointer's InputDevice section
# **********************************************************************

Section "InputDevice"

# Identifier and driver

     Identifier "Mouse1"
     Driver     "mouse"
     Option     "Protocol"    "IMPS/2"
     Option     "Device"      "/dev/input/mice"
# Mouse-speed setting for PS/2 mouse.
#    Option "Resolution"	"256"
     Option "Buttons"      "3"
     Option "ZAxisMapping" "4 5"
EndSection

# **********************************************************************
# Monitor section
# **********************************************************************

# Any number of monitor sections may be present

Section "Monitor"
    Identifier  "SyncMaster"
    HorizSync   63.8
    VertRefresh 59.9
EndSection


# **********************************************************************
# Graphics device section
# **********************************************************************

# Any number of graphics device sections may be present

# Standard VGA Device:

#Section "Device"
#    Identifier	"Standard VGA"
#    VendorName	"Unknown"
#    BoardName	"Unknown"

# The chipset line is optional in most cases.  It can be used to override
# the driver's chipset detection, and should not normally be specified.

#    Chipset	"generic"

# The Driver line must be present.  When using run-time loadable driver
# modules, this line instructs the server to load the specified driver
# module.  Even when not using loadable driver modules, this line
# indicates which driver should interpret the information in this section.

#    Driver     "vga"
# The BusID line is used to specify which of possibly multiple devices
# this section is intended for.  When this line isn't present, a device
# section can only match up with the primary video device.  For PCI
# devices a line like the following could be used.  This line should not
# normally be included unless there is more than one video device
# intalled.

#    BusID      "PCI:0:10:0"

#    VideoRam	256

#    Clocks	25.2 28.3

#EndSection

# Device configured by xorgconfig:

Section "Device"
    Identifier  "radeoncard"
    Driver      "radeon"
    VendorName  "ATI Technologies Inc"
    BusID       "PCI:1:0:0"
    #VideoRam    131072
    # Insert Clocks lines here if appropriate
EndSection


# **********************************************************************
# Screen sections
# **********************************************************************

# Any number of screen sections may be present.  Each describes
# the configuration of a single screen.  A single specific screen section
# may be specified from the X server command line with the "-screen"
# option.
Section "Screen"
    Identifier  "Screen 1"
    Device      "radeoncard"
    Monitor     "SyncMaster"
    DefaultDepth 16

    Subsection "Display"
        Depth       8
        Modes       "1280x1024"
        ViewPort    0 0
    EndSubsection
    Subsection "Display"
        Depth       16
        Modes       "1280x1024"
        ViewPort    0 0
    EndSubsection
    Subsection "Display"
        Depth       24
        Modes       "1280x1024"
        ViewPort    0 0
    EndSubsection
EndSection

# **********************************************************************
# ServerLayout sections.
# **********************************************************************

# Any number of ServerLayout sections may be present.  Each describes
# the way multiple screens are organised.  A specific ServerLayout
# section may be specified from the X server command line with the
# "-layout" option.  In the absence of this, the first section is used.
# When now ServerLayout section is present, the first Screen section
# is used alone.

Section "ServerLayout"

# The Identifier line must be present
    Identifier  "Simple Layout"

# Each Screen line specifies a Screen section name, and optionally
# the relative position of other screens.  The four names after
# primary screen name are the screens to the top, bottom, left and right
# of the primary screen.  In this example, screen 2 is located to the
# right of screen 1.

    Screen "Screen 1"

# Each InputDevice line specifies an InputDevice section name and
# optionally some options to specify the way the device is to be
# used.  Those options include "CorePointer", "CoreKeyboard" and
# "SendCoreEvents".

    InputDevice "Mouse1" "CorePointer"
    InputDevice "Keyboard1" "CoreKeyboard"

EndSection

Section "DRI"
    Mode 0666
EndSection


emerge --info:
==============
Portage 2.0.54 (default-linux/amd64/2006.0, gcc-3.4.4, glibc-2.3.5-r2, 2.6.15-gentoo-r5 x86_64)
=================================================================
System uname: 2.6.15-gentoo-r5 x86_64 AMD Sempron(tm) Processor 3300+
Gentoo Base System version 1.6.14
ccache version 2.3 [enabled]
dev-lang/python:     2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -pipe -O2"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=k8 -pipe -O2"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks sandbox sfperms strict test"
GENTOO_MIRRORS="ftp://mirror.pudas.net/gentoo http://mirror.pudas.net/gentoo http://mirror.uni-c.dk/pub/gentoo/ ftp://ftp.linux.ee/pub/gentoo/distfiles/"
LDFLAGS="-Wl,-O1"
LINGUAS="en sv"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="amd64 X acl acpi alsa apache2 arts audiofile avi bash-completion berkdb bitmap-fonts bzip2 cairo caps ccache cdb cdr crypt cups curl dvdr eds emacs emboss encode exif expat fam fbcon flac fontconfig foomaticdb fortran gd gdbm geoip gif glep glut gmp gpm gstreamer gtk gtk2 iconv idn ieee1394 imlib javascript jpeg jpeg2k kde lcms lm_sensors logrotate lzw lzw-tiff mad mhash mikmod mng mozdevelop mozsvg mp3 mpeg mysql mysqli ncurses nls nptl nsplugin objc ogg openal openexr opengl pam pcre pdflib perl php pic png python qt quicktime readline scanner sdl sndfile spell ssl tcpd tiff truetype truetype-fonts type1-fonts udev unicode usb userlocales vorbis wmf xml2 xpm xv zlib linguas_en linguas_sv userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, PORTDIR_OVERLAY
Comment 1 Donnie Berkholz (RETIRED) gentoo-dev 2006-03-02 17:58:59 UTC
Can you give 7.0 a try instead? Take a look at http://www.gentoo.org/proj/en/desktop/x/x11/modular-x-howto.xml.
Comment 2 Arvid Norlander 2006-03-03 02:39:16 UTC
(In reply to comment #1)
> Can you give 7.0 a try instead? Take a look at
> http://www.gentoo.org/proj/en/desktop/x/x11/modular-x-howto.xml.
> 

Yes. But it will take some time. ;) I will be back when it is finished. Do I have to update to portage-2.1? The new portage is so slow. :( I use CDB cache at the moment.
Comment 3 Arvid Norlander 2006-03-03 06:05:55 UTC
(In reply to comment #1)
> Can you give 7.0 a try instead? Take a look at
> http://www.gentoo.org/proj/en/desktop/x/x11/modular-x-howto.xml.
> 
Done. No problem, yet. After 20 minutes it runs fine. 
I report if it fails. 

But some other apps are missing/not working. :( revdep-rebuild seems to fix only some of them.

Comment 4 Donnie Berkholz (RETIRED) gentoo-dev 2006-03-03 06:56:21 UTC
(In reply to comment #2)
> Yes. But it will take some time. ;) I will be back when it is finished. Do I
> have to update to portage-2.1? The new portage is so slow. :( I use CDB cache
> at the moment.

Yeah, the ebuilds make use of features only available in the 2.1 series.
Comment 5 Donnie Berkholz (RETIRED) gentoo-dev 2006-03-03 06:56:43 UTC
(In reply to comment #3)
> But some other apps are missing/not working. :( revdep-rebuild seems to fix
> only some of them.

What isn't working, and what error messages do you get?
Comment 6 Arvid Norlander 2006-03-03 07:08:31 UTC
It still fails using DRI. But after half an hour. And it works with only glx.
Comment 7 Arvid Norlander 2006-03-03 07:12:14 UTC
(In reply to comment #5)
> (In reply to comment #3)
> > But some other apps are missing/not working. :( revdep-rebuild seems to fix
> > only some of them.
> 
> What isn't working, and what error messages do you get?
> 
1. Scroll Lock lamp on keyboard truns on every now and then without reason.
2. driconf don't have the right deps. It needs to bring in x11-apps/xdriinfo but don't.
3. See my comment (#6) above.
Comment 8 Donnie Berkholz (RETIRED) gentoo-dev 2006-03-03 07:18:15 UTC
OK, go ahead and file two separate bugs at bugs.freedesktop.org for the scroll lock and the dri lockup, in the xorg product for scroll lock and the DRI product for the lockup. Attach /var/log/Xorg.0.log and /etc/X11/xorg.conf to each, then post the URLs here.

And actually driconf already depends on xdriinfo -- if it's not getting pulled in, and you don't have virtual/x11 installed, that'll need a new portage bug to get filed.

Thanks!
Comment 9 Arvid Norlander 2006-03-03 07:20:03 UTC
Created attachment 81205 [details]
xorg.conf that makes computer lock up

This is the xorg.conf that makes the computer lock up using Modular X. When I commented out the line
   Load       "dri"
it works. The lockups using Modular X are more rare than the lockups using monolithic XOrg.
Comment 10 Arvid Norlander 2006-03-03 07:20:54 UTC
(In reply to comment #8)
> OK, go ahead and file two separate bugs at bugs.freedesktop.org for the scroll
> lock and the dri lockup, in the xorg product for scroll lock and the DRI
> product for the lockup. Attach /var/log/Xorg.0.log and /etc/X11/xorg.conf to
> each, then post the URLs here.
> 
> And actually driconf already depends on xdriinfo -- if it's not getting pulled
> in, and you don't have virtual/x11 installed, that'll need a new portage bug to
> get filed.
> 
> Thanks!
> 

Didn't see that comment when I added the config file. Sorry
Comment 11 Arvid Norlander 2006-03-03 07:51:13 UTC
https://bugs.freedesktop.org/show_bug.cgi?id=6111 is the bug for the crash
Comment 12 Arvid Norlander 2006-03-03 13:20:28 UTC
The Scroll Lock error is fixed xkeyboard-config of later version than the one in Portage:
https://bugs.freedesktop.org/show_bug.cgi?id=5635

>It seems I've fixed it by adding ScrollLock into the list of virtual_modifiers
>in types/level5 (yeah, just added it there - without any actual use!). The bad
>thing is that I do not really understand why it helps. At this time, I don't
>have much time to investigate it more - so explanations are welcome ;)
Comment 13 Donnie Berkholz (RETIRED) gentoo-dev 2006-03-03 14:42:07 UTC
Reopening for that issue -- we'll add a patch.
Comment 14 Arvid Norlander 2006-03-03 15:30:41 UTC
(In reply to comment #13)
> Reopening for that issue -- we'll add a patch.
> 
What about the crash issue then?
Comment 15 Donnie Berkholz (RETIRED) gentoo-dev 2006-03-03 18:09:18 UTC
Separate bug we don't have a fix for. As this bug actually covers a couple of separate bugs, looks like I'll be re-closing and re-opening it.
Comment 16 Arvid Norlander 2006-03-04 03:05:18 UTC
(In reply to comment #15)
> Separate bug we don't have a fix for. As this bug actually covers a couple of
> separate bugs, looks like I'll be re-closing and re-opening it.
> 

Ok.
Comment 17 Donnie Berkholz (RETIRED) gentoo-dev 2006-03-23 00:22:14 UTC
Fixed xkeyboard-config for scroll lock, re-resolving upstream for freeze.
Comment 18 Arvid Norlander 2006-04-02 13:36:39 UTC
(In reply to comment #17)
> Fixed xkeyboard-config for scroll lock, re-resolving upstream for freeze.
> 

Not realy:
Now it's allways off. It should toggle the LED not make it be turned off all the time.