Can't get DRI working [long]

From: NOSPAM (GENGHIS.KHAN(NOSPAM)_at_terra.es)
Date: 06/28/04


Date: Mon, 28 Jun 2004 13:18:47 GMT


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I use Debian Sarge with 2.6.6 kernel and xfree 4.3. My graphics card is an
Intel Corporation 82810E DC-133 CGC [Chipset
Graphics Controller] wich uses the i810 kernel module.

The output from glxinfo says:

name of display: :0.0
Xlib:  extension "XFree86-DRI" missing on display ":0.0".
display: :0  screen: 0
direct rendering: No
....

I put my XF86Config-4 here
- -----------
Section "Files"
        FontPath "unix/:7100" # local font server
        # if the local font server has problems, we can fall back on these
        FontPath "/usr/lib/X11/fonts/misc"
        FontPath "/usr/lib/X11/fonts/cyrillic"
        FontPath "/usr/lib/X11/fonts/100dpi/:unscaled"
        FontPath "/usr/lib/X11/fonts/75dpi/:unscaled"
        FontPath "/usr/lib/X11/fonts/Type1"
        FontPath "/usr/lib/X11/fonts/Speedo"
        FontPath "/usr/lib/X11/fonts/100dpi"
        FontPath "/usr/lib/X11/fonts/75dpi"
        FontPath "/var/lib/defoma/x-ttcidfont-conf.d/dirs/CID"
        FontPath "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"

EndSection
Section "Module"
        Load "GLcore"
        Load "bitmap"
        Load "dbe"
        Load "ddc"
        Load "dri"
        Load "extmod"
        Load "freetype"
        Load "glx"
        Load "int10"
        Load "record"
        Load "speedo"
        Load "type1"
        Load "vbe"
EndSection
Section "InputDevice"
        Identifier "Generic Keyboard"
        Driver "keyboard"
        Option "CoreKeyboard"
        Option "XkbRules" "xfree86"
        Option "XkbModel" "pc105"
        Option "XkbLayout" "es"
EndSection
Section "InputDevice"
        Identifier "Configured Mouse"
        Driver "mouse"
        Option "CorePointer"
        Option "Device" "/dev/input/mice"
        Option "Protocol" "ImPS/2"
        Option "Emulate3Buttons" "true"
        Option "ZAxisMapping" "4 5"
EndSection
Section "Device"
        Identifier "Intel Corporation 82810E DC-133 CGC [Chipset
Graphics Controller]"
        Driver "i810"
        VideoRam 16384
        Option "XaaNoPixmapCache"
EndSection
Section "Monitor"
        Identifier "BRG:3502"
        VendorName "BRG"
        ModelName "235"
        HorizSync 30-60
        #VertRefresh 50-75
        VertRefresh 70
        Option "DPMS"
EndSection
Section "Screen"
        Identifier "Default Screen"
        Device "Intel Corporation 82810E DC-133 CGC [Chipset
Graphics Controller]"
        Monitor "BRG:3502"
        DefaultDepth 24
        SubSection "Display"
                Depth 1
                Modes "1024x768" "800x600" "640x480"
        EndSubSection
        SubSection "Display"
                Depth 4
                Modes "1024x768" "800x600" "640x480"
        EndSubSection
        SubSection "Display"
                Depth 8
                Modes "1024x768" "800x600" "640x480"
        EndSubSection
        SubSection "Display"
                Depth 15
                Modes "1024x768" "800x600" "640x480"
        EndSubSection
        SubSection "Display"
                Depth 16
                Modes "1024x768" "800x600" "640x480"
        EndSubSection
        SubSection "Display"
                Depth 24
                Modes "1024x768" "800x600" "640x480"
        EndSubSection
EndSection
Section "ServerLayout"
        Identifier "Default Layout"
        Screen "Default Screen"
        InputDevice "Generic Keyboard"
        InputDevice "Configured Mouse"
EndSection
Section "DRI"
        Mode 0666
EndSection
- ----

In the logs of Xfree a strange thing appears
- -------------
(II) I810(0): xf86UnbindGARTMemory: unbind key 0
(II) I810(0): xf86UnbindGARTMemory: unbind key 1
(II) Open APM successful
(==) I810(0): Write-combining range (0xf8000000,0x4000000)
(II) I810(0): vgaHWGetIOBase: hwp->IOBase is 0x03d0, hwp->PIOOffset is
0x0000
(II) I810(0): Setting dot clock to 75.0 MHz [ 0x17 0x6 0x20 ] [ 25 8 2 ]
(II) I810(0): chose watermark 0x22214000: (tab.freq 75.0)
(II) I810(0): xf86BindGARTMemory: bind key 0 at 0x00000000 (pgoffset 0)
(WW) I810(0): xf86AllocateGARTMemory: allocation of 1024 pages failed
        (Cannot allocate memory)
(II) I810(0): No physical memory available for 4194304 bytes of DCACHE
(II) I810(0): xf86BindGARTMemory: bind key 1 at 0x00800000 (pgoffset 2048)
(II) I810(0): Adding 512 scanlines for pixmap caching
(II) I810(0): Allocated Scratch Memory
(**) I810(0): DPMS enabled
(==) I810(0): Direct rendering disabled
(==) RandR enabled
(II) Configured Mouse: ps2EnableDataReporting: succeeded
(II) I810(0): xf86UnbindGARTMemory: unbind key 0
(II) I810(0): xf86UnbindGARTMemory: unbind key 1
(II) Open APM successful
(==) I810(0): Write-combining range (0xf8000000,0x4000000)
(II) I810(0): vgaHWGetIOBase: hwp->IOBase is 0x03d0, hwp->PIOOffset is
0x0000
(II) I810(0): Setting dot clock to 75.0 MHz [ 0x17 0x6 0x20 ] [ 25 8 2 ]
(II) I810(0): chose watermark 0x22214000: (tab.freq 75.0)
(II) I810(0): xf86BindGARTMemory: bind key 0 at 0x00000000 (pgoffset 0)
(WW) I810(0): xf86AllocateGARTMemory: allocation of 1024 pages failed
        (Cannot allocate memory)
(II) I810(0): No physical memory available for 4194304 bytes of DCACHE
(II) I810(0): xf86BindGARTMemory: bind key 1 at 0x00800000 (pgoffset 2048)
(II) I810(0): Adding 512 scanlines for pixmap caching
(II) I810(0): Allocated Scratch Memory
(**) I810(0): DPMS enabled
(==) I810(0): Direct rendering disabled
(==) RandR enabled
- -------------------

It is very strange th line
(II) I810(0): No physical memory available for 4194304 bytes of DCACHE
because I have 320mb RAM.

I have agpgart, intel-apg, intel-mch-agp and i810 at boot time, so I don't
think it's a module problem. This is the part of dmesg concerning this
modules:

Linux agpgart interface v0.100 (c) Dave Jones
agpgart: Detected an Intel i810 E Chipset.
agpgart: Maximum main memory to use for agp memory: 261M
agpgart: AGP aperture is 64M @ 0xf8000000
[drm] Initialized i810 1.4.0 20030605 on minor 0

I don't know what can be happening. With Mandrake 9.1 (kernel 2.4) all
worked fine, and I had a very similar XF86Config-4. I don't have a 2.4
kernel to test with, but I don't think it's a kernel issue beacause with
2.6.3 it also happens. Both kernels are debian precompiled kernels.
 
- --
Linux registered user #327978 since summer 2003

GnuPG key-ID: 0xBAB469F9
GnuPG fingerprint: 4DA5 9B61 53B3 5A96 5AC9 3F3A 10ED 34AF BAB4 69F9

AOL: estevezdaniel
ICQ: 217770540
Jabber: danielestevez@greendragon.homelinux.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFA4BruEO00r7q0afkRAuUWAKCG4TKGeq44Un0TLtcatsIIMjFAEgCfVyhX
V4tmPxowMuUn9X66pfgk0uE=
=iPrZ
-----END PGP SIGNATURE-----


Quantcast