View previous topic :: View next topic |
Author |
Message |
salivian Tux's lil' helper
Joined: 15 Sep 2002 Posts: 91
|
|
Back to top |
|
|
tam Guru
Joined: 04 Mar 2003 Posts: 569
|
Posted: Sat Sep 25, 2004 8:33 pm Post subject: |
|
|
salivian wrote: | hopefully savage dri will be in gentoo xorg for the coming release. |
Cool! |
|
Back to top |
|
|
kpoman Apprentice
Joined: 15 May 2003 Posts: 209 Location: Buenos Aires, Argentina
|
Posted: Mon Sep 27, 2004 12:18 pm Post subject: |
|
|
koprimer wrote: | That seemed to do the trick Algor... Thanks so much.... Please let us know if you hear anything about this current problem and when it'll be fixed! Once I find that they have this problem fixed, then I'll make a new How To for those of us using X.Org.... FYI, I added to your code, for those who don't want to go back to the DRI Wiki
AIgor wrote: | Ok, the problem is the new savage.ko module.
Download the old version of drm:
Code: |
$ cvs -z3 -d:pserver:anonymous@dri.freedesktop.org:/cvs/dri login
$ CVS password:
$ cvs -z3 -d:pserver:anonymous@dri.freedesktop.org:/cvs/dri co -D2004-08-05 drm
|
Compile and install the new-old savage.ko module and the dri will work:
|
Code: |
cd drm/linux
make DRM_MODULES="savage"
cp *.ko /lib/modules/$KERNEL/kernel/drivers/char/drm/
reboot
|
Thanks again! |
i tried out that with kernel 2.6.8.1mm4, and it says:
Code: |
zobiak kpoman # modprobe savage
FATAL: Error inserting savage (/lib/modules/2.6.8.1-mm4/kernel/drivers/char/drm/savage.ko): Invalid module format
zobiak kpoman #
|
then i checked out the latest cvs, and it seems to work only for 2.4 kernels !
do someone has any clue concerning this ? help _________________ please, help me, pity on me :'( |
|
Back to top |
|
|
RoadRunner Bodhisattva
Joined: 12 Jun 2002 Posts: 490 Location: Coimbra, Portugal
|
Posted: Mon Sep 27, 2004 5:41 pm Post subject: |
|
|
It used to work uder 2.6, I had it working with 2.6.5-mm1 and xorg, but when I tried to update the cvs it stopped working.. guess wait is the word. |
|
Back to top |
|
|
kpoman Apprentice
Joined: 15 May 2003 Posts: 209 Location: Buenos Aires, Argentina
|
Posted: Mon Sep 27, 2004 7:49 pm Post subject: |
|
|
ok well my invalid module format error was due to kernel being compiled with gcc 3.3.x and drm with gcc 3.4.x so now i am able to load savage module safely :p
but still not getting the dri working am using xorg 6.8.0r1
hope someone can confirm that it will one day work _________________ please, help me, pity on me :'( |
|
Back to top |
|
|
salivian Tux's lil' helper
Joined: 15 Sep 2002 Posts: 91
|
|
Back to top |
|
|
b0fh Guru
Joined: 16 Jun 2003 Posts: 426
|
Posted: Thu Oct 07, 2004 7:58 am Post subject: |
|
|
salivian: Did you change anything at your xorg.conf after that? |
|
Back to top |
|
|
salivian Tux's lil' helper
Joined: 15 Sep 2002 Posts: 91
|
Posted: Thu Oct 07, 2004 8:19 am Post subject: |
|
|
Nothing really related to GLX / DRI
but I had to change keyboard driver "keyboard" to kbd, after make install.
That's it. Here are my savage/T23 related settings. (running at 16bit 1400x1050, there isn't enough memory for 24bit)
Code: |
Section "Monitor"
Identifier "Generic Laptop Display Panel 1400x1050"
HorizSync 31.5-90
VertRefresh 59-75
DisplaySize 370 277
Option "DPMS" "yes"
EndSection
Section "Device"
Identifier "SuperSavage"
Driver "savage"
Option "AGPMode" "4"
Option "ForceInit" "yes"
EndSection
|
PS. I am using kernel 2.6.8.1 |
|
Back to top |
|
|
b0fh Guru
Joined: 16 Jun 2003 Posts: 426
|
Posted: Thu Oct 07, 2004 10:04 am Post subject: |
|
|
Seems to work for me, too, but I'm not sure:
Code: |
dmesg | grep -i savage
[drm] Initialized savage 1.0.0 20011023 on minor 0: S3 Inc. SuperSavage IX/C SDR |
So the savage.ko module is loaded, but I also get this:
Code: |
glxinfo | grep rendering
direct rendering: No
|
glxgears gives me just ~90fps. Are you sure you didn't read the "...frames in 5 seconds"? |
|
Back to top |
|
|
salivian Tux's lil' helper
Joined: 15 Sep 2002 Posts: 91
|
Posted: Thu Oct 07, 2004 3:02 pm Post subject: |
|
|
These are my working X logs ... make sure you are loading the right driver from CVS (6.8.1.99) and there is sufficient memory. Make sure X can load the module automatically ... ie X requested for DRI resources and your kernel loaded it. And check the dates of your libGL.so* in your lib paths /usr/lib and /usr/X11R6/lib too
Code: |
2251 frames in 5.0 seconds = 450.200 FPS
|
Code: |
(II) LoadModule: "savage"
(II) Loading /usr/X11R6/lib/modules/drivers/savage_drv.o
(II) Module savage: vendor="X.Org Foundation"
compiled for 6.8.1.99, module version = 1.1.27
Module class: X.Org Video Driver
ABI class: X.Org Video Driver, version 0.7
|
Code: |
(II) SAVAGE(0): Sufficient Videoram available for 3D
(II) SAVAGE(0): [drm] bpp: 16 depth: 16
(II) SAVAGE(0): [drm] Sarea 2200+872: 3072
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 7, (OK)
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 7, (OK)
drmOpenByBusid: Searching for BusID pci:0000:01:00.0
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 7, (OK)
|
Last edited by salivian on Fri Oct 08, 2004 11:28 pm; edited 1 time in total |
|
Back to top |
|
|
b0fh Guru
Joined: 16 Jun 2003 Posts: 426
|
Posted: Fri Oct 08, 2004 9:58 am Post subject: |
|
|
Ah, nice:
Code: | 1148 frames in 5.0 seconds = 229.498 FPS |
I had an old libGL.so.1.2 in /usr/lib, so I copied the newer one from /usr/X11R6/lib over.
What I don't understand: We seem to have the same model (2647-4NG is mine), but my max. resolution is 1024x768. Maybe we also have a slightly different savage or why do I get half of your fps?
Code: | S3 Inc. SuperSavage IX/C SDR rev 5 |
|
|
Back to top |
|
|
z_sfeng Apprentice
Joined: 21 Apr 2004 Posts: 154 Location: Finland
|
Posted: Fri Oct 08, 2004 3:49 pm Post subject: |
|
|
Still doesn't work for me on Savage/IX-MV with 8M RAM
DRI and Direct Render is enabled in Xorg.log. But the AGP is working on 1X mode!
Now glxgear gives about 100fps, even worse than without DRI!
Anybody can help? did I miss something?
Code: |
(II) Loading sub module "vgahw"
271 (II) LoadModule: "vgahw"
272 (II) Loading /usr/X11R6/lib/modules/libvgahw.a
273 (II) Module vgahw: vendor="X.Org Foundation"
274 compiled for 6.8.1.99, module version = 0.1.0
275 ABI class: X.Org Video Driver, version 0.7
276 (**) SAVAGE(0): Depth 16, (--) framebuffer bpp 16
277 (==) SAVAGE(0): RGB weight 565
278 (==) SAVAGE(0): Default visual is TrueColor
279 (II) SAVAGE(0): vgaHWGetIOBase: hwp->IOBase is 0x03d0, hwp->PIOOffset is 0x0000
280 (==) SAVAGE(0): Using AGP 1x mode
281 (II) SAVAGE(0): Using 16 MB AGP aperture
282 (==) SAVAGE(0): Using HW cursor
283 (==) SAVAGE(0): Using video BIOS to set modes
|
Code: |
drmOpenDevice: node name is /dev/dri/card0
608 drmOpenDevice: open result is -1, (Unknown error 999)
609 drmOpenDevice: open result is -1, (Unknown error 999)
610 drmOpenDevice: Open failed
611 drmOpenDevice: node name is /dev/dri/card0
612 drmOpenDevice: open result is -1, (Unknown error 999)
613 drmOpenDevice: open result is -1, (Unknown error 999)
614 drmOpenDevice: Open failed
615 drmOpenByBusid: Searching for BusID pci:0000:01:01.0
616 drmOpenDevice: node name is /dev/dri/card0
617 drmOpenDevice: open result is 5, (OK)
618 drmOpenByBusid: drmOpenMinor returns 5
619 drmOpenByBusid: drmGetBusid reports pci:0000:01:01.0
|
and dmesg shows:
Code: |
Linux agpgart interface v0.100 (c) Dave Jones
agpgart: Detected an Intel 440BX Chipset.
agpgart: Maximum main memory to use for agp memory: 203M
agpgart: AGP aperture is 64M @ 0xec000000
savage: Ignoring new-style parameters in presence of obsolete ones
mtrr: 0xf0000000,0x1000000 overlaps existing 0xf0000000,0x800000
mtrr: base(0xf2000000) is not aligned on a size(0x5000000) boundary
[drm] Initialized savage 1.0.0 20011023 on minor 0: S3 Inc. 86C270-294 Savage/IX-MV
ACPI: PCI interrupt 0000:01:01.0[A] -> GSI 11 (level, low) -> IRQ 11
agpgart: Found an AGP 1.0 compliant device at 0000:00:00.0.
agpgart: Putting AGP V2 device at 0000:00:00.0 into 0x mode
agpgart: Putting AGP V2 device at 0000:01:01.0 into 0x mode
|
|
|
Back to top |
|
|
b0fh Guru
Joined: 16 Jun 2003 Posts: 426
|
Posted: Fri Oct 08, 2004 5:28 pm Post subject: |
|
|
Your log says you're running at agp 0x speed... Maybe that's all it can do?
My 830M also just does 1x:
Code: | agpgart: Detected an Intel 830M Chipset.
agpgart: Maximum main memory to use for agp memory: 321M
agpgart: AGP aperture is 256M @ 0xd0000000
agpgart: Found an AGP 2.0 compliant device at 0000:00:00.0.
agpgart: Putting AGP V2 device at 0000:00:00.0 into 1x mode
agpgart: Putting AGP V2 device at 0000:01:00.0 into 1x mode
|
|
|
Back to top |
|
|
MartinB Apprentice
Joined: 12 Feb 2003 Posts: 222 Location: Apeldoorn, Netherlands
|
Posted: Fri Oct 08, 2004 7:28 pm Post subject: |
|
|
Hey,
I've had this working in the past, but for some reason I don't seem to be able to get it working again. I've successfully got to the following command, followed by the error message:
Code: | martin@kumi kernel $ make -f Makefile.linux
Makefile.linux:142: *** Cannot find a kernel config file. Stop. |
I checked around the forums and Google but couldn't find anything about kernel config files in relation to the Savage driver.
Anyone know how what I need to do?
Running 2.6.8-r7 kernel...
Cheers,
Martin _________________ Intel i7 3820 - 16GB Corsair DDR3 - GeForce GTX 660 2GB - SBLive - 13TB - Gentoo - KDE4 |
|
Back to top |
|
|
salivian Tux's lil' helper
Joined: 15 Sep 2002 Posts: 91
|
Posted: Fri Oct 08, 2004 8:57 pm Post subject: |
|
|
Couple quick response...
Mine is a P3 1.2GHz w/SVGA+ (1400x1050) LCD and 16bpp runs faster than 24bpp in general.
Code: |
0000:01:00.0 VGA compatible controller: S3 Inc. SuperSavage IX/C SDR (rev 05)
|
Option "AGPMode" "4" is the option to adjust the AGP speed, 4 = 4x.
Take a look at "Tweak your performance"
http://www.gentoo.org/doc/en/dri-howto.xml
from dmesg
Code: |
agpgart: Found an AGP 2.0 compliant device at 0000:00:00.0.
agpgart: Putting AGP V2 device at 0000:00:00.0 into 4x mode
|
for DRM building. Where did you find your Makefile.linux?!
checkout the drm stuffs according to the DRI site instructions.
cd drm/linux-2.6
make savage.o
will produce the module.
Take a look at the Makefile for other options.
make sure there is a .config in the kernel source.
Last edited by salivian on Fri Oct 08, 2004 11:46 pm; edited 3 times in total |
|
Back to top |
|
|
MartinB Apprentice
Joined: 12 Feb 2003 Posts: 222 Location: Apeldoorn, Netherlands
|
Posted: Fri Oct 08, 2004 10:01 pm Post subject: |
|
|
Well, I solved my previous problem by symlinking /lib/modules/linux-2.6.8-gentoo-7/build to /usr/src/linux-2.6.8-gentoo-7/, but I've ran into another problem.
Specifically, I type "make -f Makefile.linux" and I get the following errors:
Code: | make -C /lib/modules/2.6.8-gentoo-r7/build SUBDIRS=`pwd` DRMSRCDIR=`pwd` modules
make[1]: Entering directory `/usr/src/linux-2.6.8-gentoo-r7'
CC [M] /root/xc/xc/programs/Xserver/hw/xfree86/os-support/linux/drm/kernel/gamma_drv.o
In file included from /root/xc/xc/programs/Xserver/hw/xfree86/os-support/linux/drm/kernel/gamma_drv.c:57:
/root/xc/xc/programs/Xserver/hw/xfree86/os-support/linux/drm/kernel/drm_vm.h:41: warning: initialization from incompatible pointer type
/root/xc/xc/programs/Xserver/hw/xfree86/os-support/linux/drm/kernel/drm_vm.h:48: warning: initialization from incompatible pointer type
/root/xc/xc/programs/Xserver/hw/xfree86/os-support/linux/drm/kernel/drm_vm.h:55: warning: initialization from incompatible pointer type
/root/xc/xc/programs/Xserver/hw/xfree86/os-support/linux/drm/kernel/drm_vm.h:62: warning: initialization from incompatible pointer type
/root/xc/xc/programs/Xserver/hw/xfree86/os-support/linux/drm/kernel/drm_vm.h: In function `gamma_vm_nopage':
/root/xc/xc/programs/Xserver/hw/xfree86/os-support/linux/drm/kernel/drm_vm.h:133: error: structure has no member named `count'
make[2]: *** [/root/xc/xc/programs/Xserver/hw/xfree86/os-support/linux/drm/kernel/gamma_drv.o] Error 1
make[1]: *** [_module_/root/xc/xc/programs/Xserver/hw/xfree86/os-support/linux/drm/kernel] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.8-gentoo-r7'
make: *** [modules] Error 2 |
Anyone know where I'm going wrong here? I'm running the 2.6.8-r7 kernel. _________________ Intel i7 3820 - 16GB Corsair DDR3 - GeForce GTX 660 2GB - SBLive - 13TB - Gentoo - KDE4 |
|
Back to top |
|
|
salivian Tux's lil' helper
Joined: 15 Sep 2002 Posts: 91
|
|
Back to top |
|
|
MartinB Apprentice
Joined: 12 Feb 2003 Posts: 222 Location: Apeldoorn, Netherlands
|
Posted: Sat Oct 09, 2004 4:20 pm Post subject: |
|
|
Thanks,
I went through that, but I'm still running into a problem.
Everything seemed to go fine, but when I startx and run glxinfo, I still get a glaring "no" for "Direct rendering:".
The only clue I'm getting (at least, as far as I can see) is on starting X, I get a line saying:
Code: | (WW) SAVAGE(0): Failed to set up write-combining range (0xd0000000,0x2000000 |
But the rest of the log does not indicate any problem, and indeed even appears to indicate that DRI has been enabled successfully (I don't want to post the whole thing as it's rather lengthy).
Anyone have any idea where I'm going wrong with this? _________________ Intel i7 3820 - 16GB Corsair DDR3 - GeForce GTX 660 2GB - SBLive - 13TB - Gentoo - KDE4 |
|
Back to top |
|
|
salivian Tux's lil' helper
Joined: 15 Sep 2002 Posts: 91
|
Posted: Sat Oct 09, 2004 7:58 pm Post subject: |
|
|
Like b0th ... make sure your glxinfo and stuffs are using the right libGL.so.
by ldd glxinfo etc
check the dates of those files. make sure they are the new ones |
|
Back to top |
|
|
MartinB Apprentice
Joined: 12 Feb 2003 Posts: 222 Location: Apeldoorn, Netherlands
|
Posted: Sat Oct 09, 2004 9:12 pm Post subject: |
|
|
Nope... that doesn't work...:
cp: `/usr/X11R6/lib/libGL.so' and `/usr/lib/libGL.so' are the same file _________________ Intel i7 3820 - 16GB Corsair DDR3 - GeForce GTX 660 2GB - SBLive - 13TB - Gentoo - KDE4 |
|
Back to top |
|
|
b0fh Guru
Joined: 16 Jun 2003 Posts: 426
|
Posted: Sat Oct 09, 2004 9:40 pm Post subject: |
|
|
Quote: | Option "AGPMode" "4" is the option to adjust the AGP speed, 4 = 4x. |
Put mine to 4x, but still just get 230fps... But it's ok, at least it works I don't have any apps using opengl anyways... Just qt and some kde-packets have it in USE... |
|
Back to top |
|
|
sabrex n00b
Joined: 28 Nov 2003 Posts: 45
|
Posted: Sun Oct 10, 2004 7:25 am Post subject: need help with dri |
|
|
I followed the instructions at http://linux-sxs.org/guis/DRIS3.html today and it's not working out. I have a prosavage ddr chipset, and my kernel is 2.6.8-r7. Also, I have Xfree86 4.3.0-r7
When I run "make -f Makefile.linux" from the above instructions, this is what happens:
Code: | root@baal kernel # make -f Makefile.linux
make -C /lib/modules/2.6.8-gentoo-r7/build SUBDIRS=`pwd` DRMSRCDIR=`pwd` modules
make[1]: Entering directory `/usr/src/linux-2.6.8-gentoo-r7'
CC [M] /home/sabrex/downloads/xc-3/xc/programs/Xserver/hw/xfree86/os-support/linux/drm/kernel/gamma_drv.o
In file included from /home/sabrex/downloads/xc-3/xc/programs/Xserver/hw/xfree86/os-support/linux/drm/kernel/gamma_drv.c:57:
/home/sabrex/downloads/xc-3/xc/programs/Xserver/hw/xfree86/os-support/linux/drm/kernel/drm_vm.h:41: warning: initialization from incompatible pointer type
/home/sabrex/downloads/xc-3/xc/programs/Xserver/hw/xfree86/os-support/linux/drm/kernel/drm_vm.h:48: warning: initialization from incompatible pointer type
/home/sabrex/downloads/xc-3/xc/programs/Xserver/hw/xfree86/os-support/linux/drm/kernel/drm_vm.h:55: warning: initialization from incompatible pointer type
/home/sabrex/downloads/xc-3/xc/programs/Xserver/hw/xfree86/os-support/linux/drm/kernel/drm_vm.h:62: warning: initialization from incompatible pointer type
/home/sabrex/downloads/xc-3/xc/programs/Xserver/hw/xfree86/os-support/linux/drm/kernel/drm_vm.h: In function `gamma_vm_nopage':
/home/sabrex/downloads/xc-3/xc/programs/Xserver/hw/xfree86/os-support/linux/drm/kernel/drm_vm.h:133: error: structure has no member named `count'
make[2]: *** [/home/sabrex/downloads/xc-3/xc/programs/Xserver/hw/xfree86/os-support/linux/drm/kernel/gamma_drv.o] Error 1
make[1]: *** [_module_/home/sabrex/downloads/xc-3/xc/programs/Xserver/hw/xfree86/os-support/linux/drm/kernel] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.8-gentoo-r7'
make: *** [modules] Error 2
|
Can anybody please help me out? I'm sort of desperate to get opengl working with this video card ... school assignment, etc. Should I switch to x.org? what is the quickest way to get opengl/glx working from where I am right now? If you need me to post anything, such as XF86Config files, etc, please let me know. incidentally, this is what the glxinfo command gives now:
Code: | sabrex@baal sabrex $ glxinfo
name of display: :0.0
Xlib: extension "GLX" missing on display ":0.0".
Xlib: extension "GLX" missing on display ":0.0".
Xlib: extension "GLX" missing on display ":0.0".
Error: couldn't find RGB GLX visual
visual x bf lv rg d st colorbuffer ax dp st accumbuffer ms cav
id dep cl sp sz l ci b ro r g b a bf th cl r g b a ns b eat
----------------------------------------------------------------------
Xlib: extension "GLX" missing on display ":0.0".
Xlib: extension "GLX" missing on display ":0.0".
0x21 16 tc 1 0 0 c . . 0 0 0 0 0 0 0 0 0 0 0 0 0 None |
Any ideas? Thanks. |
|
Back to top |
|
|
MartinB Apprentice
Joined: 12 Feb 2003 Posts: 222 Location: Apeldoorn, Netherlands
|
Posted: Sun Oct 10, 2004 9:41 am Post subject: |
|
|
I had the same problem. Try following the link that Salivian posted above. You'll probably make more progress.
But still, in the end, don't expect it to work. It still won't work for me and no one seems to know why. I'm considering doing a complete re-install of Gentoo from scratch, 'cause this is really starting to annoy me.
By the way, is the Savage driver eventually going to make it into Portage so all we need to do is "emerge xorg" and Savage DRI will work without all this hassle? If so, anyone know how long? If it's a short time, I might put off re-installing until then.
EDIT: I've switched to the 2.4 kernel and the "make -f Makefile" works without error. I can only hope that 3D will be working now when I restart X.
EDIT 2: IT WORKS!!!!! Try the 2.4 kernel if all else fails and you don't require 2.6. I had no problems at all getting it working on it. _________________ Intel i7 3820 - 16GB Corsair DDR3 - GeForce GTX 660 2GB - SBLive - 13TB - Gentoo - KDE4 |
|
Back to top |
|
|
sabrex n00b
Joined: 28 Nov 2003 Posts: 45
|
Posted: Sun Oct 10, 2004 10:00 pm Post subject: got it working |
|
|
Yes! Finally got it working. Used salivian's link and followed the instructions exactly with kernel 2.6.8r7 and (after dealing with a problem with the Mesa compilation), everything works perfectly now.
Here's what was going on with Mesa in section 1.1.6:
instead of:
DRI_DIRS = dri_client <dri drivers>
I had to specificy the full path to dri_client and the full path to (in my case) the savage dir. Then it compiled. Everything else worked as the howto explained. |
|
Back to top |
|
|
alwayzamd n00b
Joined: 13 Oct 2003 Posts: 13
|
Posted: Tue Oct 12, 2004 7:47 am Post subject: great |
|
|
Great. I'm glad to see it's working. I am having the same trouble building mesa though... could you be a little more thourogh on what you appended to that file? I am not sure how the trees are built, so I would be digging for hours - just easier to ask Thanks. Also, does anyone have any idea if the driver developer will ever add acceleration for the xrender extension so we can have some nice high speed eye candy?
T.J. |
|
Back to top |
|
|
|