View previous topic :: View next topic |
Author |
Message |
Wedge_ Advocate
Joined: 08 Aug 2002 Posts: 3614 Location: Scotland
|
Posted: Thu Jul 10, 2003 11:17 am Post subject: |
|
|
Has anyone managed to get a Radeon 9800 working with the latest drivers? I noticed the Xfree86 CVS changelog had this entry the other day: Code: | 267. Add support for new Radeon chips: R350(9800), RV350(9600,M10),
RS250(IGP7000), RS300(IGP9000), RV280(9200) (Hui Yu@ATI). |
According to the updated manpage for the radeon driver, the 9800 support is 2D only, but I'd like to try it anyway, but even with the latest code checked out from CVS, it just complains that it can't find any devices, and the list of supported devices in the logfile only goes up to the 9700s. The code in the 2.5.74 kernel seems to be exactly the same as the code from CVS. _________________ Per Ardua Ad Astra
The Earth is the cradle of the mind, but we cannot live forever in a cradle - Konstantin E. Tsiolkovsky
Gentoo Radeon FAQ |
|
Back to top |
|
|
bob65 n00b
Joined: 31 Jul 2003 Posts: 12
|
Posted: Fri Aug 01, 2003 11:49 pm Post subject: |
|
|
OK, I followed all the instructions on the how-to, and like a poster above, glxinfo still says DirectRendering: no. I also have a Rage128.
Here are what I think are the most relevant parts of my /var/log/XFree86.0.log:
Code: | drmOpenDevice: minor is 0
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is -1, (No such device)
drmOpenDevice: open result is -1, (No such device)
drmOpenDevice: Open failed
drmOpenDevice: minor is 0
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is -1, (No such device)
drmOpenDevice: open result is -1, (No such device)
drmOpenDevice: Open failed
[drm] failed to load kernel module "r128"
(II) R128(0): [drm] drmOpen failed
(EE) R128(0): [dri] DRIScreenInit failed. Disabling DRI.
|
There indeed isn't anything in /dev/dri/ . Should there be? Also, insmod r128 shows this:
Code: | Using /lib/modules/2.4.20-gentoo-r5/kernel/drivers/char/drm/r128.o
/lib/modules/2.4.20-gentoo-r5/kernel/drivers/char/drm/r128.o: unresolved symbol cmpxchg
|
Is that unresolved symbol a problem? How do I fix it? I've already tried emerging xfree-drm multiple times (and yes I did use VIDEO_CARDS="rage128")
Help? |
|
Back to top |
|
|
dberkholz Retired Dev
Joined: 18 Mar 2003 Posts: 1008 Location: Minneapolis, MN, USA
|
Posted: Sat Aug 02, 2003 1:04 am Post subject: |
|
|
bob65 wrote: | There indeed isn't anything in /dev/dri/ . Should there be? Also, insmod r128 shows this:
Code: | Using /lib/modules/2.4.20-gentoo-r5/kernel/drivers/char/drm/r128.o
/lib/modules/2.4.20-gentoo-r5/kernel/drivers/char/drm/r128.o: unresolved symbol cmpxchg
|
Is that unresolved symbol a problem? How do I fix it? I've already tried emerging xfree-drm multiple times (and yes I did use VIDEO_CARDS="rage128") |
The unresolved symbol is THE problem at the root of all others. Could you try the latest pfeifer-sources (2.4.21.1_pre4 now) and see if you get the same symbol problem? Make sure you're using xfree-drm-4.3.0-r6 too. |
|
Back to top |
|
|
bob65 n00b
Joined: 31 Jul 2003 Posts: 12
|
Posted: Sat Aug 02, 2003 2:44 am Post subject: |
|
|
Quote: |
The unresolved symbol is THE problem at the root of all others. Could you try the latest pfeifer-sources (2.4.21.1_pre4 now) and see if you get the same symbol problem? Make sure you're using xfree-drm-4.3.0-r6 too. |
OK, I am now using pfeifer-sources 2.4.21.1_pre4. I am also using (as before) xfree-drm-4.3.0-r6 (I re-emerged it too after compiling the kernel). That seems to have fixed the unresolved symbol problem, and my XFree86.0.log now shows:
Code: | drmOpenDevice: minor is 0
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is -1, (No such device)
drmOpenDevice: open result is -1, (No such device)
drmOpenDevice: Open failed
drmOpenDevice: minor is 0
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is -1, (No such device)
drmOpenDevice: open result is -1, (No such device)
drmOpenDevice: Open failed
[drm] failed to load kernel module "agpgart"
drmOpenDevice: minor is 0
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 6, (OK)
drmGetBusid returned ''
... (some stuff deleted)
(II) R128(0): [drm] installed DRM signal handler
(II) R128(0): [DRI] installation complete
(II) R128(0): [drm] Added 128 16384 byte vertex/indirect buffers
(II) R128(0): [drm] Mapped 128 vertex/indirect buffers
(II) R128(0): [drm] dma control initialized, using IRQ 11
(II) R128(0): Direct rendering enabled
(II) R128(0): [drm] dma control initialized, using IRQ 11
(II) R128(0): Direct rendering enabled
|
which I'm assuming is OK, (I compiled agpgart into the kernel). But, I still get DirectRendering: no from glxinfo, and of course glxgears shows a slow framerate (135fps). Any ideas what else could be wrong? |
|
Back to top |
|
|
dberkholz Retired Dev
Joined: 18 Mar 2003 Posts: 1008 Location: Minneapolis, MN, USA
|
Posted: Sat Aug 02, 2003 3:04 am Post subject: |
|
|
Right after you start X, do this:
Code: | # grep -e EE -e WW /var/log/XFree86.0.log
# dmesg | tail -n 15 |
Post both. |
|
Back to top |
|
|
bob65 n00b
Joined: 31 Jul 2003 Posts: 12
|
Posted: Sat Aug 02, 2003 5:29 am Post subject: |
|
|
spyderous wrote: | Right after you start X, do this:
Code: | # grep -e EE -e WW /var/log/XFree86.0.log
# dmesg | tail -n 15 |
Post both. |
From grep -e EE -e WW /var/log/XFree86.0.log:
Code: | (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(WW) The directory "/usr/X11R6/lib/X11/fonts/TrueType/" does not exist.
(WW) Open APM failed (/dev/apm_bios) (No such file or directory)
(II) Loading extension MIT-SCREEN-SAVER
(WW) R128(0): Can't determine panel dimensions, and none specified. Disabling programming of FP registers.
(WW) R128(0): config file vrefresh range 50-70Hz not within DDC vrefresh range 55-85Hz
(WW) R128(0): Option "AGPFastWrite" is not used
|
From dmesg | tail -n 15:
Code: |
IP Protocols: ICMP, UDP, TCP, IGMP
IP: routing cache hash table of 2048 buckets, 16Kbytes
TCP: Hash tables configured (established 16384 bind 16384)
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
ds: no socket drivers loaded!
reiserfs: checking transaction log (device 03:08) ...
Using r5 hash to sort names
ReiserFS version 3.6.25
VFS: Mounted root (reiserfs filesystem) readonly.
Mounted devfs on /dev
Freeing unused kernel memory: 140k freed
Adding Swap: 506008k swap-space (priority -1)
eth0: Setting half-duplex based on auto-negotiated partner ability 0000.
[drm] AGP 0.99 aperture @ 0xd0000000 64MB
[drm] Initialized r128 2.4.0 20030526 on minor 0
|
There doesn't seem to be anything out of the ordinary? |
|
Back to top |
|
|
dberkholz Retired Dev
Joined: 18 Mar 2003 Posts: 1008 Location: Minneapolis, MN, USA
|
Posted: Sat Aug 02, 2003 5:40 am Post subject: |
|
|
No, they look quite ordinary. Could you post your XF86Config and full XFree86.0.log on a website somewhere and put links here? |
|
Back to top |
|
|
bob65 n00b
Joined: 31 Jul 2003 Posts: 12
|
Posted: Sat Aug 02, 2003 6:06 am Post subject: |
|
|
Ok, here is my XF86Config and my XFree86.0.log.
Thanks for the help, btw. Being a n00b I'm kind of lost when things don't work |
|
Back to top |
|
|
dberkholz Retired Dev
Joined: 18 Mar 2003 Posts: 1008 Location: Minneapolis, MN, USA
|
Posted: Sun Aug 03, 2003 9:16 am Post subject: |
|
|
The log looks quite normal. A couple of ideas:
1) Comment out your VideoRam. X can figure this out.
2) Change DefaultDepth to 16. Some drivers won't do direct rendering for 24-bit. |
|
Back to top |
|
|
I_Hate_Analog n00b
Joined: 07 Aug 2003 Posts: 1
|
Posted: Thu Aug 07, 2003 9:06 pm Post subject: |
|
|
Heya, I've been trying to get DRI to work on my Dell Latitude CPx J650 for... weeks now. And I havne't been able to do it.
glxinfo | garp render turn up with:
Xlib: extension "XFree86-DRI" missing on display":0.0"
I've followed this DRI guide to the letter but I haven't been able to get it to work. I've gone to the DRI site, gone through these forums... Nothing.
When I run lspci | garp AGP it returns that I have this VGA compatible controller:
ATI Technologies INC Rage Mobility P/M AGP 2x (rev 64)
Is there support for this card? Please help! Me want play Tuxracer. |
|
Back to top |
|
|
heinchen n00b
Joined: 25 Aug 2003 Posts: 4
|
Posted: Mon Aug 25, 2003 6:21 pm Post subject: sis drm not available under xfree4.3 |
|
|
Hello gentoo-users and devs.
I tried to get dri/drm working using the howto. /var/log/XFree86.0.log said dri enabled while glxinfo said no dri
After spending some time I found out why it didn't work, despite I had the sisuseflag set, /usr/X11R6/lib/modules/dri/sis_dri.o was missing
(somewhere at www.winischofer.net is a comment about sis_dri.o missing in Xfree4.3).
Nevertheless, I got that file from http://www.winischhofer.net/linuxsisvga.shtml#download (this version is for debians xfree4.3). I got dri working, unfortunately the output doesn`t look fine and tuxraxer hangs when you press a key. (I am just guessing - but I assume that this is because of the wrong version of sis_dri.o )
1. I think a note, that drm for sis isn't working, would be nice in the howto.
2. Does anybody know where I can get a working sis_dri.o or can give me hints to get dri/drm working properly???
cheers
-----------
Update:
I have taken a quick look into /usr/portage/profiles/use.desc. It says that the useflag sis doesn't exist.
But when doing an etcat -u xfree-drm it says
...
+ + sis : unknown
...
Now I am confused Is there a "sis"-useflag??? |
|
Back to top |
|
|
dez n00b
Joined: 13 Aug 2003 Posts: 5
|
Posted: Tue Aug 26, 2003 3:45 am Post subject: Re: sis drm not available under xfree4.3 |
|
|
heinchen wrote: |
After spending some time I found out why it didn't work, despite I had the sisuseflag set, /usr/X11R6/lib/modules/dri/sis_dri.o was missing |
I too just spent a few hours trying to figure out why dri wasn't working for my sis 630. I found a nice part (as opposed to the not so nice parts) of the xfree site that went through dri setup step by step. http://www.xfree86.org/current/DRI9.html point 4.... where is the sis_dri.so? I found http://www.winischhofer.net/ as well where it's mentioned that sis_dri is not in xfree 4.3, and a bunch of downloadable stuff, none of which seems appropriate. WTF?
Anyway, I can't help you, but I'll keep twiddling. Hopefully someone here can help. |
|
Back to top |
|
|
heinchen n00b
Joined: 25 Aug 2003 Posts: 4
|
Posted: Tue Aug 26, 2003 10:32 am Post subject: Re: sis drm not available under xfree4.3 |
|
|
Hello dez,
dez wrote: | ...
I found http://www.winischhofer.net/ as well where it's mentioned that sis_dri is not in xfree 4.3, and a bunch of downloadable stuff, none of which seems appropriate. WTF?
|
Sorry my mistake, I took Debians Sid xlibmesa3-gl.deb and took /usr/X11R6/lib/modules/dri/sis_dri.so out of it. Some 3d stuff is working (e.g. bzflag is playable with minor gfxerrors) while others isn't (e.g. tuxracer hangs / sproingies-screensaver looks terrible).
Cheers |
|
Back to top |
|
|
ank Apprentice
Joined: 06 Aug 2003 Posts: 185 Location: Maribor, Slovenia
|
Posted: Fri Aug 29, 2003 2:58 pm Post subject: |
|
|
I have radeon 8500 LE and Direct Rendering works only if i login as root. I follow the Direct Rendering Guide but rendering works only for root. If i login as normal user
rendering dont work:
bash-2.05b$ glxinfo | grep rendering
libGL error: failed to open DRM: Operation not permitted
libGL error: reverting to (slow) indirect rendering
direct rendering: No
I have another problem and mayby is that why rendering wont work for normal user. I cant do: rc-update add kdm default
bash-2.05b# rc-update add kdm default
* /sbin/rc-update: /etc/init.d/kdm not found; aborting.
so i must first login as root then kdm (becouse only root can run kdm) and then login as normal user in kdm login screen.
Does anybody know how to correct this two things? |
|
Back to top |
|
|
araemo n00b
Joined: 14 Aug 2003 Posts: 47
|
Posted: Fri Aug 29, 2003 10:31 pm Post subject: Mobility radeon 9200 |
|
|
I also have the cmpxchg unresolved symbol.. I'm using the latest ac-sources(2.4.22-rc2-ac3), and I had drm working the first time I compiled this kernel, but I have since recompiled it several times for acpi support and a couple other things. I have since re-emerged xfree and xfree-drm, and now when I try to insmod radeon, i get:
Quote: | Using /lib/modules/2.4.22-rc2-ac3/kernel/drivers/char/drm/radeon.o
/lib/modules/2.4.22-rc2-ac3/kernel/drivers/char/drm/radeon.o: unresolved symbol cmpxchg
|
and the debugging info you asked for way up there:
Quote: | araemo@ouroboros araemo $ grep -e EE -e ww /var/log/XFree86.0.log
Before reporting problems, check http://www.XFree86.Org/
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(II) Loading extension MIT-SCREEN-SAVER
(EE) RADEON(0): [dri] DRIScreenInit failed. Disabling DRI.
araemo@ouroboros araemo $ glxinfo | grep rendering
direct rendering: No
araemo@ouroboros araemo $ dmesg | grep -i agp
Linux agpgart interface v0.99 (c) Jeff Hartmann
agpgart: Maximum main memory to use for agp memory: 690M
agpgart: Detected Intel(R) 855PM chipset
agpgart: AGP aperture is 256M @ 0xb0000000
|
/dev/dri has nothing in it, but the directory exists.
I'm wondering if I disabled something in the kernel that is needed? I don't want to switch to the vanilla sources and lose my acpi support(I'm on a new laptop) |
|
Back to top |
|
|
heinchen n00b
Joined: 25 Aug 2003 Posts: 4
|
Posted: Sat Aug 30, 2003 9:50 am Post subject: |
|
|
ank wrote: |
I have another problem and mayby is that why rendering wont work for normal user. I cant do: rc-update add kdm default
bash-2.05b# rc-update add kdm default
* /sbin/rc-update: /etc/init.d/kdm not found; aborting.
so i must first login as root then kdm (becouse only root can run kdm) and then login as normal user in kdm login screen.
Does anybody know how to correct this two things? |
I am pretty sure that this problem has nothing to do with your dri-problem.
You have to do
Code: | rc-update add xdm default |
Edit /etc/rc.conf find the line that begins with
DISPLAYMANAGER=
and change it into
DISPLAYMANAGER=kdm
Cheers |
|
Back to top |
|
|
ank Apprentice
Joined: 06 Aug 2003 Posts: 185 Location: Maribor, Slovenia
|
Posted: Sat Aug 30, 2003 12:09 pm Post subject: |
|
|
heinchen TNX
Login now works but rendering still works only for root.And if i su to root rendering dont works
bash-2.05b$ su root
Password:
bash-2.05b# glxgears
bash: glxgears: command not found
bash-2.05b# glxinfo | grep rendering
bash: glxinfo: command not found
bash-2.05b#
I really like to fix this becouse when i am login as normal user i only have 180 FPS and when i am login as root i have 1257.6 FPS |
|
Back to top |
|
|
heinchen n00b
Joined: 25 Aug 2003 Posts: 4
|
Posted: Sat Aug 30, 2003 1:03 pm Post subject: |
|
|
ank wrote: | heinchen TNX
Login now works but rendering still works only for root.And if i su to root rendering dont works
bash-2.05b$ su root
Password:
bash-2.05b# glxgears
bash: glxgears: command not found
bash-2.05b# glxinfo | grep rendering
bash: glxinfo: command not found
bash-2.05b#
I really like to fix this becouse when i am login as normal user i only have 180 FPS and when i am login as root i have 1257.6 FPS |
There is an environmentvariable, that contains all directories, in which programms are. This is called $PATH.
To find out where a programm is, type which glxgears.
You will see, that glxgears resides in /usr/X11R6/bin. And this isn't in $PATH of root. root can launch this programs with
/usr/X11R6/bin/glxgears.
glxinfo also resides in that directory.
BTW, gentoo sets the $PATH variable in the file /etc/profile. This is executed everytime when you log in.
Cheers |
|
Back to top |
|
|
ank Apprentice
Joined: 06 Aug 2003 Posts: 185 Location: Maribor, Slovenia
|
Posted: Sat Aug 30, 2003 4:53 pm Post subject: |
|
|
I find out what was wrong. I didnt have this one:
Section "DRI"
Mode 0666
EndSection
Now all works:
bash-2.05b$ glxinfo | grep rendering
direct rendering: Yes
bash-2.05b$ glxgears
5213 frames in 5.0 seconds = 1042.600 FPS
6392 frames in 5.0 seconds = 1278.400 FPS
6392 frames in 5.0 seconds = 1278.400 FPS
6392 frames in 5.0 seconds = 1278.400 FPS
6392 frames in 5.0 seconds = 1278.400 FPS
6330 frames in 5.0 seconds = 1266.000 FPS
and is time for fine tunning
bash-2.05b$ glxgears
7426 frames in 5.0 seconds = 1485.200 FPS
8412 frames in 5.0 seconds = 1682.400 FPS
8412 frames in 5.0 seconds = 1682.400 FPS
8413 frames in 5.0 seconds = 1682.600 FPS
8412 frames in 5.0 seconds = 1682.400 FPS |
|
Back to top |
|
|
araemo n00b
Joined: 14 Aug 2003 Posts: 47
|
Posted: Sun Aug 31, 2003 1:26 am Post subject: Yay! 1500 fps in glxgears |
|
|
Well, i got stuff working..
I started grepping the kernel source for 'cmpxchg' and discovered it's a configurable option(I think it's auto-set as a sub-option of one of the 'cpu type' options) I twiddled with those cpu family options a bit, checked the .config to see if CONFIG_X86_CMPXCHG was set(Setting it manually did BAD things for me..) it was, so I recompiled, re-emerged xfree-drm, and my mobility 9200 (Is that an m9+?) works. I managed to lock up X so bad i couldn't ctrl-alt-backspace with sierpinsky3d set to max.. but I don't think thats a HUGE problem. :P |
|
Back to top |
|
|
beejay Retired Dev
Joined: 03 Oct 2002 Posts: 924 Location: Flensungen (das liegt neben Merlau)
|
Posted: Tue Sep 02, 2003 9:53 am Post subject: |
|
|
Hey - I got it working here yesterday evening. I already believed, that my ATI Radeon Mobility 7500 didn't had 3D-Support. But then a dip-switch was adjusted in my brain
For all those of you guys out there who can't get DRI working however you followed every guide step by step - try this
Code: | opengl-update xfree |
_________________ Dort wo schwarzer Rauch aufsteigt, sich alsbald ein Fehler zeigt.
www.paludis-sucks.org | www.gentoo.de | www.gentoo-ev.org | www.gentoo.org |
|
Back to top |
|
|
DMM n00b
Joined: 06 Aug 2003 Posts: 50
|
Posted: Wed Sep 03, 2003 3:11 am Post subject: |
|
|
I just got done doing DRM with a rage128.
You have to have AGP as a MODULE. Complie it into the kernel and it will fail to "load" when DRI kicks in. DRI expects it to be a module for some reason.
Also, Im using the gentoo 2.4.20-r6 kernel, with smp, alsa pinned to 0.9.6 (used the "/usr/local/portage" method editing the ~x86 to x86 in the build file).
also eed to re-emerge xfree-drm after you rebuild the kernel.
HTH |
|
Back to top |
|
|
Manny_ n00b
Joined: 01 Oct 2003 Posts: 31 Location: Austria, Europe
|
Posted: Thu Oct 02, 2003 12:18 am Post subject: |
|
|
JorBond wrote: | ...and to fix my libGLU problem i renamed it to get it working. |
What did you rename? I'm getting the same libGLU error. In fact, the glx* files do report relocation errors too. |
|
Back to top |
|
|
marting n00b
Joined: 03 Oct 2003 Posts: 64
|
Posted: Fri Oct 03, 2003 2:43 pm Post subject: |
|
|
to all of you having unresolved symbols 'cmpxchg' (araemo has already posted the solution but I want to precise it):
it seems that the normal "x86"-kernel doesn't provide the cmpxchg-symbol (macro, whatever. i'm not a kernel-expert, so it took me several compilations, but I like genkernel (and x mines ).
instead, specify your cpu (pentium3 coppermine for me).
i needed "#opengl-update xfree" to play quake2.
everything else is done like explained in the howto
i have 175 frames in glxgears (fullscreen 1024x768) on my rage128. how can i tweak it more?
i have "agpmode 4" and "agpfastwrite true"
cheers |
|
Back to top |
|
|
grumpybear n00b
Joined: 10 Oct 2003 Posts: 6
|
Posted: Thu Oct 16, 2003 3:51 am Post subject: |
|
|
I've sorta had it up the the proverbial here trying to configure my Rage Mobility to work with DRI....
I'm going to take a break before trying to trouble shoot somemore... As it stands I GLXINFO consistently returns this value
Code: | name of display: :0.0
Xlib: extension "XFree86-DRI" missing on display ":0.0".
display: :0 screen: 0
direct rendering: No
server glx vendor strin |
and GLXGEARS works seemingly in software mode giving this response....
Code: | Xlib: extension "XFree86-DRI" missing on display ":0.0".
|
Here are links to my current XF86Config and my current X log
My XF86 Config
http://people.brandeis.edu/~davidco/gentoo/XF86Config
My X log
http://people.brandeis.edu/~davidco/gentoo/XFree86.0.log
Does anything here stand out to anyone? Can anyone drop suggestions on where to go next?
Thanks in advance.... |
|
Back to top |
|
|
|