Bug 7669

Summary: Ati Mobility Radeon X600 and the Radeon DRI Driver
Product: DRI Reporter: Arturo Mann <arturo.mann>
Component: DRM/otherAssignee: Default DRI bug account <dri-devel>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: medium    
Version: DRI git   
Hardware: x86 (IA32)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:

Description Arturo Mann 2006-07-28 01:09:26 UTC
I just upgraded to XORG 7.1 to try the new OpenSource Radeon driver to have DRI
accelerated Graphics on my X600 Ati Card (let's just face it, flgrx is crap)
It all installs smoothly, and the desktop is showing no signs of lag.
&&&This is an AMD64 Machine &&&
The problem is that, whenever I try to start a GLX application, it crashes with
this message:
drmRadeonCmdBuffer: -22 (exiting)
and Dmesg has this to say about it:
[drm:r300_emit_3d_load_vbpntr] *ERROR* Offset failed range check (k=0 i=2) while
processing 3D_LOAD_VBPNTR packet.
[drm:r300_emit_packet3] *ERROR* r300_emit_raw_packet3 failed
[drm:r300_do_cp_cmdbuf] *ERROR* r300_emit_packet3 failed
Is this bug known? If so, what is the fix?
Here is the output of scanpci, and my Xorg config:
pci bus 0x0000 cardnum 0x00 function 0x00: vendor 0x1002 device 0x5950
 ATI Technologies Inc RS480 Host Bridge

pci bus 0x0000 cardnum 0x02 function 0x00: vendor 0x1002 device 0x5a34
 ATI Technologies Inc RS480 PCI-X Root Port

pci bus 0x0000 cardnum 0x06 function 0x00: vendor 0x1002 device 0x5a38
 ATI Technologies Inc RS480 PCI Bridge

pci bus 0x0000 cardnum 0x13 function 0x00: vendor 0x1002 device 0x4374
 ATI Technologies Inc IXP SB400 USB Host Controller

pci bus 0x0000 cardnum 0x13 function 0x01: vendor 0x1002 device 0x4375
 ATI Technologies Inc IXP SB400 USB Host Controller

pci bus 0x0000 cardnum 0x13 function 0x02: vendor 0x1002 device 0x4373
 ATI Technologies Inc IXP SB400 USB2 Host Controller

pci bus 0x0000 cardnum 0x14 function 0x00: vendor 0x1002 device 0x4372
 ATI Technologies Inc IXP SB400 SMBus Controller

pci bus 0x0000 cardnum 0x14 function 0x01: vendor 0x1002 device 0x4376
 ATI Technologies Inc Standard Dual Channel PCI IDE Controller ATI

pci bus 0x0000 cardnum 0x14 function 0x03: vendor 0x1002 device 0x4377
 ATI Technologies Inc IXP SB400 PCI-ISA Bridge

pci bus 0x0000 cardnum 0x14 function 0x04: vendor 0x1002 device 0x4371
 ATI Technologies Inc IXP SB400 PCI-PCI Bridge

pci bus 0x0000 cardnum 0x14 function 0x05: vendor 0x1002 device 0x4370
 ATI Technologies Inc IXP SB400 AC'97 Audio Controller

pci bus 0x0000 cardnum 0x14 function 0x06: vendor 0x1002 device 0x4378
 ATI Technologies Inc ATI SB400 - AC'97 Modem Controller

pci bus 0x0000 cardnum 0x18 function 0x00: vendor 0x1022 device 0x1100
 Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] HyperTransport Technology
Configuration

pci bus 0x0000 cardnum 0x18 function 0x01: vendor 0x1022 device 0x1101
 Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Address Map

pci bus 0x0000 cardnum 0x18 function 0x02: vendor 0x1022 device 0x1102
 Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] DRAM Controller

pci bus 0x0000 cardnum 0x18 function 0x03: vendor 0x1022 device 0x1103
 Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Miscellaneous Control

pci bus 0x0001 cardnum 0x00 function 0x00: vendor 0x1002 device 0x3150
 ATI Technologies Inc M24 1P [Radeon Mobility X600]

pci bus 0x0002 cardnum 0x00 function 0x00: vendor 0x11ab device 0x4351
 Marvell Technology Group Ltd. 88E8036 PCI-E Fast Ethernet Controller

pci bus 0x0003 cardnum 0x05 function 0x00: vendor 0x1524 device 0x1410
 ENE Technology Inc CB1410 Cardbus Controller

pci bus 0x0003 cardnum 0x07 function 0x00: vendor 0x14e4 device 0x4318
 Broadcom Corporation BCM4318 [AirForce One 54g] 802.11g Wireless LAN Controller

pci bus 0x0003 cardnum 0x0e function 0x00: vendor 0x1106 device 0x3044
 VIA Technologies, Inc. IEEE 1394 Host Controller

pci bus 0x0004 cardnum 0x00 function 0x00: vendor 0x168c device 0x0013
 Atheros Communications, Inc. AR5212 802.11abg NIC

pci bus 0x0004 cardnum 0x00 function 0x01: vendor 0x168c device 0xff96
 Atheros Communications, Inc.  Device unknown

Xorg config:
Section "ServerLayout"
        Identifier     "X.org Configured"
        Screen      0  "aticonfig-Screen[0]" 0 0
        InputDevice    "Mouse0" "CorePointer"
        InputDevice    "Keyboard0" "CoreKeyboard"
        Option  "StandbyTime" "10"
EndSection
Section "dri"
        #Group "video"
        Mode 0666
EndSection
Section "Files"
        RgbPath      "/usr/share/X11/rgb"
        ModulePath   "/usr/lib64/xorg/modules"
        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  "extmod"
        Load  "dbe"
        Load  "record"
        Load  "xtrap"
        Load  "dri"
        Load  "glx"
        Load  "freetype"
        Load  "type1"
EndSection

Section "InputDevice"
        Identifier  "Keyboard0"
        Driver      "kbd"
EndSection

Section "InputDevice"
        Identifier  "Mouse0"
        Driver      "synaptics"
        #Option     "Protocol" "synaptics"
        Option      "Device" "/dev/input/mouse0"
        Option      "ZAxisMapping" "Y"
        #Option     "UseSHM" "true"
        Option      "ShmConfig" "true"
EndSection

Section "Monitor"
        # mm
        Identifier   "Monitor0"
        VendorName   "SEC"
        ModelName    "3445"
        DisplaySize  330        210
EndSection

Section "Monitor"
        Identifier   "aticonfig-Monitor[0]"
        Option      "VendorName" "ATI Proprietary Driver"
        Option      "ModelName" "Generic Autodetecting Monitor"
        Option      "DPMS" "true"
        DisplaySize     330 210
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     "Dac6Bit"                   # [<bool>]
        #Option     "Dac8Bit"                   # [<bool>]
        #Option     "BusType"                   # [<str>]
        #Option     "CPPIOMode"                 # [<bool>]
        #Option     "CPusecTimeout"             # <i>
        #Option     "AGPMode"                   # <i>
        Option     "RenderAccel" "1"            # [<bool>]
        #Option     "AGPSize"                   # <i>
        #Option     "GARTSize"                  # <i>
        #Option     "RingSize"                  # <i>
        #Option     "BufferSize"                # <i>
        #Option     "EnableDepthMoves" "1"      # [<bool>]
        #Option     "EnablePageFlip"    "1"     # [<bool>]
        #Option     "NoBackBuffer"              # [<bool>]
        Option     "DMAForXv" "1"               # [<bool>]
        #Option     "FBTexPercent"              # <i>
        #Option     "PanelOff"                  # [<bool>]
        #Option     "DDCMode"                   # [<bool>]
        #Option     "MonitorLayout"             # [<str>]
        #Option     "IgnoreEDID"                # [<bool>]
        #Option     "UseFBDev"                  # [<bool>]
        #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"               # [<bool>]
        #Option     "SubPixelOrder"             # [<str>]
        #Option     "ShowCache"                 # [<bool>]
        #Option     "DynamicClocks"             # [<bool>]
        #Option     "BIOSHotkeys"               # [<bool>]
        #Option     "VGAAccess"                 # [<bool>]
        #Option     "ReverseDDC"                # [<bool>]
        #Option     "LVDSProbePLL"              # [<bool>]
        #Option     "AccelMethod"               # <str>
        Identifier  "Card0"
        Driver      "ati"
        VendorName  "ATI Technologies Inc"
        BoardName   "M24 1P [Radeon Mobility X600]"
        BusID       "PCI:1:0:0"
EndSection

Section "Device"
        Identifier  "aticonfig-Device[0]"
        Driver      "fglrx"
        Option  "PseudoColorVisuals" "off"
        Option  "VideoOverlay" "on"
        Option  "OpenGLOverlay" "off"
        Option  "RenderAccel" "1"
        Option  "DynamicClocks" "on"
        Option  "Capabilities" "0x00000000"
        Option  "mtrr" "off"
        Option  "UseFastTLS" "1"
        Option  "FSAAEnable" "yes"
        Option  "FSAAScale" "4"

EndSection

Section "Screen"
        Identifier "Screen0"
        Device     "Card0"
        Monitor    "Monitor0"
        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

Section "Screen"
        Identifier "aticonfig-Screen[0]"
        Device     "Card0"
        Monitor    "aticonfig-Monitor[0]"
        DefaultDepth     24
        SubSection "Display"
                Viewport   0 0
                Depth     24
        EndSubSection
EndSection

Please Advise!
Comment 1 Aapo Tahkola 2006-07-29 01:02:54 UTC
Updating DRM should fix this.
Comment 2 Dave Airlie 2006-09-16 22:14:04 UTC
actually you need a Mesa update I think, whichever this should be fixed.

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.