LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Direct Rendering Infrastructure DRI on VIA\S3 Savage (https://www.linuxquestions.org/questions/linux-hardware-18/direct-rendering-infrastructure-dri-on-via%5Cs3-savage-168951/)

/bin/bash 04-11-2004 08:27 PM

Direct Rendering Infrastructure DRI on VIA\S3 Savage
 
This is a HOWTO for enabling DRI on an VIA\S3 Savage graphics controller.

IMPORTANT: You must have kernel sources properly installed and your kernel must have DRI support enabled. At least run
make mrproper
Then configure the kernel and enable DRM. And if you are using 2.4.X kernel you should also run
make dep.

Since posting this, I have discovered a much simpler and quicker method. I put that method in Post #40 of this thread.

Did you ever try to play TuxRacer but it was too slow on your 2Ghz P4? Well I have! It's frustrating! I have never been able to run TuxRacer on any of the computers I have had. Chromium is another one, and MarbleBlast. The reason these games are soooo sloooow is because they require DRI.

How do you know if you have DRI enabled?
Code:

glxinfo
name of display: :0.0
display: :0  screen: 0
direct rendering: Yes

Also you can run the utility glxgears and check the FPS rate in the standard window size. I used to get 150-170FPS max before I got DRI working. Now I get >350FPS, and I can now play all those games!

Direct Rendering Infrastructure (DRI) as you may know is not a standard Kernel option for VIA/S3 Savage. But did you know there is a savage branch of the DRI Open Source Project.
NOTE: As of kernel 2.6.14 there is now DRM support for Savage chips in the kernel. W00t!

NOTE: The DRI site is constantly changing and I would suggest you look at their documentation as it will be more current than this HOWTO.

I got most of my information from the above link but I will try to condense everything you need to do into one thread here for your convenience.

Step-by-step
First we download everything using cvs. NOTE everything includes XFree86, the savage branch of XFree86, drm and Mesa.
  • cvs -z3 -d:pserver:anonymous@dri.freedesktop.org:/cvs/dri login #Hit <Enter> at Password prompt.
  • cvs -z3 -d:pserver:anonymous@dri.freedesktop.org:/cvs/dri co xc #This will get the XFree86 sources
  • cvs -z3 -d:pserver:anonymous@dri.freedesktop.org:/cvs/dri co -rsavage-2-0-0-branch xc #This gets the savage branch
  • cvs -z3 -d:pserver:anonymous@dri.freedesktop.org:/cvs/dri co drm #This gets the Direct Rendering code (drm)
  • cvs -z3 -d:pserver:anonymous@dri.freedesktop.org:/cvs/mesa co Mesa #This gets the Mesa stuff
Now we will make a parallel build tree. This is done so our source tree will stay clean of build files. It makes it easier to update everything later on, if you choose to.
  • ln -s xc XFree40
  • mkdir build
  • cd build
  • lndir -silent -ignorelinks ../XFree40
Before we start building we can edit the config file xc/config/cf/host.def so we only build for the savage card and not all the others. Change XF86CardDrivers and DriDrivers to savage. This is found in 3 places in the config file. I changed all 3 just to be sure.
  • #define XF86CardDrivers savage
  • #define DriDrivers savage
Now from within the build/xc directory do this.
  • make World >& world.log &
  • tail -f world.log # This is so you can see whats happening. Once make is done hit <Ctrl>+c to escape.
  • make install #Warning this will overwrite your current XFree86 installation. Make sure you know how to undo this if it fails. Also you must be root to run make install.
  • ldconfig #This was not in original DRI documentation.
Now we will build the drm module. You must have kernel sources installed and you must at least run make mrproper for this to work. If we continue on from the previous build/xc directory.
  • cd ../../drm/linux
  • make DRM_MODULES="savage"
  • su
  • mkdir /lib/modules/`uname -r`/kernel/drivers/char/drm
  • cp savage.ko /lib/modules/`uname -r`/kernel/drivers/char/drm #NOTE: On 2.4 kernel the module will be savage.o
  • depmod -a

Now edit /etc/X11/XF86Config-4 and modify or add these sections:

Section "Module"
# ...
Load "glx"
Load "dri"
# ...
EndSection


Section "Device"
Driver "savage"
...
...
EndSection

Section "DRI"
Mode 0666
EndSection

Next edit /etc/modprobe.conf and add this line.

alias agpgart via-agp

Thats about it. You can now reboot and startx and hopefully you have a DRI enabled savage driver. Woot! Well I hope this helps someone cause that TuxRacer is sure worth the effort!

Please feel free to post anything I may have left out or just flat out got wrong.

Also note that this procedure should work on any of the dri supported cards by simply replacing savage with <your card>. Go to this page for a list of supported hardware.

<EDIT>
Changed drm code from cd ../drm to cd ../drm/linux
Changed make world directory to build/xc
Changed drm code from cd ../drm/linux to cd ../../drm/linux
As of 4-30-2004 we no longer use make -f Makefile.linux to build drm module.
Added IMPORTANT note at the beginning.
Added Driver Section to XF86Config-4/xorg.conf
NOTE This works with both XFree86 and Xorg sources.

rmd5 04-14-2004 01:33 PM

Hello,

I was hoping you could help in following the procedures you have posted. I am a baby to Linux, but I have made the conversion from windows and don't plan to go back.

In your procedure you said:

1 - make World >& world.log &
2 - tail -f world.log # This is so you can see whats happening. Once make is done hit <Ctrl>+c to escape.
3 - make install #Warning this will overwrite your current XFree86 installation. Make sure you know how to undo this if it fails.


Everything seems to go fine up until line 3 (line numbered 3 above)....when I type "make install" I get the following:

make: *** No rule to make target `install'. Stop.

Please advice, many thanks in advance

/bin/bash 04-14-2004 08:50 PM

OK I seem to have left out one step. You need to be in the build/xc directory when you do make world and make install. Sorry about that. I will make the corrections to the original post.

rmd5 04-14-2004 10:39 PM

ignore this please

rmd5 04-14-2004 10:41 PM

Hello again..

Many thanks for replying so promptly to my last question.

Just wanted to know if these error outputs are OK.

After typing:
make install

This is what I get (these are only the last couple lines):

make[4]: Leaving directory `/root/build/xc/lib/GL/mesa/src'
installing in lib/GL/glx...
make[4]: Entering directory `/root/build/xc/lib/GL/glx'
install in lib/GL/glx done
make[4]: Leaving directory `/root/build/xc/lib/GL/glx'
installing in lib/GL/dri...
make[4]: Entering directory `/root/build/xc/lib/GL/dri'
installing in lib/GL/dri/drm...
make[5]: Entering directory `/root/build/xc/lib/GL/dri/drm'
install in lib/GL/dri/drm done
make[5]: Leaving directory `/root/build/xc/lib/GL/dri/drm'
make[4]: Leaving directory `/root/build/xc/lib/GL/dri'
installing in lib/GL/GL...
make[4]: Entering directory `/root/build/xc/lib/GL/GL'
make[4]: *** No rule to make target `../../../lib/GL/glx/?*.o', needed by `libGL.so.1.2'. Stop.
make[4]: Leaving directory `/root/build/xc/lib/GL/GL'
make[3]: *** [install] Error 2
make[3]: Leaving directory `/root/build/xc/lib/GL'
make[2]: *** [install] Error 2
make[2]: Leaving directory `/root/build/xc/lib'
make[1]: *** [install] Error 2
make[1]: Leaving directory `/root/build/xc'
make: *** [install] Error 2

thanks again

rmd5 04-14-2004 11:14 PM

Hello once again,

you said:
cp savage.ko /lib/modules/`uname -r`/kernel/drivers/char/drm #NOTE: On 2.4 kernel the module will be savage.o

my drm/linux directory does not contain the savage.o or .ko file. I have the 2.4 kernel.
Have I done something wrong?


thanks

/bin/bash 04-15-2004 08:12 PM

Since you are getting errors during make install you need to check your make log (build/xc/world.log) to make sure there were no errors.

You should have a savage.o module in drm/linux if you got no errors when you ran the command
make -f Makefile.linux DRM_MODULES="savage"
Since you are using the 2.4 kernel sources you must run make mrproper and make dep from /usr/src/linux directory.

jeffreylebowski 04-24-2004 09:23 PM

XOrg-XFree86-4.4.0RC2
 
I was wondering if anybody got this working with the latest version of the XOrg server (4.4.0 RC2; since the licensing split). I'd rather use the XOrg's server, but I don't know if there's a dri savage branch for it. Any help is appreciated.

Thanks,
~Matt

rmd5 04-30-2004 10:53 AM

Hello again,

Well, I finally got thru your procedures correctly and happy to say no errors were reported. But, its seems as if nothing has changed. When I do glxinfo, it reports that rendering is still off. When I do glxgears, my FPS has actually slowed down. Please advice

thanks again

/bin/bash 05-02-2004 04:37 AM

jeffreylebowski
Go to the DRI Open Source Project, click on Documentation, then click on Building, now look in the contents for Building for X.org and click on that. I'm afraid thats all the help I can offer as I have not used X.org's sources.

rmd5
Well I'm sorry to hear that. I'm starting to think there is something else related to this which I'm unaware of. I just upgraded my Mandrake-9.2 to 10.0 official and now I'm in the same boat as you. Everything works fine but no DRI? I even kept a backup of my Mandrake-9.2 and I can boot into that and it works? I am using the same kernel, the same kernel modules, the same XFree86 server, the same /etc/modprobe.conf and the same /etc/X11/XF86Config-4 file?

I would suggest you search through the mailing lists, as I plan on doing when I get time. It's Baseball/Softball season here in Indiana and I coach two youth teams 1 softball and 1 baseball so I have very little time to work on this right now and for the next couple months. But if I do find something I'll post it here.

bgrudy 05-02-2004 09:15 AM

hi, i'm building this for the mach64 module, following the instructions on http://dri.sourceforge.net/cgi-bin/moin.cgi/Building

first of all, under the editing host.def file, since i only want the mach64, should it look like this?
Code:

#define XF86CardDrivers mach64
 
#define DriDrivers mach64

after that, when in the step "Complining" i do
Code:

make World >& world.log & tail -f world.log
after this, the last couple of lines come up like this.

Code:

make[5]: Leaving directory `/usr/src/CVS/xc/xc/programs/Xserver/hw/xfree86/drivers'
make[4]: *** [clean] Error 2
make[4]: Leaving directory `/usr/src/CVS/xc/xc/programs/Xserver/hw/xfree86'
make[3]: *** [clean] Error 2
make[3]: Leaving directory `/usr/src/CVS/xc/xc/programs/Xserver'
make[2]: *** [clean] Error 2
make[2]: Leaving directory `/usr/src/CVS/xc/xc/programs'
make[1]: *** [clean] Error 2
make[1]: Leaving directory `/usr/src/CVS/xc/xc'
make: *** [World] Error 2

i followed the instructions from the build webpage, but now i'm stuck on that. anybody know what's going on? how can i fix this? any help is appreciated.
(i'm a newbie)

/bin/bash 05-04-2004 12:24 AM

bgrudy
Since you are working in /usr/src directory you would probably need to be root.

rmd5
Check your /dev directory and make sure you have an agpgart device and also a dri/card0 device:
Code:

crw-r-----  1 root root 10, 175 Dec 31  1969 /dev/agpgart

/dev/dri:
total 0
crw-rw-rw-  1 root root 226, 0 May  4 00:00 card0

You can make the devices like this:
mknod /dev/agpgart -m 0640 c 10 175
mknod /dev/dri/card0 -m 0666 c 226 0

When you startx you should have these modules loaded:
savage
agpgart
via_agp

janfy_fr 05-04-2004 06:56 AM

Hello,

I'm trying to make DRI operate on my laptop, which features a VIA Apollo Pro 266 chipset (better known as VIA ProSavage DDR). And it's a tough work, for the newbie I am! ;o)
I'm running a debian 2.6.4.

I followed the above instructions (and many others), but I still don't succeed in getting the via_agp module. I've chosen the "VIA chipset support" option in the agpgart menu of menuconfig, compiled the kernel, but it doesn't operate. It seems me I don't have the source for this. Is it possible?

When I'm looking for AGP modules, I get :

When I look the full module list, I can't see any AGP module :
# modprobe -l | grep agp
........
# modprobe -l
/lib/modules/2.6.4/kernel/sound/soundcore.ko
/lib/modules/2.6.4/kernel/sound/drivers/mpu401/snd-mpu401-uart.ko
/lib/modules/2.6.4/kernel/sound/core/snd.ko
/lib/modules/2.6.4/kernel/sound/core/snd-timer.ko
/lib/modules/2.6.4/kernel/sound/core/seq/snd-seq.ko
/lib/modules/2.6.4/kernel/sound/core/seq/oss/snd-seq-oss.ko
/lib/modules/2.6.4/kernel/sound/core/seq/snd-seq-midi.ko
/lib/modules/2.6.4/kernel/sound/core/seq/snd-seq-midi-event.ko
/lib/modules/2.6.4/kernel/sound/core/seq/snd-seq-dummy.ko
/lib/modules/2.6.4/kernel/sound/core/seq/snd-seq-device.ko
/lib/modules/2.6.4/kernel/sound/core/snd-rtctimer.ko
/lib/modules/2.6.4/kernel/sound/core/snd-rawmidi.ko
/lib/modules/2.6.4/kernel/sound/core/snd-pcm.ko
/lib/modules/2.6.4/kernel/sound/core/snd-page-alloc.ko
/lib/modules/2.6.4/kernel/sound/core/oss/snd-pcm-oss.ko
/lib/modules/2.6.4/kernel/sound/core/oss/snd-mixer-oss.ko
/lib/modules/2.6.4/kernel/sound/pci/snd-via82xx.ko
/lib/modules/2.6.4/kernel/sound/pci/ac97/snd-ac97-codec.ko
/lib/modules/2.6.4/kernel/fs/vfat/vfat.ko
/lib/modules/2.6.4/kernel/fs/udf/udf.ko
/lib/modules/2.6.4/kernel/fs/smbfs/smbfs.ko
/lib/modules/2.6.4/kernel/fs/ntfs/ntfs.ko
/lib/modules/2.6.4/kernel/fs/nls/nls_utf8.ko
/lib/modules/2.6.4/kernel/fs/nls/nls_iso8859-15.ko
/lib/modules/2.6.4/kernel/fs/nls/nls_iso8859-1.ko
/lib/modules/2.6.4/kernel/fs/nls/nls_cp850.ko
/lib/modules/2.6.4/kernel/fs/nls/nls_cp437.ko
/lib/modules/2.6.4/kernel/fs/nfsd/nfsd.ko
/lib/modules/2.6.4/kernel/fs/nfs/nfs.ko
/lib/modules/2.6.4/kernel/fs/msdos/msdos.ko
/lib/modules/2.6.4/kernel/fs/lockd/lockd.ko
/lib/modules/2.6.4/kernel/fs/isofs/isofs.ko
/lib/modules/2.6.4/kernel/fs/fat/fat.ko
/lib/modules/2.6.4/kernel/fs/exportfs/exportfs.ko
/lib/modules/2.6.4/kernel/lib/zlib_inflate/zlib_inflate.ko
/lib/modules/2.6.4/kernel/lib/zlib_deflate/zlib_deflate.ko
/lib/modules/2.6.4/kernel/lib/crc32.ko
/lib/modules/2.6.4/kernel/net/sunrpc/sunrpc.ko
/lib/modules/2.6.4/kernel/net/ipv4/netfilter/iptable_nat.ko
/lib/modules/2.6.4/kernel/net/ipv4/netfilter/iptable_filter.ko
/lib/modules/2.6.4/kernel/net/ipv4/netfilter/ipt_ttl.ko
/lib/modules/2.6.4/kernel/net/ipv4/netfilter/ipt_tos.ko
/lib/modules/2.6.4/kernel/net/ipv4/netfilter/ipt_tcpmss.ko
/lib/modules/2.6.4/kernel/net/ipv4/netfilter/ipt_state.ko
/lib/modules/2.6.4/kernel/net/ipv4/netfilter/ipt_recent.ko
/lib/modules/2.6.4/kernel/net/ipv4/netfilter/ipt_pkttype.ko
/lib/modules/2.6.4/kernel/net/ipv4/netfilter/ipt_owner.ko
/lib/modules/2.6.4/kernel/net/ipv4/netfilter/ipt_multiport.ko
/lib/modules/2.6.4/kernel/net/ipv4/netfilter/ipt_mark.ko
/lib/modules/2.6.4/kernel/net/ipv4/netfilter/ipt_mac.ko
/lib/modules/2.6.4/kernel/net/ipv4/netfilter/ipt_limit.ko
/lib/modules/2.6.4/kernel/net/ipv4/netfilter/ipt_length.ko
/lib/modules/2.6.4/kernel/net/ipv4/netfilter/ipt_iprange.ko
/lib/modules/2.6.4/kernel/net/ipv4/netfilter/ipt_helper.ko
/lib/modules/2.6.4/kernel/net/ipv4/netfilter/ipt_esp.ko
/lib/modules/2.6.4/kernel/net/ipv4/netfilter/ipt_ecn.ko
/lib/modules/2.6.4/kernel/net/ipv4/netfilter/ipt_dscp.ko
/lib/modules/2.6.4/kernel/net/ipv4/netfilter/ipt_conntrack.ko
/lib/modules/2.6.4/kernel/net/ipv4/netfilter/ipt_ah.ko
/lib/modules/2.6.4/kernel/net/ipv4/netfilter/ipt_ULOG.ko
/lib/modules/2.6.4/kernel/net/ipv4/netfilter/ipt_TCPMSS.ko
/lib/modules/2.6.4/kernel/net/ipv4/netfilter/ipt_REJECT.ko
/lib/modules/2.6.4/kernel/net/ipv4/netfilter/ipt_REDIRECT.ko
/lib/modules/2.6.4/kernel/net/ipv4/netfilter/ipt_NETMAP.ko
/lib/modules/2.6.4/kernel/net/ipv4/netfilter/ipt_MASQUERADE.ko
/lib/modules/2.6.4/kernel/net/ipv4/netfilter/ipt_LOG.ko
/lib/modules/2.6.4/kernel/net/ipv4/netfilter/ip_tables.ko
/lib/modules/2.6.4/kernel/net/ipv4/netfilter/ip_nat_irc.ko
/lib/modules/2.6.4/kernel/net/ipv4/netfilter/ip_nat_ftp.ko
/lib/modules/2.6.4/kernel/net/ipv4/netfilter/ip_conntrack_irc.ko
/lib/modules/2.6.4/kernel/net/ipv4/netfilter/ip_conntrack_ftp.ko
/lib/modules/2.6.4/kernel/net/ipv4/netfilter/ip_conntrack.ko
/lib/modules/2.6.4/kernel/net/bridge/bridge.ko
/lib/modules/2.6.4/kernel/net/atm/pppoatm.ko
/lib/modules/2.6.4/kernel/net/atm/br2684.ko
/lib/modules/2.6.4/kernel/net/atm/atm.ko
/lib/modules/2.6.4/kernel/arch/i386/kernel/msr.ko
/lib/modules/2.6.4/kernel/arch/i386/kernel/microcode.ko
/lib/modules/2.6.4/kernel/arch/i386/kernel/cpuid.ko
/lib/modules/2.6.4/kernel/arch/i386/kernel/apm.ko
/lib/modules/2.6.4/kernel/crypto/twofish.ko
/lib/modules/2.6.4/kernel/crypto/sha512.ko
/lib/modules/2.6.4/kernel/crypto/sha256.ko
/lib/modules/2.6.4/kernel/crypto/sha1.ko
/lib/modules/2.6.4/kernel/crypto/serpent.ko
/lib/modules/2.6.4/kernel/crypto/md5.ko
/lib/modules/2.6.4/kernel/crypto/md4.ko
/lib/modules/2.6.4/kernel/crypto/des.ko
/lib/modules/2.6.4/kernel/crypto/deflate.ko
/lib/modules/2.6.4/kernel/crypto/crypto_null.ko
/lib/modules/2.6.4/kernel/crypto/cast6.ko
/lib/modules/2.6.4/kernel/crypto/cast5.ko
/lib/modules/2.6.4/kernel/crypto/blowfish.ko
/lib/modules/2.6.4/kernel/crypto/arc4.ko
/lib/modules/2.6.4/kernel/crypto/aes.ko
/lib/modules/2.6.4/kernel/drivers/media/video/videodev.ko
/lib/modules/2.6.4/kernel/drivers/media/video/v4l2-common.ko
/lib/modules/2.6.4/kernel/drivers/media/video/v4l1-compat.ko
/lib/modules/2.6.4/kernel/drivers/scsi/sr_mod.ko
/lib/modules/2.6.4/kernel/drivers/scsi/sg.ko
/lib/modules/2.6.4/kernel/drivers/scsi/sd_mod.ko
/lib/modules/2.6.4/kernel/drivers/scsi/scsi_mod.ko
/lib/modules/2.6.4/kernel/drivers/parport/parport_pc.ko
/lib/modules/2.6.4/kernel/drivers/parport/parport.ko
/lib/modules/2.6.4/kernel/drivers/char/rtc.ko
/lib/modules/2.6.4/kernel/drivers/char/nvram.ko
/lib/modules/2.6.4/kernel/drivers/char/n_hdlc.ko
/lib/modules/2.6.4/kernel/drivers/char/lp.ko
/lib/modules/2.6.4/kernel/drivers/input/joydev.ko
/lib/modules/2.6.4/kernel/drivers/ide/ide-cd.ko
/lib/modules/2.6.4/kernel/drivers/block/loop.ko
/lib/modules/2.6.4/kernel/drivers/block/floppy.ko
/lib/modules/2.6.4/kernel/drivers/usb/net/usbnet.ko
/lib/modules/2.6.4/kernel/drivers/usb/core/usbcore.ko
/lib/modules/2.6.4/kernel/drivers/usb/storage/usb-storage.ko
/lib/modules/2.6.4/kernel/drivers/usb/input/hid.ko
/lib/modules/2.6.4/kernel/drivers/usb/host/uhci-hcd.ko
/lib/modules/2.6.4/kernel/drivers/usb/host/ohci-hcd.ko
/lib/modules/2.6.4/kernel/drivers/usb/host/ehci-hcd.ko
/lib/modules/2.6.4/kernel/drivers/pcmcia/yenta_socket.ko
/lib/modules/2.6.4/kernel/drivers/pcmcia/pcmcia_core.ko
/lib/modules/2.6.4/kernel/drivers/pcmcia/ds.ko
/lib/modules/2.6.4/kernel/drivers/cdrom/cdrom.ko
/lib/modules/2.6.4/kernel/drivers/net/via-rhine.ko
/lib/modules/2.6.4/kernel/drivers/net/slhc.ko
/lib/modules/2.6.4/kernel/drivers/net/pppox.ko
/lib/modules/2.6.4/kernel/drivers/net/pppoe.ko
/lib/modules/2.6.4/kernel/drivers/net/ppp_synctty.ko
/lib/modules/2.6.4/kernel/drivers/net/ppp_generic.ko
/lib/modules/2.6.4/kernel/drivers/net/ppp_deflate.ko
/lib/modules/2.6.4/kernel/drivers/net/ppp_async.ko
/lib/modules/2.6.4/kernel/drivers/net/mii.ko
/lib/modules/2.6.4/kernel/drivers/net/bsd_comp.ko
/lib/modules/2.6.4/kernel/drivers/serial/serial_core.ko
/lib/modules/2.6.4/kernel/drivers/serial/8250_pci.ko
/lib/modules/2.6.4/kernel/drivers/serial/8250.ko

At boot time, AGPGART seems to load correctly :
#dmesg | grep agp
Linux agpgart interface v0.100 (c) Dave Jones
agpgart: Detected VIA Apollo Pro266 chipset
agpgart: Maximum main memory to use for agp memory: 176M
agpgart: AGP aperture is 64M @ 0xa0000000

But via_agp module is not found....
# modprobe agpgart
FATAL: Module via_agp not found.

The following lines surprise me a lot:
# more /boot/config | grep AGP
CONFIG_AGP=y
# CONFIG_AGP_ALI is not set
# CONFIG_AGP_ATI is not set
# CONFIG_AGP_AMD is not set
# CONFIG_AGP_AMD64 is not set
CONFIG_AGP_INTEL=y
# CONFIG_AGP_NVIDIA is not set
# CONFIG_AGP_SIS is not set
# CONFIG_AGP_SWORKS is not set
# CONFIG_AGP_VIA is not set
# CONFIG_AGP_EFFICEON is not set
Why do I get this, since I coched "VIA chipset support", ans not "Intel chipset support" before I compiled the Linux kernel?

The /dev/dri/card0 didn't exist, I created it as shown above.

/etc/modules file doesn't contain anything.

The only AGP line in modules.conf is the following :
# more modules.conf | grep agp
alias char-major-10-175 agpgart

I put the following line in modprobe.conf :
# more modprobe.conf
include /lib/modules/modprobe.conf
alias agpgart via-agp

...... and in modprobe.preload :
# more modprobe.preload
via-agp

How can I check easily if savage, DRM, agpgart and via_agp modules are correctly loaded. How can I make them load? Any help will be appreciated. Thanks.

janfy_fr 05-04-2004 02:32 PM

Further informations to better understand my problem (sorry for the length) :

~$ lspci
0000:00:00.0 Host bridge: VIA Technologies, Inc. P/KN266 Host Bridge
0000:00:01.0 PCI bridge: VIA Technologies, Inc. VT8633 [Apollo Pro266 AGP]
0000:00:09.0 CardBus bridge: ENE Technology Inc CB1410 Cardbus Controller
0000:00:0b.0 FireWire (IEEE 1394): VIA Technologies, Inc. IEEE 1394 Host Controller (rev 80)
0000:00:10.0 USB Controller: VIA Technologies, Inc. VT6202 [USB 2.0 controller] (rev 80)
0000:00:10.1 USB Controller: VIA Technologies, Inc. VT6202 [USB 2.0 controller] (rev 80)
0000:00:10.3 USB Controller: VIA Technologies, Inc. USB 2.0 (rev 82)
0000:00:11.0 ISA bridge: VIA Technologies, Inc. VT8235 ISA Bridge
0000:00:11.1 IDE interface: VIA Technologies, Inc. VT82C586A/B/VT82C686/A/B/VT823x/A/C/VT8235 PIPC Bus Master IDE (rev 06)
0000:00:11.5 Multimedia audio controller: VIA Technologies, Inc. VT8233/A/8235/8237 AC97 Audio Controller (rev 50)
0000:00:11.6 Communication controller: VIA Technologies, Inc. Intel 537 [AC97 Modem] (rev 80)
0000:00:12.0 Ethernet controller: VIA Technologies, Inc. VT6102 [Rhine-II] (rev 74)
0000:01:00.0 VGA compatible controller: S3 Inc. VT8375 [ProSavage8 KM266/KL266]

~$ lsmod
Module Size Used by
ds 16004 2
apm 18092 2
via_rhine 21256 0
mii 5056 1 via_rhine
crc32 4352 1 via_rhine
hid 24960 0
snd_via82xx 25280 2
snd_pcm 99940 2 snd_via82xx
snd_timer 25860 1 snd_pcm
snd_ac97_codec 62724 1 snd_via82xx
snd_page_alloc 12164 2 snd_via82xx,snd_pcm
snd_mpu401_uart 7872 1 snd_via82xx
snd_rawmidi 25120 1 snd_mpu401_uart
snd_seq_device 8136 1 snd_rawmidi
snd 55012 10 snd_via82xx,snd_pcm,snd_timer,snd_ac97_codec,snd_mpu401_uart,snd_rawmidi,snd_seq_device
soundcore 9888 1 snd
ehci_hcd 26564 0
uhci_hcd 32400 0
usbcore 105180 5 hid,ehci_hcd,uhci_hcd
yenta_socket 17152 0
pcmcia_core 70624 2 ds,yenta_socket
joydev 9920 0
rtc 12664 0

~$ cat /var/log/XFree86.0.logXFree86 Version 4.3.99.12 (DRI trunk)
Release Date: 10 September 2003
X Protocol Version 11, Revision 0, Release 6.6
Build Operating System: Linux 2.6.4 i686 [ELF]
Current Operating System: Linux medion 2.6.4 #2 Tue May 4 16:00:13 CEST 2004 i686
Build Date: 02 May 2004
Changelog Date: 10 September 2003
Before reporting problems, check http://www.XFree86.Org/
to make sure that you have the latest version.
Module Loader present
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/XFree86.0.log", Time: Tue May 4 20:50:29 2004
(==) Using config file: "/etc/X11/XF86Config-4"
(==) ServerLayout "Default Layout"
(**) |-->Screen "Default Screen" (0)
(**) | |-->Monitor "LCD Monitor"
(**) | |-->Device "S3 ProSavage DDR-K"
(**) |-->Input Device "Generic Keyboard"
(**) Option "XkbRules" "xfree86"
(**) XKB: rules: "xfree86"
(**) Option "XkbModel" "pc105"
(**) XKB: model: "pc105"
(**) Option "XkbLayout" "fr"
(**) XKB: layout: "fr"
(==) Keyboard: CustomKeycode disabled
(**) |-->Input Device "Configured Mouse"
...........................
(II) Loading /usr/X11R6/lib/modules/extensions/libGLcore.a
(II) Module GLcore: vendor="The XFree86 Project"
compiled for 4.3.99.12, module version = 1.0.0
ABI class: XFree86 Server Extension, version 0.2
(II) LoadModule: "bitmap"
(II) Reloading /usr/X11R6/lib/modules/fonts/libbitmap.a
(II) Loading font Bitmap
(II) LoadModule: "dbe"
(II) Loading /usr/X11R6/lib/modules/extensions/libdbe.a
(II) Module dbe: vendor="The XFree86 Project"
compiled for 4.3.99.12, module version = 1.0.0
Module class: XFree86 Server Extension
ABI class: XFree86 Server Extension, version 0.2
(II) Loading extension DOUBLE-BUFFER
(II) LoadModule: "ddc"
(II) Loading /usr/X11R6/lib/modules/libddc.a
(II) Module ddc: vendor="The XFree86 Project"
compiled for 4.3.99.12, module version = 1.0.0
ABI class: XFree86 Video Driver, version 0.7
(II) LoadModule: "dri"
(II) Loading /usr/X11R6/lib/modules/extensions/libdri.a
(II) Module dri: vendor="The XFree86 Project"
compiled for 4.3.99.12, module version = 1.0.0
ABI class: XFree86 Server Extension, version 0.2
(II) Loading sub module "drm"
(II) LoadModule: "drm"
(II) Loading /usr/X11R6/lib/modules/linux/libdrm.a
(II) Module drm: vendor="The XFree86 Project"
compiled for 4.3.99.12, module version = 1.0.0
ABI class: XFree86 Server Extension(II) LoadModule: "glx"
(II) Loading /usr/X11R6/lib/modules/extensions/libglx.a
(II) Module glx: vendor="The XFree86 Project"
compiled for 4.3.99.12, module version = 1.0.0
ABI class: XFree86 Server Extension, version 0.2
(II) Loading sub module "GLcore"
(II) LoadModule: "GLcore"
(II) Reloading /usr/X11R6/lib/modules/extensions/libGLcore.a
(II) Loading extension GLX, version 0.2
(II) Loading extension XFree86-DRI
.................................
(II) LoadModule: "savage"
(II) Loading /usr/X11R6/lib/modules/drivers/savage_drv.o
(II) Module savage: vendor="The XFree86 Project"
compiled for 4.3.99.12, module version = 1.1.27
Module class: XFree86 Video Driver
ABI class: XFree86 Video Driver, version 0.7
.......................
(II) Setting vga for screen 0.
(II) Loading sub module "vgahw"
(II) LoadModule: "vgahw"
(II) Loading /usr/X11R6/lib/modules/libvgahw.a
(II) Module vgahw: vendor="The XFree86 Project"
compiled for 4.3.99.12, module version = 0.1.0
ABI class: XFree86 Video Driver, version 0.7
(**) SAVAGE(0): Depth 16, (--) framebuffer bpp 16
(==) SAVAGE(0): RGB weight 565
(==) SAVAGE(0): Default visual is TrueColor
(II) SAVAGE(0): vgaHWGetIOBase: hwp->IOBase is 0x03d0, hwp->PIOOffset is 0x0000
(==) SAVAGE(0): Using AGP 1x mode
(II) SAVAGE(0): Using 16 MB AGP aperture
(==) SAVAGE(0): Using HW cursor
..............................(II) Reloading /usr/X11R6/lib/modules/libvbe.a
(II) SAVAGE(0): VESA BIOS detected
(II) SAVAGE(0): VESA VBE Version 3.0
(II) SAVAGE(0): VESA VBE Total Mem: 31680 kB
(II) SAVAGE(0): VESA VBE OEM: S3 Graphics ProSavage DDR Family BIOS
(II) SAVAGE(0): VESA VBE OEM Software Rev: 2.0
(II) SAVAGE(0): VESA VBE OEM Vendor: S3 Garphics Incorporated.
(II) SAVAGE(0): VESA VBE OEM Product: VBE 3.0
(II) SAVAGE(0): VESA VBE OEM Product Rev: Rev 0.0
(--) SAVAGE(0): Chip: id 8d04, "ProSavage DDR-K"
(--) SAVAGE(0): Engine: "ProSavageDDR"
(--) SAVAGE(0): mapping MMIO @ 0xe0000000 with size 0x80000
(==) SAVAGE(0): Using gamma correction (1.0, 1.0, 1.0)
(--) SAVAGE(0): probed videoram: 32768k
........................................
(II) SAVAGE(0): VESA VBE Total Mem: 31680 kB
(II) SAVAGE(0): VESA VBE OEM: S3 Graphics ProSavage DDR Family BIOS
(II) SAVAGE(0): VESA VBE OEM Software Rev: 2.0
(II) SAVAGE(0): VESA VBE OEM Vendor: S3 Garphics Incorporated.
(II) SAVAGE(0): VESA VBE OEM Product: VBE 3.0
(II) SAVAGE(0): VESA VBE OEM Product Rev: Rev 0.0
(--) SAVAGE(0): mapping framebuffer @ 0x90000000 with size 0x2000000
(==) SAVAGE(0): Write-combining range (0x90000000,0x2000000)
(II) SAVAGE(0): Splitting WC range: base: 0x92000000, size: 0x5000000
(II) SAVAGE(0): Splitting WC range: base: 0x94000000, size: 0x3000000
(==) SAVAGE(0): Write-combining range (0x96000000,0x1000000)
(==) SAVAGE(0): Write-combining range (0x94000000,0x3000000)
(==) SAVAGE(0): Write-combining range (0x92000000,0x5000000)
(II) SAVAGE(0): map aperture:0x423a9000
(--) SAVAGE(0): Chose mode 117 at 75Hz.
(II) SAVAGE(0): 4740 kB of Videoram needed for 3D; 32768 kB of Videoram available
(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 -1, (No such device)
drmOpenDevice: open result is -1, (No such device)
drmOpenDevice: Open failed
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 "savage"
(II) SAVAGE(0): [drm] drmOpen failed
(EE) SAVAGE(0): [drm] DRIScreenInit failed. Disabling DRI.
(EE) SAVAGE(0): DRI isn't enabled
(II) SAVAGE(0): Using 1280 lines for offscreen memory.
(II) SAVAGE(0): Using XFree86 Acceleration Architecture (XAA)
....................
(==) SAVAGE(0): Backing store disabled
(**) Option "dpms"
(**) SAVAGE(0): DPMS enabled
(EE) SAVAGE(0): Direct rendering disabled
(==) RandR enabled
.......................

Thanks for your help.

/bin/bash 05-04-2004 03:48 PM

janfy_fr

Try this:
Code:

modinfo via_agp
license:        GPL and additional rights
author:        Dave Jones <davej@codemonkey.org.uk>
vermagic:      2.6.5 PENTIUM4 gcc-3.3
depends:        agpgart
alias:          pci:v00001106d*sv*sd*bc06sc00i00*

Actually I think maybe the /dev/dri/card0 is created on-the-fly by the dri module when you run startx. But you should make the /dev/agpgart device if it doesn't exist.

Are you using devfs or udev?

I ended up changing to udev and that fixed my Mandrake 10 problem.

janfy_fr 05-05-2004 01:13 PM

Thanks /bin/bash for your answer. This is what I get :

# modinfo via_agp
modinfo: could not find module via_agp

I created /dev/dri/card0 yesterday, and today it doesn't exist any more. Seems to have been automatically deleted by the system. but agpgart device exists:
# ls -l /dev/agpgart
crw-rw---- 1 root video 10, 175 Mar 5 10:03 /dev/agpgart

devfs vs udev : You make me discover a world I never heared about before! :o) My /boot/config file says :
# CONFIG_DEVFS_FS is not set
but nothing about UDEV...

However, I have a /etc/devfs/conf.d directory:

/etc/devfs/conf.d$ ls
alsa apm bluez irda libpisock8 scanner thinkpad tpb

/etc/devfs/conf.d$more alsa
# device permissions for ALSA sound devices.
REGISTER ^snd/.* PERMISSIONS root.audio 0660
REGISTER ^snd/controlC0 CFUNCTION GLOBAL symlink /proc/asound/oss/sndstat sndstat

Seems me I use devfs, but with no certitude. How can I be sure, and eventually change for udev? Seems me interesting to try... But I still have my via-agp module missing...

Thanks again. I give great importance to this DRI problem.

janfy_fr 05-05-2004 03:08 PM

"/dev file system support (OBSOLETE)" is unselected in my Filesystem section of menuconfig. So does it mean UDEV is implicitely used? How can Linux work alternativaly, without UDEV and DEVFS?

I found this URL : "http://www.vandekamer.com/linux/devfs.asp". Do you think configurind devfs may help to solve my DRI problem?

/bin/bash 05-06-2004 05:06 AM

Quote:

# modinfo via_agp
modinfo: could not find module via_agp
This is probably your problem. Check your kernel configuration with xconfig or menuconfig and select VIA chipset under the Agpgart selection in the Graphics driver. Then run make modules. You can copy the via_agp module to the prober /lib/modules/directory and do depmod -a. I can't tell you where the driver goes right now, but when I get home I'll look it up.

As for devfs vs udev I would not worry about that. It seems you are not using devfs and that is good because it is deprecated in the new 2.6 kernel. Udev is just a user program designed to work with hotplug and give the user a dynamic device interface that will create devices "on-the-fly" as needed.

/bin/bash 05-06-2004 05:22 AM

Another thing. After you startx run lsmod and make sure you have these modules running:
savage
via-agp
agpgart

janfy_fr 05-06-2004 12:32 PM

Hello! There's some pieces of news in my quest!

I checked my kernel config, built again the kernel and built again DRI. Now, I get this :

$ lsmod
Module Size Used by
ds 16004 2
apm 18092 2
via_rhine 21256 0
mii 5056 1 via_rhine
crc32 4352 1 via_rhine
hid 24960 0
snd_via82xx 25280 2
snd_pcm 99940 2 snd_via82xx
snd_timer 25860 1 snd_pcm
snd_ac97_codec 62724 1 snd_via82xx
snd_page_alloc 12164 2 snd_via82xx,snd_pcm
snd_mpu401_uart 7872 1 snd_via82xx
snd_rawmidi 25120 1 snd_mpu401_uart
snd_seq_device 8136 1 snd_rawmidi
snd 55012 10 snd_via82xx,snd_pcm,snd_timer,snd_ac97_codec,snd_mpu401_uart,snd_rawmidi,snd_seq_device
soundcore 9888 1 snd
ehci_hcd 26564 0
uhci_hcd 32400 0
usbcore 105180 5 hid,ehci_hcd,uhci_hcd
yenta_socket 17152 0
pcmcia_core 70624 2 ds,yenta_socket
via_agp 7616 1
agpgart 32104 1 via_agp
joydev 9920 0
rtc 12664 0

As you see, the 'savage' module is not started. And the drm module has disappeared. But the via_agp module is there! Yes!
This time, before compiling the DRM module, I made a 'make dep' instead of 'make mrproper' in my /usr/src/linux directory. Has it done things going better or worst? I don't know.

/dev/agpgart still exists, but no /dev/dri/Card0 device...
ls -l /dev/agpgart
crw-rw---- 1 root video 10, 175 Mar 5 10:03 /dev/agpgart
$ ls -l /dev | grep dri
drwxr-xr-x 2 root root 4096 May 6 17:43 dri
$ cd /dev/dri
$ ls -al
total 32
drwxr-xr-x 2 root root 4096 May 6 17:43 .
drwxr-xr-x 15 root root 28672 May 6 17:43 ..

#modprobe -l | grep agp
/lib/modules/2.6.4/kernel/drivers/char/agp/via-agp.ko
/lib/modules/2.6.4/kernel/drivers/char/agp/agpgart.ko
# modprobe -l | grep drm
# modprobe -l | grep savage
# modprobe agpgart
# modprobe via-agp
#

# more /boot/config | grep AGP
CONFIG_AGP=m
# CONFIG_AGP_ALI is not set
# CONFIG_AGP_ATI is not set
# CONFIG_AGP_AMD is not set
# CONFIG_AGP_AMD64 is not set
# CONFIG_AGP_INTEL is not set
# CONFIG_AGP_NVIDIA is not set
# CONFIG_AGP_SIS is not set
# CONFIG_AGP_SWORKS is not set
CONFIG_AGP_VIA=m
# CONFIG_AGP_EFFICEON is not set

# more /etc/modules.conf | grep agp
alias char-major-10-175 agpgart
# more /etc/modules.conf | grep savage
# more /etc/modules.conf | grep drm
# more /etc/modules.conf | grep dri

# modinfo via_agp
license: GPL and additional rights
author: Dave Jones <davej@codemonkey.org.uk>
vermagic: 2.6.4 preempt K7 gcc-3.3
depends: agpgart
alias: pci:v00001106d*sv*sd*bc06sc00i00*

Much better than yesterday! But still no savage module. I still need to be advised!
Thanks again /bin/bash for your precious help!

janfy_fr 05-06-2004 02:17 PM

I've send my previous message much too fast. Things go better and better. But glxgears ang glxinfo still show DRI off :

# lsmod
Module Size Used by
savage 52644 2
via_agp 7616 1
agpgart 32104 2 via_agp

$cat /var/log/XFree86.0.log | grep SAVAGE
.....................
(II) SAVAGE(0): [junkers] status:map:0x00000000
(II) SAVAGE(0): [junkers] sarea_priv_offset:0x00000898
(II) SAVAGE(0): Direct rendering enabled
(**) SAVAGE(0): XvMC is enabled

# glxinfo
name of display: :0.0
display: :0 screen: 0
direct rendering: No

Any idea?

/bin/bash 05-06-2004 03:31 PM

Try this:
grep EE /var/log/XFree86.0.log

That should print any errors you had while X was starting. Also try this:

dmesg|grep drm

janfy_fr 05-06-2004 04:08 PM

$ grep EE /var/log/XFree86.0.log
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(II) Loading extension MIT-SCREEN-SAVER

$dmesg|grep drm
[drm] Initialized savage 1.0.0 20011023 on minor 0: S3 Inc. VT8375 [ProSavage8 KM266/KL266]

... and that's all. I'm wondering if X starts before all the modules are loaded?..

There are these errors at the end of dmesg :
$ dmesg
.......................
[drm] Initialized savage 1.0.0 20011023 on minor 0: S3 Inc. VT8375 [ProSavage8 KM266/KL266]
agpgart: Found an AGP 2.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:00.0 into 0x mode
mtrr: base(0x92000000) is not aligned on a size(0x5000000) boundary
mtrr: base(0x9157e000) is not aligned on a size(0xa80000) boundary
atkbd.c: Unknown key released (translated set 2, code 0x7a on isa0060/serio0).
atkbd.c: This is an XFree86 bug. It shouldn't access hardware directly.
atkbd.c: Unknown key released (translated set 2, code 0x7a on isa0060/serio0).
atkbd.c: This is an XFree86 bug. It shouldn't access hardware directly.

fransemail 05-06-2004 04:11 PM

i2c-prosavage
 
try:

modprobe i2c-prosavage

have fun!

janfy_fr 05-06-2004 04:48 PM

Hi Fransemail, and thank you for your answer.

modprobe i2c-prosavage returned me "FATAL : etc"
So I enabled it in menuconfig/Device Drivers/I2C_config/I2C_support and I enabled I2C Hardware Bus support/ S3/VIA (Pro)Savage.
Exit, make modules, make modules_install, reboot -> DRI still doesn't load.

I have then also chosen I2C Hardware Sensors Chip support/VIA686A (in case of), installed the modules, rebooted -> DRI doesn't load, and I see in lsmod that the savage module is not loaded any more...

Any suggestion for me? I can feel that fun is not far away! ;o)

janfy_fr 05-06-2004 05:01 PM

The previous compilation had deleted the /lib/modules/2.6.4/kernel/drivers/char/drm directory, which contains savage.ko. After creation of drm, copy of savage.ko, depmod -a, reboot, I have my 3 precious modules again in lsmod.

But still no Direct Rendering...

fransemail 05-06-2004 06:21 PM

look this....
 
hello janfy_fr. Look this site http://www.probo.com/timr/savage40.html. However if your problem persist search in viaarena ( http://forums.viaarena.com/categorie...d=28&forumid=1 )forum. There is a linux section where you can find a lot of interesting threads for your problem. I've found there the solution for a problem with my VIA KM400!

/bin/bash 05-07-2004 05:17 AM

Quote:

... and that's all. I'm wondering if X starts before all the modules are loaded?..
Put these in your /etc/modprobe.preload file.
via_agp
agpgart
savage

janfy_fr 05-08-2004 04:32 PM

Hello /bin/bash and Fransemail!

At this time, graphics are still running without DRI.
Do you have an idea of what can make modules load without errors, DRI being said enabled, and only glxinfo ang glxgears telling it is wrong?

This is my XFree86.0.log file after I ran NeverWinterNights (which starts, but is unplayable) :

# more /var/log/XFree86.0.log


XFree86 Version 4.3.99.12 (DRI trunk)
Release Date: 10 September 2003
X Protocol Version 11, Revision 0, Release 6.6
Build Operating System: Linux 2.6.4 i686 [ELF]
Current Operating System: Linux medion 2.6.4 #4 Thu May 6 10:50:21 CEST 2004 i686
Build Date: 06 May 2004
Changelog Date: 10 September 2003
Before reporting problems, check http://www.XFree86.Org/
to make sure that you have the latest version.
Module Loader present
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/XFree86.0.log", Time: Sat May 8 22:48:26 2004
(==) Using config file: "/etc/X11/XF86Config-4"
(==) ServerLayout "Default Layout"
(**) |-->Screen "Default Screen" (0)
(**) | |-->Monitor "LCD Monitor"
(**) | |-->Device "S3 ProSavage DDR-K"
(**) |-->Input Device "Generic Keyboard"
(**) Option "XkbRules" "xfree86"
(**) XKB: rules: "xfree86"
(**) Option "XkbModel" "pc105"
(**) XKB: model: "pc105"
(**) Option "XkbLayout" "fr"
(**) XKB: layout: "fr"
(==) Keyboard: CustomKeycode disabled
(**) |-->Input Device "Configured Mouse"
(WW) The directory "/usr/lib/X11/fonts/cyrillic" does not exist.
Entry deleted from font path.
(WW) The directory "/usr/lib/X11/fonts/CID" does not exist.
Entry deleted from font path.
(**) FontPath set to "unix/:7100,/usr/lib/X11/fonts/misc,/usr/lib/X11/fonts/100dpi/:unscaled,/usr/lib/X11/fonts/75dpi/:unsca
led,/usr/lib/X11/fonts/Type1,/usr/lib/X11/fonts/Speedo,/usr/lib/X11/fonts/100dpi,/usr/lib/X11/fonts/75dpi"
(==) RgbPath set to "/usr/X11R6/lib/X11/rgb"
(==) ModulePath set to "/usr/X11R6/lib/modules"
(++) using VT number 7

(II) Open APM successful
(II) Module ABI versions:
XFree86 ANSI C Emulation: 0.2
XFree86 Video Driver: 0.7
XFree86 XInput driver : 0.4
XFree86 Server Extension : 0.2
XFree86 Font Renderer : 0.4
(II) Loader running on linux
(II) LoadModule: "bitmap"
(II) Loading /usr/X11R6/lib/modules/fonts/libbitmap.a
(II) Module bitmap: vendor="The XFree86 Project"
compiled for 4.3.99.12, module version = 1.0.0
Module class: XFree86 Font Renderer
ABI class: XFree86 Font Renderer, version 0.4
(II) Loading font Bitmap
(II) LoadModule: "pcidata"
(II) Loading /usr/X11R6/lib/modules/libpcidata.a
(II) Module pcidata: vendor="The XFree86 Project"
compiled for 4.3.99.12, module version = 1.0.0
ABI class: XFree86 Video Driver, version 0.7
(II) PCI: Probing config type using method 1
.....................
(II) LoadModule: "GLcore"
(II) Loading /usr/X11R6/lib/modules/extensions/libGLcore.a
(II) Module GLcore: vendor="The XFree86 Project"
compiled for 4.3.99.12, module version = 1.0.0
ABI class: XFree86 Server Extension, version 0.2
(II) LoadModule: "bitmap"
(II) Reloading /usr/X11R6/lib/modules/fonts/libbitmap.a
(II) Loading font Bitmap
(II) LoadModule: "dbe"
(II) Loading /usr/X11R6/lib/modules/extensions/libdbe.a
(II) Module dbe: vendor="The XFree86 Project"
compiled for 4.3.99.12, module version = 1.0.0
Module class: XFree86 Server Extension
ABI class: XFree86 Server Extension, version 0.2
(II) Loading extension DOUBLE-BUFFER
(II) LoadModule: "ddc"
(II) Loading /usr/X11R6/lib/modules/libddc.a
(II) Module ddc: vendor="The XFree86 Project"
compiled for 4.3.99.12, module version = 1.0.0
ABI class: XFree86 Video Driver, version 0.7
(II) LoadModule: "dri"
(II) Loading /usr/X11R6/lib/modules/extensions/libdri.a
(II) Module dri: vendor="The XFree86 Project"
compiled for 4.3.99.12, module version = 1.0.0
ABI class: XFree86 Server Extension, version 0.2
(II) Loading sub module "drm"
(II) LoadModule: "drm"
(II) Loading /usr/X11R6/lib/modules/linux/libdrm.a
(II) Module drm: vendor="The XFree86 Project"
compiled for 4.3.99.12, module version = 1.0.0
ABI class: XFree86 Server Extension, version 0.2
(II) Loading extension XFree86-DRI
(II) LoadModule: "extmod"
(II) Loading /usr/X11R6/lib/modules/extensions/libextmod.a
(II) Module extmod: vendor="The XFree86 Project"
compiled for 4.3.99.12, module version = 1.0.0
Module class: XFree86 Server Extension
ABI class: XFree86 Server Extension, version 0.2
(II) Loading extension SHAPE
(II) Loading extension MIT-SUNDRY-NONSTANDARD
(II) Loading extension BIG-REQUESTS
(II) Loading extension SYNC
(II) Loading extension MIT-SCREEN-SAVER
(II) Loading extension XC-MISC
(II) Loading extension XFree86-VidModeExtension
(II) Loading extension XFree86-Misc
(II) Loading extension XFree86-DGA
(II) Loading extension DPMS
(II) Loading extension FontCache
(II) Loading extension TOG-CUP
(II) Loading extension Extended-Visual-Information
(II) Loading extension XVideo
(II) Loading extension XVideo-MotionCompensation
(II) Loading extension X-Resource
(II) LoadModule: "freetype"
(II) Loading /usr/X11R6/lib/modules/fonts/libfreetype.a
(II) Module freetype: vendor="The XFree86 Project"
compiled for 4.3.99.12, module version = 2.0.4
Module class: XFree86 Font Renderer
ABI class: XFree86 Font Renderer, version 0.4
(II) Loading font FreeType
(II) LoadModule: "glx"
(II) Loading /usr/X11R6/lib/modules/extensions/libglx.a
(II) Module glx: vendor="The XFree86 Project"
compiled for 4.3.99.12, module version = 1.0.0
ABI class: XFree86 Server Extension, version 0.2
(II) Loading sub module "GLcore"
(II) LoadModule: "GLcore"
(II) Reloading /usr/X11R6/lib/modules/extensions/libGLcore.a
(II) Loading extension GLX
(II) LoadModule: "int10"
(II) Loading /usr/X11R6/lib/modules/linux/libint10.a
(II) Module int10: vendor="The XFree86 Project"
compiled for 4.3.99.12, module version = 1.0.0
ABI class: XFree86 Video Driver, version 0.7
(II) LoadModule: "record"
(II) Loading /usr/X11R6/lib/modules/extensions/librecord.a
(II) Module record: vendor="The XFree86 Project"
compiled for 4.3.99.12, module version = 1.13.0
Module class: XFree86 Server Extension
ABI class: XFree86 Server Extension, version 0.2
(II) Loading extension RECORD
(II) LoadModule: "speedo"
(II) Loading /usr/X11R6/lib/modules/fonts/libspeedo.a
(II) Module speedo: vendor="The XFree86 Project"
compiled for 4.3.99.12, module version = 1.0.1
Module class: XFree86 Font Renderer
ABI class: XFree86 Font Renderer, version 0.4
(II) Loading font Speedo
(II) LoadModule: "type1"
(II) Loading /usr/X11R6/lib/modules/fonts/libtype1.a
(II) Module type1: vendor="The XFree86 Project"
compiled for 4.3.99.12, module version = 1.0.2
Module class: XFree86 Font Renderer
ABI class: XFree86 Font Renderer, version 0.4
(II) Loading font Type1
(II) Loading font CID
(II) LoadModule: "vbe"
(II) Loading /usr/X11R6/lib/modules/libvbe.a
(II) Module vbe: vendor="The XFree86 Project"
compiled for 4.3.99.12, module version = 1.1.0
ABI class: XFree86 Video Driver, version 0.7
(II) LoadModule: "savage"
(II) Loading /usr/X11R6/lib/modules/drivers/savage_drv.o
(II) Module savage: vendor="The XFree86 Project"
compiled for 4.3.99.12, module version = 1.1.27
Module class: XFree86 Video Driver
ABI class: XFree86 Video Driver, version 0.7
(II) LoadModule: "mouse"
(II) Loading /usr/X11R6/lib/modules/input/mouse_drv.o
(II) Module mouse: vendor="The XFree86 Project"
compiled for 4.3.99.12, module version = 1.0.0
Module class: XFree86 XInput Driver
ABI class: XFree86 XInput driver, version 0.4
(II) SAVAGE: driver (version 1.1.27a) for S3 Savage chipsets: Savage4,
Savage3D, Savage3D-MV, Savage2000, Savage/MX-MV, Savage/MX,
Savage/IX-MV, Savage/IX, ProSavage PM133, ProSavage KM133,
ProSavage PN133, ProSavage KN133, SuperSavage/MX 128,
SuperSavage/MX 64, SuperSavage/MX 64C, SuperSavage/IX 128,
SuperSavage/IX 128, SuperSavage/IX 64, SuperSavage/IX 64,
SuperSavage/IXC 64, SuperSavage/IXC 64, ProSavage DDR,
ProSavage DDR-K
(II) Primary Device is: PCI 01:00:0
(--) Chipset ProSavageDDR found
(II) resource ranges after xf86ClaimFixedResources() call:
............................................................
(II) Setting vga for screen 0.
(II) Loading sub module "vgahw"
(II) LoadModule: "vgahw"
(II) Loading /usr/X11R6/lib/modules/libvgahw.a
(II) Module vgahw: vendor="The XFree86 Project"
compiled for 4.3.99.12, module version = 0.1.0
ABI class: XFree86 Video Driver, version 0.7
(**) SAVAGE(0): Depth 16, (--) framebuffer bpp 16
(==) SAVAGE(0): RGB weight 565
(==) SAVAGE(0): Default visual is TrueColor
(II) SAVAGE(0): vgaHWGetIOBase: hwp->IOBase is 0x03d0, hwp->PIOOffset is 0x0000
(==) SAVAGE(0): Using AGP 1x mode
(II) SAVAGE(0): Using 16 MB AGP aperture
(==) SAVAGE(0): Using HW cursor
(==) SAVAGE(0): Using video BIOS to set modes
(II) Loading sub module "int10"
(II) LoadModule: "int10"
(II) Reloading /usr/X11R6/lib/modules/linux/libint10.a
(II) SAVAGE(0): Primary V_BIOS segment is: 0xc000
(II) Loading sub module "vbe"
(II) LoadModule: "vbe"
(II) Reloading /usr/X11R6/lib/modules/libvbe.a
(II) SAVAGE(0): VESA BIOS detected
(II) SAVAGE(0): VESA VBE Version 3.0
(II) SAVAGE(0): VESA VBE Total Mem: 31680 kB
(II) SAVAGE(0): VESA VBE OEM: S3 Graphics ProSavage DDR Family BIOS
(II) SAVAGE(0): VESA VBE OEM Software Rev: 2.0
(II) SAVAGE(0): VESA VBE OEM Vendor: S3 Garphics Incorporated.
(II) SAVAGE(0): VESA VBE OEM Product: VBE 3.0
(II) SAVAGE(0): VESA VBE OEM Product Rev: Rev 0.0
(--) SAVAGE(0): Chip: id 8d04, "ProSavage DDR-K"
(--) SAVAGE(0): Engine: "ProSavageDDR"
(--) SAVAGE(0): mapping MMIO @ 0xe0000000 with size 0x80000
(==) SAVAGE(0): Using gamma correction (1.0, 1.0, 1.0)
(--) SAVAGE(0): probed videoram: 32768k
(II) Loading sub module "ddc"
(II) LoadModule: "ddc"
(II) Reloading /usr/X11R6/lib/modules/libddc.a
(--) SAVAGE(0): No DDC signal
(II) Loading sub module "i2c"
(II) LoadModule: "i2c"
(II) Loading /usr/X11R6/lib/modules/libi2c.a
(II) Module i2c: vendor="The XFree86 Project"
compiled for 4.3.99.12, module version = 1.2.0
ABI class: XFree86 Video Driver, version 0.7
(II) SAVAGE(0): I2C bus "I2C bus" initialized.
(II) SAVAGE(0): I2C device "I2C bus:ddc2" registered at address 0xA0.
(II) SAVAGE(0): I2C device "I2C bus:ddc2" removed.
(--) SAVAGE(0): Detected current MCLK value of 14.318 MHz
(--) SAVAGE(0): 1024x768 TFT LCD panel detected and active
(--) SAVAGE(0): - Limiting video mode to 1024x768
(II) SAVAGE(0): LCD Monitor: Using hsync range of 30.00-60.00 kHz
(II) SAVAGE(0): LCD Monitor: Using vrefresh range of 50.00-75.00 Hz
(II) SAVAGE(0): Clock range: 10.00 to 250.00 MHz
(II) SAVAGE(0): Not using default mode "1024x768" (hsync out of range)
(II) SAVAGE(0): Not using default mode "2048x1536" (bad mode clock/interlace/doublescan)
(II) SAVAGE(0): Not using default mode "1024x768" (hsync out of range)
(--) SAVAGE(0): Found 13 modes at this depth:
[10e] 320 x 200, 70Hz
[133] 320 x 240, 72Hz
[143] 400 x 300, 72Hz
[153] 512 x 384, 70Hz
[11d] 640 x 400, 70Hz
[111] 640 x 480, 60Hz, 75Hz, 85Hz, 100Hz, 160Hz
[114] 800 x 600, 60Hz, 75Hz, 85Hz
[117] 1024 x 768, 60Hz, 70Hz, 75Hz, 85Hz, 100Hz, 130Hz
[17a] 1280 x 768, 60Hz
[14f] 1280 x 960, 60Hz, 85Hz
[11a] 1280 x 1024, 60Hz, 75Hz, 85Hz, 100Hz
[13c] 1400 x 1050, 60Hz, 75Hz
[122] 1600 x 1200, 60Hz
(--) SAVAGE(0): Virtual size is 1024x768 (pitch 1024)
(**) SAVAGE(0): *Default mode "1024x768": 78.8 MHz, 60.1 kHz, 75.1 Hz
(II) SAVAGE(0): Modeline "1024x768" 78.80 1024 1040 1136 1312 768 769 772 800 +hsync +vsync
..................................................;
(==) SAVAGE(0): DPI set to (75, 75)
(II) Loading sub module "fb"
(II) LoadModule: "fb"
(II) Loading /usr/X11R6/lib/modules/libfb.a
(II) Module fb: vendor="The XFree86 Project"
compiled for 4.3.99.12, module version = 1.0.0
ABI class: XFree86 ANSI C Emulation, version 0.2
(II) Loading sub module "xaa"
(II) LoadModule: "xaa"
(II) Loading /usr/X11R6/lib/modules/libxaa.a
(II) Module xaa: vendor="The XFree86 Project"
compiled for 4.3.99.12, module version = 1.1.0
ABI class: XFree86 Video Driver, version 0.7
(II) Loading sub module "ramdac"
(II) LoadModule: "ramdac"
(II) Loading /usr/X11R6/lib/modules/libramdac.a
(II) Module ramdac: vendor="The XFree86 Project"
compiled for 4.3.99.12, module version = 0.1.0
ABI class: XFree86 Video Driver, version 0.7
(II) do I need RAC? No, I don't.
(II) resource ranges after preInit:
......................................................................
(II) Loading sub module "int10"
(II) LoadModule: "int10"
(II) Reloading /usr/X11R6/lib/modules/linux/libint10.a
(II) SAVAGE(0): initializing int10
(II) SAVAGE(0): Primary V_BIOS segment is: 0xc000
(II) SAVAGE(0): VESA BIOS detected
(II) SAVAGE(0): VESA VBE Version 3.0
(II) SAVAGE(0): VESA VBE Total Mem: 31680 kB
(II) SAVAGE(0): VESA VBE OEM: S3 Graphics ProSavage DDR Family BIOS
(II) SAVAGE(0): VESA VBE OEM Software Rev: 2.0
(II) SAVAGE(0): VESA VBE OEM Vendor: S3 Garphics Incorporated.
(II) SAVAGE(0): VESA VBE OEM Product: VBE 3.0
(II) SAVAGE(0): VESA VBE OEM Product Rev: Rev 0.0
(--) SAVAGE(0): mapping framebuffer @ 0x90000000 with size 0x2000000
(==) SAVAGE(0): Write-combining range (0x90000000,0x2000000)
(II) SAVAGE(0): Splitting WC range: base: 0x92000000, size: 0x5000000
(II) SAVAGE(0): Splitting WC range: base: 0x94000000, size: 0x3000000
(==) SAVAGE(0): Write-combining range (0x96000000,0x1000000)
(==) SAVAGE(0): Write-combining range (0x94000000,0x3000000)
(==) SAVAGE(0): Write-combining range (0x92000000,0x5000000)
(II) SAVAGE(0): map aperture:0x423a9000
(--) SAVAGE(0): Chose mode 117 at 75Hz.
(II) SAVAGE(0): 4740 kB of Videoram needed for 3D; 32768 kB of Videoram available
(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 -1, (No such device)
drmOpenDevice: open result is -1, (No such device)
drmOpenDevice: Open failed
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
drmOpenByBusid: Searching for BusID pci:0000:01:00.0
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 7, (OK)
drmOpenByBusid: drmOpenMinor returns 7
drmOpenByBusid: drmGetBusid reports pci:0000:01:00.0
(II) SAVAGE(0): [drm] loaded kernel module for "savage" driver
(II) SAVAGE(0): [drm] DRM interface version 1.2
(II) SAVAGE(0): [drm] created "savage" driver at busid "pci:0000:01:00.0"
(II) SAVAGE(0): [drm] added 8192 byte SAREA at 0xce8a6000
(II) SAVAGE(0): [drm] mapped SAREA 0xce8a6000 to 0x473a9000
(II) SAVAGE(0): [drm] framebuffer handle = 0x90000000
(II) SAVAGE(0): [drm] added 1 reserved context for kernel
(II) SAVAGE(0): [agp] Mode 0x1f000201 [AGP 0x1106/0x3156; Card 0x5333/0x8d04]
(II) SAVAGE(0): [agp] 16384 kB allocated with handle 0x00000001
(II) SAVAGE(0): [agp] agpTextures microcode handle = 0xa0000000
(II) SAVAGE(0): [agp] agpTextures mapped at 0x00000000
(II) SAVAGE(0): [drm] aperture handle = 0x92000000
(II) SAVAGE(0): [drm] Status handle = 0xce8ac000
(II) SAVAGE(0): [agp] Status page mapped at 0x473ab000
(II) SAVAGE(0): [dri] visual configs initialized
(**) SAVAGE(0): DRI is enabled
(II) SAVAGE(0): virtualX:1024,virtualY:768
(II) SAVAGE(0): bpp:16,tiledwidthBytes:2048,tiledBufferSize:1572864
(II) SAVAGE(0): bpp:16,widthBytes:2048,BufferSize:1572864
(II) SAVAGE(0): videoRambytes:0x02000000
(II) SAVAGE(0): textureSize:0x0195f000
(II) SAVAGE(0): textureSize:0x0195f000
(II) SAVAGE(0): textureOffset:0x00680000
(II) SAVAGE(0): depthOffset:0x00500000,depthPitch:2048
(II) SAVAGE(0): backOffset:0x00380000,backPitch:2048
(II) SAVAGE(0): Memory manager initialized to (0,0) (1024,1791)
(II) SAVAGE(0): Largest offscreen area available: 1024 x 1023
(II) SAVAGE(0): Reserved back buffer at offset 0x380000
(II) SAVAGE(0): Reserved depth buffer at offset 0x500000
(II) SAVAGE(0): Reserved 25980 kb for textures at offset 0x680000
(II) SAVAGE(0): Using XFree86 Acceleration Architecture (XAA)
Screen to screen bit blits
Solid filled rectangles
8x8 mono pattern filled rectangles
Indirect CPU to Screen color expansion
Solid Lines
Image Writes
Offscreen Pixmaps
Setting up tile and stipple cache:
28 128x128 slots
7 256x256 slots
(==) SAVAGE(0): Backing store disabled
(**) Option "dpms"
(**) SAVAGE(0): DPMS enabled
(II) SAVAGE(0): X context handle = 0x00000001
(II) SAVAGE(0): [drm] installed DRM signal handler
(II) SAVAGE(0): [DRI] installation complete
(II) SAVAGE(0): [junkers]pSAVAGEDRIServer:
(II) SAVAGE(0): [junkers] reserved_map_agpstart:0x00000000
(II) SAVAGE(0): [junkers] reserved_map_idx:0x00000000
(II) SAVAGE(0): [junkers] sarea_priv_offset:0x00000000
(II) SAVAGE(0): [junkers] chipset:0x00000000
(II) SAVAGE(0): [junkers] sgram:0x00000000
(II) SAVAGE(0): [junkers] frontbufferSize:0x00180000
(II) SAVAGE(0): [junkers] frontOffset:0x00000000
.............................
(II) SAVAGE(0): [junkers] sarea_priv_offset:0x00000898
(II) SAVAGE(0): Direct rendering enabled
(**) SAVAGE(0): XvMC is enabled
(==) RandR enabled
.....................................................
(II) Configured Mouse: ps2EnableDataReporting: succeeded
Warning: font renderer for ".pcf" already registered at priority 0
Warning: font renderer for ".pcf.Z" already registered at priority 0
Warning: font renderer for ".pcf.gz" already registered at priority 0
Warning: font renderer for ".snf" already registered at priority 0
Warning: font renderer for ".snf.Z" already registered at priority 0
Warning: font renderer for ".snf.gz" already registered at priority 0
Warning: font renderer for ".bdf" already registered at priority 0
Warning: font renderer for ".bdf.Z" already registered at priority 0
Warning: font renderer for ".bdf.gz" already registered at priority 0
Warning: font renderer for ".pmf" already registered at priority 0
SetClientVersion: 0 7
...........................................
(--) SAVAGE(0): Chose mode 114 at 60Hz.
SwitchToMode - Succeeded
GetModeLine - scrn: 0 clock: 36000
GetModeLine - hdsp: 800 hbeg: 824 hend: 896 httl: 1024
vdsp: 600 vbeg: 601 vend: 603 vttl: 625 flags: 5
GetModeLine - scrn: 0 clock: 36000
GetModeLine - hdsp: 800 hbeg: 824 hend: 896 httl: 1024
vdsp: 600 vbeg: 601 vend: 603 vttl: 625 flags: 5
SwitchToMode - scrn: 0 clock: 78800
hdsp: 1024 hbeg: 1040 hend: 1136 httl: 1312
vdsp: 768 vbeg: 769 vend: 772 vttl: 800 flags: 5
Checking against clock: 78800 (78800)
hdsp: 1024 hbeg: 1040 hend: 1136 httl: 1312
vdsp: 768 vbeg: 769 vend: 772 vttl: 800 flags: 5
(--) SAVAGE(0): Chose mode 117 at 75Hz.
SwitchToMode - Succeeded
GetModeLine - scrn: 0 clock: 78800
.........................
Checking against clock: 36000 (36000)
hdsp: 800 hbeg: 824 hend: 896 httl: 1024
vdsp: 600 vbeg: 601 vend: 603 vttl: 625 flags: 5
(--) SAVAGE(0): Chose mode 114 at 60Hz.
SwitchToMode - Succeeded
GetModeLine - scrn: 0 clock: 36000
GetModeLine - hdsp: 800 hbeg: 824 hend: 896 httl: 1024
vdsp: 600 vbeg: 601 vend: 603 vttl: 625 flags: 5
GetModeLine - scrn: 0 clock: 36000
GetModeLine - hdsp: 800 hbeg: 824 hend: 896 httl: 1024
vdsp: 600 vbeg: 601 vend: 603 vttl: 625 flags: 5
SwitchToMode - scrn: 0 clock: 78800
hdsp: 1024 hbeg: 1040 hend: 1136 httl: 1312
vdsp: 768 vbeg: 769 vend: 772 vttl: 800 flags: 5
Checking against clock: 78800 (78800)
hdsp: 1024 hbeg: 1040 hend: 1136 httl: 1312
vdsp: 768 vbeg: 769 vend: 772 vttl: 800 flags: 5
(--) SAVAGE(0): Chose mode 117 at 75Hz.
SwitchToMode - Succeeded
GetModeLine - scrn: 0 clock: 78800
..................................................................
(--) SAVAGE(0): Chose mode 114 at 60Hz.
SwitchToMode - Succeeded
GetModeLine - scrn: 0 clock: 36000
GetModeLine - hdsp: 800 hbeg: 824 hend: 896 httl: 1024
vdsp: 600 vbeg: 601 vend: 603 vttl: 625 flags: 5
GetModeLine - scrn: 0 clock: 36000
GetModeLine - hdsp: 800 hbeg: 824 hend: 896 httl: 1024
vdsp: 600 vbeg: 601 vend: 603 vttl: 625 flags: 5
SwitchToMode - scrn: 0 clock: 78800
hdsp: 1024 hbeg: 1040 hend: 1136 httl: 1312
vdsp: 768 vbeg: 769 vend: 772 vttl: 800 flags: 5
Checking against clock: 78800 (78800)
hdsp: 1024 hbeg: 1040 hend: 1136 httl: 1312
vdsp: 768 vbeg: 769 vend: 772 vttl: 800 flags: 5
(--) SAVAGE(0): Chose mode 117 at 75Hz.
SwitchToMode - Succeeded


Sorry for the length of the text. Hope you'll be able to give me pieces of advices. Thanks.

fransemail 05-08-2004 09:39 PM

check if kernel dri is enabled
 
hello! First of all check if kernel dri module is enabled:

cat /proc/dri/0/name

if your kernel doesn't have this feature, you cannot use dri module! If you have this module ( and output of 'cat' is like 'via 0xe200 PCI:1:0:0 ), under X see the output of glxinfo ( use a virtual terminal like xterm and type 'glxinfo | less' ) and check for direct rendering. What are your distro? However check your OpenGL and update it if necessary. Post results.

titetanium 05-09-2004 10:48 AM

I went and compiled the savage drivers like you said, and it compiled without errors. Copied the drivers to /lib/modules/linuxversion/kernel/drivers/char/drm directory and then ran depmod -a. Result was unresolved symbol errors with the drm modules. The new XF86 server was awesome! It made my mouse run like as if I was running 2.6............., gee whiz fast! Glinfo shows dri as not enabled. How do I sort out the unresolved symbols? Oh and btw, I found the same drm driver in the kernel source and then edited the config.in file to enable me to choose to compile the savage drm driver into the kernel or as a module and then recompiled a new kernel, inserted kernel, rebooted, and then tried to insert the savage module with the same unresolved symbols errors. Grrrrrr, I've been wanting to get the 3d thing going for a long while, and this is frustrating to say the least.

titetanium 05-09-2004 10:37 PM

Nevermind. I hacked and sorted out the unresoved symbols. Now it works! woot!!!!!!!!!!!!!!!!!!!!
Btw, what does woot mean anyway?

janfy_fr 05-10-2004 04:15 AM

$ cat /proc/dri/0/name
savage 0xe200 pci:0000:01:00.0

$ glxinfo | more
name of display: :0.0
display: :0 screen: 0
direct rendering: No
server glx vendor string: Brian Paul
server glx version string: 1.4 Mesa 5.0

I don't know how to check if it is the latest version or not, but I downloaded it via CVS two weeks ago...

/bin/bash 05-10-2004 04:46 AM

There is another VIA\S3 DRI HOWTO here. The sections on setting up the XF86Config-4 file is a little different. He has you put load "GLcore", and the Device section is more detailed also.

janfy_fr 05-10-2004 03:11 PM

DRI operates on my laptop! Yes!!
Thank you /bin/bash and Fransemail! I think I would have given up without your pieces of advice!

Things have gone better when I did this :
$cd /usr/src/xc/xc/programs/Xserver/hw/xfree86/drivers/savage
$make install
$ldconfig
$sync
$insmod

I restarted (without conviction), and glxinfo last telled me "Direct Rendering : yes"!
glxgears now reaches 500 fps instead of 240 before!

Thanks again. Now you can say me : Have fun! ;o)

alex-gurgel 05-12-2004 04:54 PM

Hi ! Recently i've found this post and try to make this in my SuSE 9.0 linux.

Well, I'm having this error:
Code:

make[5]: Leaving directory /build/xc/xc/programs/Xserver/hw/xfree86/drivers'
make[4]: *** [clean] Error 2
make[4]: Leaving directory `/build/xc/xc/programs/Xserver/hw/xfree86'
make[3]: *** [clean] Error 2
make[3]: Leaving directory `/build/xc/xc/programs/Xserver'
make[2]: *** [clean] Error 2
make[2]: Leaving directory `/build/xc/xc/programs'
make[1]: *** [clean] Error 2
make[1]: Leaving directory `/build/xc/xc'
make: *** [World] Error 2

I'm trying to compile in my own user, not in root. What I can do to resolve this ? Maybe logging root?


P.S.: Sorry about my english....

alex-gurgel 05-13-2004 01:34 PM

I forgot to say something? The folder /build/xc.... is in my home directory.

Help, please !!!!!

dacosta 05-16-2004 06:44 PM

*sighs* *frustration*

Hi!

Can anyone tell me how to get rid of this
"depmod: *** Unresolved symbols in /lib/modules... " message :-/ What did I wrong? Any suggestions?


Bye

Luis

P.S: I use Fedora Core with a 2.4.22 Kernel.

BruceCadieux 05-25-2004 06:51 AM

After trying everything listed here, it wouldn't work.

The modules were not recognized and wouldn't load.

agpgart, via_agp, and savage.ko wouldn't load. I read through the instructions at http://linux-sxs.org/guis/DRIS3.html

I realized loading those modules before x started may work and it was.

I added the following lines to the end of my /etc/init.d/rc file
modprobe via_agp

modprobe agpgart

/sbin/insmod /lib/modules/"$(uname -r)"/kernel/drivers/char/drm/savage.ko

I rebooted and after starting x glxinfo reported direct rendering was enabled, and glxgears was showing better then double the speed I was getting before.

Quake3 plays very well. ;)

/bin/bash 07-07-2004 09:33 PM

Here is a quicker method I discovered. I used this method when I installed Suse-9.1, but it should work for most distros. The default Suse kernel doesn't have DRI turned on so I had to build a new kernel and enable DRI. Even though there is no S3/VIA option in the kernel config you still must turn on DRI in the kernel (it's below /dev/agpgart in the Device drivers/Character devices section.) I did not stress this point in my first post and this may be causing some people some problems. So as long as you have your kernel sources properly installed(see post #1) and you enabled DRI in the kernel you should be OK. This should also work on other Graphics cards besides the S3/VIA Savage.

Here is the Step-by-step guide.
  • Get a snapshot from http://www.freedesktop.org/dri/snapshots/
    NOTE: You must get a common- package as well as the savage snapshot.
  • Un-pack both packages in the same directory, this will create a directory dripkg with all the necessary files.
    tar xjvf common-20040628-linux.i386.tar.bz2
    tar xjvf savage-20040628-linux.i386.tar.bz2
  • Go into dripkg directory and run the script install.sh. NOTE: You must be root to run the script.
    cd dripkg
    sudo ./install.sh
  • If you had no errors in the above step then proceed, otherwise you need to find out what the problem is.
  • Now verify you have your /etc/X11/XF86Config file setup as mentioned in the first post.
  • Check that the agpgart and via_agp modules are loaded. If not you may need to edit /etc/modprobe.conf.
  • If you are in X then exit and restart and you should have DRI running.

I have used this method several times since I discovered it. It saves me a lot of time and the snapshots are kept up-to-date so you always get the latest updates to the DRI tree.

Once again I hope this helps someone.

[EDIT] According to azeemarif you should un-tar the common package first then the savage package. Also if you have an older XFree-server you will need to build or get a newer version.

You should also check out the DRI Open Source Project Documentation. They will have the latest information.

Because you are using a snapshot of the savage dri sources there may be bugs which make them fail. If you have problems try downloading an older snapshot or a newer one as they come out.

<Edit> Fixed broken link.

shep fc3 08-14-2004 10:39 PM

I know this is kinda an old thread, but I found it pretty helpful. However I am not able to get it installed and running properly. I have tried 3 different methods and none have worked. When I try the one from the first post, and also the method posted at http://www.linux-sxs.org/guis/DRIS3.html I get the following error:

accessx.c:532: error: `XtNstate' undeclared (first use in this function)
accessx.c:532: warning: left-hand operand of comma expression has no effect
make[6]: *** [accessx.o] Error 1

Then when I try the method in the last post (which is much faster), I get this error:

Compiling...
ERROR: Kernel modules did not compile

The DRI drivers can not be installed without the latest kernel modules.
Installation will be aborted. See the dri.log file for information on
what went wrong.

I just upgraded to kernel 2.6.7, so it should be ok. Any help would be greatly appreciated.

/bin/bash 08-17-2004 04:28 PM

shep

Did you enable enable DRI in your 2.6.7 kernel? I know there is no S3/VIA dri module in the kernel but it seems you still need to turn that option on.

Try this:
Code:

$ grep DRM /usr/src/linux/.config
CONFIG_DRM=y
# CONFIG_DRM_TDFX is not set
# CONFIG_DRM_GAMMA is not set
# CONFIG_DRM_R128 is not set
# CONFIG_DRM_RADEON is not set
# CONFIG_DRM_MGA is not set
# CONFIG_DRM_SIS is not set

If that doesn't help check your dri.log file, and post it here if you think it will help.

shep fc3 08-18-2004 08:11 PM

Yeah, its compiled into the kernel
CONFIG_DRM=y
CONFIG_DRM_TDFX=m
CONFIG_DRM_GAMMA=m
CONFIG_DRM_R128=m
CONFIG_DRM_RADEON=m
CONFIG_DRM_I810=m
CONFIG_DRM_I830=m
CONFIG_DRM_MGA=m
CONFIG_DRM_SIS=m

shep fc3 08-18-2004 08:15 PM

This is all that is in the DRI log
shep@debian-shep:~/dripkg$ cat dri.log
cc -o .o
cc: no input files
make: *** [.o] Error 1

Also, when I tried what janfy_fr suggested, it killed my x windows all together. I had to reinstall it. something about a mismatch version of ABI or something like that.

/bin/bash 08-18-2004 08:42 PM

Humm.. It looks like maybe your snapshot was corrupted. The savage.bz2 file should be about 1.9M and the common.bz2 file is 1.08M. You should create 5 subdirectories and 4 files in the dripkg directory. Maybe you should try starting over.

shep fc3 08-20-2004 07:25 PM

Quote:

Originally posted by /bin/bash
Humm.. It looks like maybe your snapshot was corrupted. The savage.bz2 file should be about 1.9M and the common.bz2 file is 1.08M. You should create 5 subdirectories and 4 files in the dripkg directory. Maybe you should try starting over.
OK, I used a different common and savage package, and it installed ok, but when I restart x I get an error that says:

(II) LoadModule: "savage"
(II) Loading /usr/X11R6/lib/modules/drivers/savage_drv.o
(II) Module savage: vendor="The XFree86 Project"
compiled for 4.3.99.12, module version = 1.1.27
Module class: XFree86 Video Driver
ABI class: XFree86 Video Driver, version 0.7
(EE) module ABI minor version (7) is newer than the server's version (6)
(II) UnloadModule: "savage"
(II) Unloading /usr/X11R6/lib/modules/drivers/savage_drv.o
(EE) Failed to load module "savage" (module requirement mismatch, 0)
(II) LoadModule: "mouse"
(II) Loading /usr/X11R6/lib/modules/input/mouse_drv.o
(II) Module mouse: vendor="The XFree86 Project"
compiled for 4.3.0.1, module version = 1.0.0
Module class: XFree86 XInput Driver
ABI class: XFree86 XInput driver, version 0.4
(EE) No drivers available.

Fatal server error:

What version of XF86 do I need to be running? I'm using 4.3.0.dfsg.1-6 THanks for any help

bobterri 08-24-2004 05:40 PM

I got the same ERROR as shep fc3 did in post #41:

Compiling...
ERROR: Kernel modules did not compile

The DRI drivers can not be installed without the latest kernel modules.
Installation will be aborted. See the dri.log file for information on
what went wrong.

So, I tried $ grep DRM /usr/src/linux/.config and got:

bash: $: command not found

So I $ cat dri.log in dripkg and got:

Makefile:171: *** Cannot find a kernel config file. Stop.

Is this a losing battle?

shep fc3 08-24-2004 08:33 PM

Do you have the kernel Source installed in /usr/src? also type ls -al /usr/src/linux and look for a .config file. If /usr/src is empty then you don't have the kernel source. I think my problem is with the version of Xfree and the savage module version. I don't know what I can fix with it though. I guess I should try to upgrade Xfree

bobterri 08-24-2004 10:08 PM

Yep!

When I type "ls -al /usr/src/linux" I get:

lrwxrwxrwx 1 root root 17 2004-08-19 18:31 /usr/src/linux -> linux-2.6.5-7.104

However, I do not have .config in the /usr/src/linux directory.

shep fc3 08-24-2004 11:36 PM

I would say that you don't have the kernel source installed correctly. When you type ls -al you should get a whole list of files. It is a symlink to your kernel-x.y.z directory, so it should show the same things. Are you just running a default kernel from the distro install? Tell me what happens if you type ls -al in the /usr/src/linux-2.6.5-7.104 directory.


All times are GMT -5. The time now is 01:42 AM.