Hi all, I'm experiencing some problem with my Savage2000(Viper II) card and DRI. Just for the records, I followed all recomendation I could find in and out of this list.
First of all I recompiled my kernel(vanilla 2.4.24, since fedora/redhat kernel-source has some incompatibilities) without DRM, since DRM will be compiled and installed by DRI CVS(recommended by http://dri.sourceforge.net/doc/DRIcompile.html). Then I made the necessary changes to DRI to recognize the SAVAGE2000 card(as posted on this list: xc/xc/programs/Xserver/hw/xfree86/drivers/savage/savage_driver.c and xc/xc/programs/Xserver/hw/xfree86/os-support/linux/drm/kernel/savage.h) and I could get DRI to compile without errors. Then I run "make install" and modified "modules.conf" to load agpgart and the savage kernel driver on XFree86 probing. Restarted X and it worked perfectly. The relevant messages on XFree86.log.0 are: 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.4.24savage i686 [ELF] Current Operating System: Linux thor.home 2.4.24savage #3 Sex Fev 13 13:23:47 BRST 2004 i686 Build Date: 14 February 2004 Changelog Date: 10 September 2003 ... (**) Option "XkbRules" "xfree86" (**) XKB: rules: "xfree86" (**) Option "XkbModel" "abnt2" (**) XKB: model: "abnt2" (**) Option "XkbLayout" "br" (**) XKB: layout: "br" (==) Keyboard: CustomKeycode disabled ... (II) LoadModule: "fbdevhw" (II) Loading /usr/X11R6/lib/modules/linux/libfbdevhw.a (II) Module fbdevhw: vendor="The XFree86 Project" compiled for 4.3.99.12, module version = 0.0.2 ABI class: XFree86 Video Driver, version 0.7 (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) 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) Loading extension GLX (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) 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: "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) 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 (--) Assigning device section with no busID to primary device (--) Chipset Savage2000 found ... (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 24, (--) framebuffer bpp 32 (==) SAVAGE(0): RGB weight 888 (==) SAVAGE(0): Default visual is TrueColor (II) SAVAGE(0): vgaHWGetIOBase: hwp->IOBase is 0x03d0, hwp->PIOOffset is 0x0000 (==) SAVAGE(0): Using AGP 4x mode (==) SAVAGE(0): Using HW cursor (==) SAVAGE(0): Using video BIOS to set modes (II) Loading sub module "int10" (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) SAVAGE(0): Primary V_BIOS segment is: 0xc000 (II) Loading sub module "vbe" (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) SAVAGE(0): VESA BIOS detected (II) SAVAGE(0): VESA VBE Version 3.0 (II) SAVAGE(0): VESA VBE Total Mem: 32768 kB (II) SAVAGE(0): VESA VBE OEM: S3 Incorporated. Savage2000 (II) SAVAGE(0): VESA VBE OEM Software Rev: 2.0 (II) SAVAGE(0): VESA VBE OEM Vendor: S3 Incorporated. (II) SAVAGE(0): VESA VBE OEM Product: Savage2000 (II) SAVAGE(0): VESA VBE OEM Product Rev: Rev C (--) SAVAGE(0): Chip: id 9102, "Savage2000" (--) SAVAGE(0): Engine: "Savage2000" (--) SAVAGE(0): mapping MMIO @ 0xf3000000 with size 0x80000 (==) SAVAGE(0): Using gamma correction (1.0, 1.0, 1.0) (--) SAVAGE(0): probed videoram: 32768k ... (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: 32768 kB (II) SAVAGE(0): VESA VBE OEM: S3 Incorporated. Savage2000 (II) SAVAGE(0): VESA VBE OEM Software Rev: 2.0 (II) SAVAGE(0): VESA VBE OEM Vendor: S3 Incorporated. (II) SAVAGE(0): VESA VBE OEM Product: Savage2000 (II) SAVAGE(0): VESA VBE OEM Product Rev: Rev C (--) SAVAGE(0): mapping framebuffer @ 0xf4000000 with size 0x2000000 (==) SAVAGE(0): Write-combining range (0xf4000000,0x2000000) (II) SAVAGE(0): Splitting WC range: base: 0xf6000000, size: 0x5000000 (II) SAVAGE(0): Splitting WC range: base: 0xf8000000, size: 0x3000000 (==) SAVAGE(0): Write-combining range (0xfa000000,0x1000000) (==) SAVAGE(0): Write-combining range (0xf8000000,0x3000000) (==) SAVAGE(0): Write-combining range (0xf6000000,0x5000000) (II) SAVAGE(0): map aperture:0x423ac000 (--) SAVAGE(0): Chose mode 118 at 85Hz. (II) SAVAGE(0): [drm] bpp: 32 depth: 24 (II) SAVAGE(0): [drm] Sarea 2200+872: 3072 drmOpenDevice: node name is /dev/dri/card0 drmOpenDevice: open result is 6, (OK) drmOpenDevice: node name is /dev/dri/card0 drmOpenDevice: open result is 6, (OK) drmOpenByBusid: Searching for BusID pci:0000:01:00.0 drmOpenDevice: node name is /dev/dri/card0 drmOpenDevice: open result is 6, (OK) drmOpenByBusid: drmOpenMinor returns 6 drmOpenByBusid: drmGetBusid reports pci:0000:01:00.0 (II) SAVAGE(0): [drm] DRM interface version 1.1 (II) SAVAGE(0): [drm] created "savage" driver at busid "pci:0000:01:00.0" (II) SAVAGE(0): [drm] added 8192 byte SAREA at 0xd08da000 (II) SAVAGE(0): [drm] mapped SAREA 0xd08da000 to 0x40016000 (II) SAVAGE(0): [drm] framebuffer handle = 0xf4000000 (II) SAVAGE(0): [drm] added 1 reserved context for kernel (II) SAVAGE(0): [agp] Mode 0x1f000207 [AGP 0x8086/0x1130; Card 0x5333/0x9102] (II) SAVAGE(0): [agp] 16384 kB allocated with handle 0x00000001 (II) SAVAGE(0): [agp] agpTextures microcode handle = 0xf8000000 (II) SAVAGE(0): [agp] agpTextures mapped at 0x00000000 (II) SAVAGE(0): [drm] aperture handle = 0xf6000000 (II) SAVAGE(0): [drm] Status handle = 0xd0967000 (II) SAVAGE(0): [agp] Status page mapped at 0x40018000 (II) SAVAGE(0): [dri] visual configs initialized (**) SAVAGE(0): DRI is enabled (II) SAVAGE(0): virtualX:1024,virtualY:768 (II) SAVAGE(0): bpp:32,tiledwidthBytes:4096,tiledBufferSize:3145728 (II) SAVAGE(0): bpp:32,widthBytes:4096,BufferSize:3145728 (II) SAVAGE(0): videoRambytes:0x02000000 (II) SAVAGE(0): textureSize:0x014df000 (II) SAVAGE(0): textureSize:0x014df000 (II) SAVAGE(0): textureOffset:0x00b00000 (II) SAVAGE(0): depthOffset:0x00800000,depthPicth:4096 (II) SAVAGE(0): backOffset:0x00500000,backPicth:4096 (II) SAVAGE(0): Memory manager initialized to (0,0) (1024,1279) (II) SAVAGE(0): Largest offscreen area available: 1024 x 511 (II) SAVAGE(0): Reserved back buffer at offset 0x500000 (II) SAVAGE(0): Reserved depth buffer at offset 0x800000 (II) SAVAGE(0): Reserved 21372 kb for textures at offset 0xb00000 (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: 24 128x128 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:0x00300000 (II) SAVAGE(0): [junkers] frontOffset:0x00000000 (II) SAVAGE(0): [junkers] frontPitch:0x00001000 (II) SAVAGE(0): [junkers] backbufferSize:0x00300000 (II) SAVAGE(0): [junkers] backOffset:0x00500000 (II) SAVAGE(0): [junkers] backPitch:0x00001000 (II) SAVAGE(0): [junkers] depthbufferSize:0x00300000 (II) SAVAGE(0): [junkers] depthOffset:0x00800000 (II) SAVAGE(0): [junkers] depthPitch:0x00001000 (II) SAVAGE(0): [junkers] textureOffset:0x00b00000 (II) SAVAGE(0): [junkers] textureSize:0x014df000 (II) SAVAGE(0): [junkers] textureSize:0x014df000 (II) SAVAGE(0): [junkers] logTextureGranularity:0x00000000 (II) SAVAGE(0): [junkers] agp:handle:0x00000001 (II) SAVAGE(0): [junkers] agp:offset:0x01000000 (II) SAVAGE(0): [junkers] agp:size:0x01000000 (II) SAVAGE(0): [junkers] agp:map:0x00000000 (II) SAVAGE(0): [junkers] registers:handle:0xf3000000 (II) SAVAGE(0): [junkers] registers:offset:0x00000000 (II) SAVAGE(0): [junkers] registers:size:0x00080000 (II) SAVAGE(0): [junkers] registers:map:0x00000000 (II) SAVAGE(0): [junkers] status:handle:0xd0967000 (II) SAVAGE(0): [junkers] status:offset:0x00000000 (II) SAVAGE(0): [junkers] status:size:0x00002000 (II) SAVAGE(0): [junkers] status:map:0x40018000 (II) SAVAGE(0): [junkers] agpTextures:handle:0xf8000000 (II) SAVAGE(0): [junkers] agpTextures:offset:0x00000000 (II) SAVAGE(0): [junkers] agpTextures:size:0x01000000 (II) SAVAGE(0): [junkers] apgTextures:map:0x00000000 (II) SAVAGE(0): [junkers] logAgpTextureGranularity:0x0000000a (II) SAVAGE(0): [junkers]pSAVAGEDRI: (II) SAVAGE(0): [junkers] chipset:0x00000008 (II) SAVAGE(0): [junkers] width:0x00000400 (II) SAVAGE(0): [junkers] height:0x00000300 (II) SAVAGE(0): [junkers] mem:0x02000000 (II) SAVAGE(0): [junkers] cpp:4 (II) SAVAGE(0): [junkers] zpp:4 (II) SAVAGE(0): [junkers] agpMode:4 (II) SAVAGE(0): [junkers] frontbuffer:0xf4000000 (II) SAVAGE(0): [junkers] frontbufferSize:0x00300000 (II) SAVAGE(0): [junkers] frontOffset:0x00000000 (II) SAVAGE(0): [junkers] frontPitch:0x00001000 (II) SAVAGE(0): [junkers] frontBitmapDesc:0x10200400 (II) SAVAGE(0): [junkers] backbuffer:0xf4500000 (II) SAVAGE(0): [junkers] backbufferSize:0x00300000 (II) SAVAGE(0): [junkers] backOffset:0x00500000 (II) SAVAGE(0): [junkers] backPitch:0x00001000 (II) SAVAGE(0): [junkers] backBitmapDesc:0x13200400 (II) SAVAGE(0): [junkers] depthbuffer:0xf4800000 (II) SAVAGE(0): [junkers] depthbufferSize:0x00300000 (II) SAVAGE(0): [junkers] depthOffset:0x00800000 (II) SAVAGE(0): [junkers] depthPitch:0x00001000 (II) SAVAGE(0): [junkers] depthBitmapDesc:0x13200400 (II) SAVAGE(0): [junkers] textures:0xf4b00000 (II) SAVAGE(0): [junkers] textureOffset:0x00b00000 (II) SAVAGE(0): [junkers] textureSize:0x01400000 (II) SAVAGE(0): [junkers] logTextureGranularity:0x00000015 (II) SAVAGE(0): [junkers] agpBufferOffset:0x00000000 (II) SAVAGE(0): [junkers] agpTextureOffset:0x00000000 (II) SAVAGE(0): [junkers] agpTextureSize:0x00000000 (II) SAVAGE(0): [junkers] logAgpTextureGranularity:0x00000014 (II) SAVAGE(0): [junkers] agpTextures:handle:0xf8000000 (II) SAVAGE(0): [junkers] agpTextures:offset:0x00000000 (II) SAVAGE(0): [junkers] agpTextures:size:0x01000000 (II) SAVAGE(0): [junkers] apgTextures:map:0x00000000 (II) SAVAGE(0): [junkers] registers:handle:0xf3000000 (II) SAVAGE(0): [junkers] registers:offset:0x00000000 (II) SAVAGE(0): [junkers] registers:size:0x00080000 (II) SAVAGE(0): [junkers] registers:map:0x00000000 (II) SAVAGE(0): [junkers] aperture:handle:0xf6000000 (II) SAVAGE(0): [junkers] aperture:offset:0x00000000 (II) SAVAGE(0): [junkers] aperture:size:0x05000000 (II) SAVAGE(0): [junkers] aperture:map:0x00000000 (II) SAVAGE(0): [junkers] aperturePitch:0x00002000 (II) SAVAGE(0): [junkers] BCIcmdBuf:handle:0xf3010000 (II) SAVAGE(0): [junkers] BCIcmdBuf:offset:0x00000000 (II) SAVAGE(0): [junkers] BCIcmdBuf:size:0x00020000 (II) SAVAGE(0): [junkers] BCIcmdBuf:map:0x00010000 (II) SAVAGE(0): [junkers] status:handle:0xd0967000 (II) SAVAGE(0): [junkers] status:offset:0x00000000 (II) SAVAGE(0): [junkers] status:size:0x00002000 (II) SAVAGE(0): [junkers] status:map:0x00000000 (II) SAVAGE(0): [junkers] sarea_priv_offset:0x00000898 (II) SAVAGE(0): Direct rendering enabled (==) RandR enabled ... I tried to run glxinfo but it reports that direct rendering is off. So I "straced" it and found out that it is using the distribution's libGL and not the new compiled one, and this leads to an unresolved symbol. So It's the "tls" thing. As posted on this list I renamed the directory tls to tls_old, forcing glxinfo(for example) to use the /usr/X11R6/lib/libGL.so(DRI) instead of /usr/X11R6/lib/tls/libGL.so(distribution). But now glxinfo and any other OpenGL application hangs the X server(and I have to hard-reset the machine). Is there any problem doing "make install" over a 4.3.0 XFree86? I noticed that the libGL from the Fedora Core distribution has 260K and the compiled one has 3Mb! Is this correct? Is this problem about libGL or savage_dri ? BTW, My "?/" keyboard key stopped responding after the installation(It worked with the old 4.3.0 XFree86). I tried every keyboard layout but the key is useless. In the text-only console(Ctrl-Alt-Fx) the key works fine. All other keys are mapped correctly as it was with 4.3.0. My OS: Fedora Core-1 Kernel: Vanilla 2.4.24 (compiled without DRM) Best Regards, Cristiano Duarte --- Acabe com aquelas janelinhas que pulam na sua tela. AntiPop-up UOL - É grátis! http://antipopup.uol.com.br ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id56&alloc_id438&op=click -- _______________________________________________ Dri-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dri-devel