DRI/DRM Radeon problems, even with kernel drm, radeondrm: blue blobs
Chris Shenton
chris at shenton.org
Mon Aug 14 16:39:15 UTC 2006
I've been fighting X11 on my Dell with its Radeon RV370 5B60 [Radeon
X300 (PCIE)] for a while now. Today I realized (I think) that I have
to add DRM support into the kernel, so I did:
device drm # DRM core module required by DRM drivers
device radeondrm # ATI Radeon
But it's no better. If I use:
option "NoAccel"
it's painfully slow. If I comment it out, I get blue blobs in my
windows making it impossible to work.
While booting, it reports this, which looks good:
drm0: <ATI Radeon RV370 X300 SE> port 0xdc00-0xdcff mem 0xfc000000-0xfdffffff,0xfe9e0000-0xfe9effff irq 16 at device 0.0 on pci1
info: [drm] Initialized radeon 1.24.0 20060225
Running dmesg after starting up X11 (or maybe it's running a browser)
I notice this error:
error: [drm:pid800:radeon_do_init_cp] *ERROR* Cannot initialise DRM on this card
This card requires a new X.org DDX for 3D
A ha! So how do I find a new DDX for 3D? Or is there something else
I'm doing wrong?
here are some bits from the Xorg.0.log which might help, lines about
DRM/DRI, then lines that indicate Warnings:
X Window System Version 6.9.0
Release Date: 21 December 2005
X Protocol Version 11, Revision 0, Release 6.9
Build Operating System: FreeBSD 6.1 i386 [ELF]
Current Operating System: FreeBSD Bacalao.shenton.org 6.1-STABLE FreeBSD 6.1-STABLE #9: Mon Aug 14 11:54:58 EDT 2006 root at PECTOPAH.shenton.org:/usr/obj/usr/src/sys/SHENTON i386
[...]
(II) LoadModule: "dri"
(II) Loading /usr/X11R6/lib/modules/extensions/libdri.so
(II) Module dri: vendor="X.Org Foundation"
compiled for 6.9.0, module version = 1.0.0
ABI class: X.Org Server Extension, version 0.2
(II) Loading sub module "drm"
(II) LoadModule: "drm"
(II) Loading /usr/X11R6/lib/modules/freebsd/libdrm.so
(II) Module drm: vendor="X.Org Foundation"
compiled for 6.9.0, module version = 1.0.0
ABI class: X.Org Server Extension, version 0.2
[...]
(WW) RADEON: No matching Device section for instance (BusID PCI:1:0:1) found
(--) Chipset ATI Radeon X300 (RV370) 5B60 (PCIE) found
[...]
(WW) RADEON(0): Enabling DRM support
*** Direct rendering support is highly experimental for Radeon 9500
*** and newer cards. The 3d mesa driver is not provided in this tree.
*** A very experimental (and incomplete) version is available from Mesa CVS.
*** Additional information can be found on http://r300.sourceforge.net
*** This message has been last modified on 2005-08-07.
[...]
(WW) RADEON(0): Direct rendering disabled
Below is my xorg.conf file for this box. Any hints? Thanks!
# 2006-02-20 DRI hangs Xorg 6.9.0. Without it, blue patches.
# 2006-03-09 Xorg 6.8.99.903 has blue patches without DR, hangs with it.
# 2006-04-25 DRI off and NoAccel=True but it's SLOW to update;
# Enabling Accel brings back blue blotches. :-(
# Disabling Accel but enabling DRI works but is slow.
# 2006-05-24 DRI is alleged to be fixed, so disable NoAccel; blue blobs, hangs.
# 2006-08-14 Try Accel again, scrolling is sooo slow. OK, then reboots sys.
# Start over with xorgcfg params, which offers drivers:
# vesa,ati,vmware; pick ati. EE, not found.
# Commenting out dri gives blue blobs.
# Seen in dmesg, some hint???
#drm0: <ATI Radeon RV370 X300 SE> port 0xdc00-0xdcff mem 0xfc000000-0xfdffffff,0xfe9e0000-0xfe9effff irq 16 at device 0.0 on pci1
#info: [drm] Initialized radeon 1.24.0 20060225
#error: [drm:pid761:radeon_do_init_cp] *ERROR* Cannot initialise DRM on this card
#This card requires a new X.org DDX for 3D
# Add to kernel device drm,radeondrm,r128drm,mach4drm
# http://people.freebsd.org/~anholt/dri/install.html
# says to add Load "dri" and Load "glx", and the Section "DRI"
###############################################################################
Section "ServerLayout"
Identifier "X.org Configured"
Screen 0 "Screen0" 0 0
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
EndSection
Section "Files"
RgbPath "/usr/X11R6/lib/X11/rgb"
ModulePath "/usr/X11R6/lib/modules"
FontPath "/usr/X11R6/lib/X11/fonts/misc/"
FontPath "/usr/X11R6/lib/X11/fonts/TTF/"
FontPath "/usr/X11R6/lib/X11/fonts/Type1/"
FontPath "/usr/X11R6/lib/X11/fonts/CID/"
FontPath "/usr/X11R6/lib/X11/fonts/75dpi/"
FontPath "/usr/X11R6/lib/X11/fonts/100dpi/"
EndSection
Section "Module"
Load "extmod"
Load "glx"
Load "dri" # 2006-08-14 try disabling with radeon; blue blobs
Load "dbe"
Load "record"
Load "xtrap"
Load "type1"
Load "freetype"
EndSection
Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
EndSection
Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/sysmouse"
Option "ZAxisMapping" "4 5 6 7"
EndSection
Section "Monitor"
Identifier "Monitor0"
VendorName "Monitor Vendor"
ModelName "Monitor Model"
# Comment all HorizSync and VertSync values to use DDC:
#Specs: Hmax=81Khz, Vmax=76Hz
#HorizSync 31.5 - 128.5
#VertRefresh 50.0 - 70.0
Option "DPMS"
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 "ShadowFB" # [<bool>]
#Option "DefaultRefresh" # [<bool>]
#Option "ModeSetClearScreen" # [<bool>]
Identifier "Card0"
#
Driver "radeon" # 2006-08-14 try with disable drm/dri?
#Driver "vesa" # works ok but only 1280x1024 (?)
#Driver "ati" # fails: (EE) No devices detected.
#
VendorName "ATI Technologies Inc"
BoardName "RV370 5B60 [Radeon X300 (PCIE)]"
BusID "PCI:1:0:0"
#Option "NoAccel" "true" # slow scrolling
EndSection
Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Modes "1920x1200" "1600x1200" "1280x1024"
Depth 24
EndSubSection
EndSection
# 2006-08-14 http://people.freebsd.org/~anholt/dri/install.html
Section "DRI"
Mode 0666
EndSection
More information about the freebsd-x11
mailing list