Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 135851 - xf86-video-ati 6.6.0 DRI not working with Mobility Radeon 9600.
Summary: xf86-video-ati 6.6.0 DRI not working with Mobility Radeon 9600.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: X11 External Driver Maintainers
URL:
Whiteboard:
Keywords:
: 135852 135855 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-06-06 20:58 UTC by the.unseen
Modified: 2006-06-11 09:40 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description the.unseen 2006-06-06 20:58:20 UTC
I am using the (modular) xorg 7.1 builds on an Thinkpad T42 laptop that has a Mobility Radeon 9600 chip in it, and on a desktop machine with a Radeon 9000.  DRI fails completely on the 9600, but on the 9000, both DRI, and AIGLX (appear to) work flawlessly.  It also works with xorg 7.0, and I have not tested it with 6.8, XFree86, KDrive, or anything else.

The only nonstandard ebuilds I am using at time are except for the kernel (which includes gensplash, suspend2, and the most recent HDAPS drive parking patch from thinkwiki.org and not the standard gentoo patches), yaird, some HDAPS related utilities, the biometric stuff and a few meta packages.

dmesg shows nothing video related beyond "loading r300 microcode."
glxinfo prints the followin to stderr:
libGL warning: 3D driver returned no fbconfigs.
libGL error: InitDriver failed
libGL error: reverting to (slow) indirect rendering

kernel is a patched 2.6.16.16
x11-drm is version 20051223

My "/etc/X11/xorg.conf" is:

Section "ServerLayout"
        Identifier     "X.org Configured"
        Screen      0  "Screen0" 0 0
        InputDevice    "Mice"      "CorePointer"
        InputDevice    "Keyboard0" "CoreKeyboard"
        InputDevice    "TouchPad"  "AlwaysCore"
EndSection

Section "Files"
        FontPath     "/usr/share/fonts/misc"
        FontPath     "/usr/share/fonts/75dpi"
        FontPath     "/usr/share/fonts/100dpi"
        FontPath     "/usr/share/fonts/TTF"
        FontPath     "/usr/share/fonts/Type1"
EndSection

Section "Module"
        Load  "glx"
        Load  "extmod"
        Load  "xtrap"
        Load  "record"
        Load  "dbe"
        Load  "dri"
        Load  "freetype"
        Load  "type1"
EndSection

Section "DRI"
        Group   "video"
        Mode    0660
EndSection

Section "InputDevice"
        Identifier  "Keyboard0"
        Driver      "kbd"
        Option      "XkbRules"  "xorg"
        Option      "XKbModel"  "thinkpad"
        Option      "XKbLayout" "us"
EndSection

Section "InputDevice"
        Identifier      "Mice"
        Driver          "mouse"
        Option          "Protocol"              "auto"
        Option          "Device"                "/dev/input/mice"
        Option          "ZAxisMapping"          "4 5"
EndSection

Section "InputDevice"
        Identifier      "TouchPad"
        Driver          "synaptics"
        Option          "Protocol"              "auto-dev"
        Option          "Device"                "/dev/input/mice"
        Option          "SHMConfig"             "on"
        Option          "UpDownScrolling"       "on"
EndSection

Section "Monitor"
        Identifier   "Monitor0"
        VendorName   "IBM"
        ModelName    "ThinkPad T42 Panel"
        DisplaySize  287.86666666666666666666666666667 215.9
        Option       "DPMS"     "True"
EndSection

Section "Device"
        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
        ### [arg]: arg optional
        #Option     "NoAccel"                   # [<bool>]
        #Option     "SWcursor"                  # [<bool>]
        Option      "BusType"                   "AGP"
        #Option     "CPPIOMode"                 # [<bool>]
        #Option     "CPusecTimeout"             # <i>
        Option      "AGPMode"                   "x8"
        Option      "AGPFastWrite"              "True"
        #Option     "AGPSize"                   # <i>
        #Option     "GARTSize"                  # <i>
        #Option     "RingSize"                  # <i>
        #Option     "BufferSize"                # <i>
        Option      "EnableDepthMoves"          "True"
        Option      "EnablePageFlip"            "True"
        #Option     "NoBackBuffer"              # [<bool>]
        #Option     "DMAForXv"                  # [<bool>]
        #Option     "FBTexPercent"              # <i>
        #Option     "PanelOff"                  # [<bool>]
        #Option     "DDCMode"                   # [<bool>]
        Option      "MonitorLayout"             "LVDS,NONE"
        #Option     "IgnoreEDID"                # [<bool>]
        Option      "UseFBDev"                  "True"
        #Option     "MergedFB"                  # [<bool>]
        #Option     "CRT2HSync"                 # [<str>]
        #Option     "CRT2VRefresh"              # [<str>]
        #Option     "CRT2Position"              # [<str>]
        #Option     "MetaModes"                 # [<str>]
        #Option     "MergedDPI"                 # [<str>]
        #Option     "MergedXinerama"            # [<bool>]
        #Option     "MergedXineramaCRT2IsScreen0"       # [<bool>]
        #Option     "MergedNonRectangular"      # [<bool>]
        #Option     "MergedMouseRestriction"    # [<bool>]
        #Option     "DisplayPriority"           # [<str>]
        #Option     "PanelSize"                 # [<str>]
        #Option     "ForceMinDotClock"          # <freq>
        #Option     "ColorTiling"               # [<bool>]
        #Option     "VideoKey"                  # <i>
        #Option     "RageTheatreCrystal"        # <i>
        #Option     "RageTheatreTunerPort"      # <i>
        #Option     "RageTheatreCompositePort"  # <i>
        #Option     "RageTheatreSVideoPort"     # <i>
        #Option     "TunerType"                 # <i>
        #Option     "RageTheatreMicrocPath"     # <str>
        #Option     "RageTheatreMicrocType"     # <str>
        Option      "RenderAccel"               "False"
        Option      "SubPixelOrder"             "RGB"
        #Option     "ShowCache"                 # [<bool>]
        Option      "DynamicClocks"             "True"
        #Option     "BIOSHotkeys"               # [<bool>]
        #Option     "VGAAccess"                 # [<bool>]
        #Option     "ReverseDDC"                # [<bool>]
        Option      "LVDSProbePLL"              "True"
        Option      "AccelMethod"               "XAA"
        Identifier  "Card0"
        Driver      "ati"
        VendorName  "ATI Technologies Inc"
        BoardName   "RV350 [Mobility Radeon 9600 M10]"
        BusID       "PCI:1:0:0"
EndSection

Section "Screen"
        Identifier      "Screen0"
        Device          "Card0"
        Monitor         "Monitor0"
        DefaultDepth     24
        SubSection "Display"
                Viewport   0 0
                Depth     1
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     4
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     8
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     15
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     16
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     24
        EndSubSection
EndSection
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-06-07 00:44:50 UTC
*** Bug 135852 has been marked as a duplicate of this bug. ***
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2006-06-07 00:45:33 UTC
*** Bug 135855 has been marked as a duplicate of this bug. ***
Comment 3 Lars Weiler (RETIRED) gentoo-dev 2006-06-08 16:05:29 UTC
I had a similar problem here on my machine with a Radeon IGP 330M/340M/350M card.  After I re-emerged all deps of x11-drivers/xf86-video-ati-6.6.0 (these are the packages x11-proto/fontsproto-2.0.2, x11-proto/randrproto-1.1.2, x11-proto/videoproto-2.2.2, x11-proto/xextproto-7.0.2, x11-proto/xineramaproto-1.1.2, x11-proto/xf86miscproto-0.9.2, x11-proto/xproto-7.0.5, x11-proto/xf86driproto-2.0.3, x11-libs/libdrm-2.0.1), and the driver itself, DRI is back on.
Comment 4 the.unseen 2006-06-08 21:48:44 UTC
I am sad to say that your fix does not work in this case. 

On further examination I found that glxinfo prints the following with LIBGL_DEBUG set to verbose:

name of display: :0.0
libGL: XF86DRIGetClientDriverName: 4.0.3 r300 (screen 0)
libGL: OpenDriver: trying /usr/lib/dri/r300_dri.so
drmOpenByBusid: Searching for BusID pci:0000:01:00.0
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 4, (OK)
drmOpenByBusid: drmOpenMinor returns 4
drmOpenByBusid: drmGetBusid reports pci:0000:01:00.0
libGL error:
R300 DRI driver expected DRM version 1.24.x but got version 1.20.0
libGL warning: 3D driver returned no fbconfigs.
libGL error: InitDriver failed
libGL error: reverting to (slow) indirect rendering
display: :0  screen: 0
direct rendering: No

My guess is the issue has to do with the kernel being based on 2.6.16.16.  It would seem that the x11-drm package needs to be updated.  The latest CVS drm modules seem to work fine, AIGLX included (in that KInfoCenter, which usually displays Mesa Indirect Rendering even with DRI working says its accelerated.)
Comment 5 Joshua Baergen (RETIRED) gentoo-dev 2006-06-11 08:54:11 UTC
Have you tried a 2.6.17 release candidate yet?  It may have the updated DRM version you need, and it'll probably be out quite soon...
Comment 6 the.unseen 2006-06-11 09:40:38 UTC
=x11-base/x11-drm-20060608 works.  And it's now in the official portage tree. :)
I suppose I should set this as "fixed" now.