HW accel on R128/Xorg 6.7/FBSD-5.3R (was: the best graphicscard for FreeBSD)

From: Godwin Stewart (gstewart_at_bonivet.net)
Date: 12/04/04

  • Next message: Daniel O'Connor: "Re: HW accel on R128/Xorg 6.7/FBSD-5.3R (was: the best graphicscard for FreeBSD)"
    Date: Sat, 4 Dec 2004 12:37:35 +0100
    To: freebsd-stable@freebsd.org
    
    
    

    On Sat, 4 Dec 2004 11:10:15 +0100, Godwin Stewart <gstewart@bonivet.net>
    wrote:

    > You're probably on to something there. I *do* get the "Direct rendering
    > enabled" message on the Linux setup, although the logs also say that
    > there's a problem with AGP and that it's falling back to PCI mode.

    That was fixed painlessly.

    Moving on...

    > Anyway, I'm going to google around for hints and see what I can find. It's
    > probably a question of adding something to kernconf and rebuilding a
    > kernel.

    Looked at the handbook which prompted me to add agp_load="YES" to
    /boot/loader.conf. Okay, mea culpa for not thinking of the obvious.

    Everything now points to Hardware acceleration being active:

    $ dmesg | grep -i agp
    agp0: <Intel 82443BX (440 BX) host to PCI bridge> mem 0xf4000000-0xf7ffffff at device 0.0 on pci0
    drm0: <ATI Rage 128 Pro Ultra TF (AGP)> port 0x9000-0x90ff mem 0xf0200000-0xf0203fff,0xf8000000-0xfbffffff irq 11 at device0.0 on pci1
    info: [drm] AGP at 0xf4000000 64MB

    Snippets from /var/log/Xorg.0.log :

    (II) LoadModule: "glx"
    (II) Loading /usr/X11R6/lib/modules/extensions/libglx.a
    (II) Module glx: vendor="X.Org Foundation"
            compiled for 6.7.0, module version = 1.0.0
            ABI class: X.Org 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="X.Org Foundation"
            compiled for 6.7.0, module version = 1.0.0
            ABI class: X.Org Server Extension, version 0.2
    (II) Loading extension GLX
    (II) LoadModule: "dri"
    (II) Loading /usr/X11R6/lib/modules/extensions/libdri.a
    (II) Module dri: vendor="X.Org Foundation"
            compiled for 6.7.0, module version = 1.0.0
            ABI class: X.Org Server Extension, version 0.2
    (II) Loading sub module "drm"
    (II) LoadModule: "drm"
    (II) Loading /usr/X11R6/lib/modules/freebsd/libdrm.a
    (II) Module drm: vendor="X.Org Foundation"
            compiled for 6.7.0, module version = 1.0.0
            ABI class: X.Org Server Extension, version 0.2
    (II) Loading extension XFree86-DRI
    (II) LoadModule: "r128"
    (II) Loading /usr/X11R6/lib/modules/drivers/r128_drv.o
    (II) Module r128: vendor="X.Org Foundation"
            compiled for 6.7.0, module version = 4.0.1
            Module class: X.Org Video Driver
            ABI class: X.Org Video Driver, version 0.7
    (II) LoadModule: "ati"
    (II) Loading /usr/X11R6/lib/modules/drivers/ati_drv.o
    (II) Module ati: vendor="X.Org Foundation"
            compiled for 6.7.0, module version = 6.5.6
            Module class: X.Org Video Driver
            ABI class: X.Org Video Driver, version 0.7

    (--) Chipset ATI Rage 128 Pro ULTRA TF (AGP) found
    (II) Loading sub module "r128"
    (II) LoadModule: "r128"
    (II) Reloading /usr/X11R6/lib/modules/drivers/r128_drv.o

    (**) R128(0): Option "AGPMode" "2"

    drmOpenDevice: minor is 0
    drmOpenDevice: node name is /dev/dri/card0
    drmOpenDevice: open result is 8, (OK)
    drmOpenDevice: minor is 0
    drmOpenDevice: node name is /dev/dri/card0
    drmOpenDevice: open result is 8, (OK)
    drmOpenDevice: minor is 0
    drmOpenDevice: node name is /dev/dri/card0
    drmOpenDevice: open result is 8, (OK)
    drmGetBusid returned ''

    (II) R128(0): [drm] created "r128" driver at busid "PCI:1:0:0"
    (II) R128(0): [drm] added 8192 byte SAREA at 0xc17f0000
    (II) R128(0): [drm] mapped SAREA 0xc17f0000 to 0x2834b000
    (II) R128(0): [drm] framebuffer handle = 0xf8000000
    (II) R128(0): [drm] added 1 reserved context for kernel
    (II) R128(0): [agp] Mode 0x1f000203 [AGP 0x0000/0x0000; Card 0x1002/0x5446]
    (II) R128(0): [agp] 8192 kB allocated with handle 0xc14e1a80
    (II) R128(0): [agp] ring handle = 0xf4000000
    (II) R128(0): [agp] Ring mapped at 0x2a400000
    (II) R128(0): [agp] ring read ptr handle = 0xf4101000
    (II) R128(0): [agp] Ring read ptr mapped at 0x282d3000
    (II) R128(0): [agp] vertex/indirect buffers handle = 0xf4102000
    (II) R128(0): [agp] Vertex/indirect buffers mapped at 0x2a501000
    (II) R128(0): [agp] AGP texture map handle = 0xf4302000
    (II) R128(0): [agp] AGP Texture map mapped at 0x2a701000
    (II) R128(0): [drm] register handle = 0xf0200000
    (II) R128(0): [dri] Visual configs initialized
    (II) R128(0): CCE in BM mode
    (II) R128(0): Using 8 MB AGP aperture
    (II) R128(0): Using 1 MB for the ring buffer
    (II) R128(0): Using 2 MB for vertex/indirect buffers
    (II) R128(0): Using 5 MB for AGP textures
    (II) R128(0): Memory manager initialized to (0,0) (1024,3840)
    (II) R128(0): Reserved area from (0,768) to (1024,770)
    (II) R128(0): Largest offscreen area available: 1024 x 3070
    (II) R128(0): Reserved back buffer from (0,770) to (1024,1538)
    (II) R128(0): Reserved depth buffer from (0,1538) to (1024,2307)
    (II) R128(0): Reserved depth span from (0,2306) offset 0x902000
    (II) R128(0): Reserved 17408 kb for textures at offset 0xf00000
    (II) R128(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
            Dashed Lines
            Offscreen Pixmaps
            Setting up tile and stipple cache:
                    32 128x128 slots
                    14 256x256 slots
    (II) R128(0): Acceleration enabled
    (==) R128(0): Backing store disabled
    (==) R128(0): Silken mouse enabled
    (II) R128(0): Using hardware cursor (scanline 9228)
    (II) R128(0): Largest offscreen area available: 1024 x 1531
    (II) R128(0): X context handle = 0x00000001
    (II) R128(0): [drm] installed DRM signal handler
    (II) R128(0): [DRI] installation complete
    (II) R128(0): [drm] Added 128 16384 byte vertex/indirect buffers
    (II) R128(0): [drm] Mapped 128 vertex/indirect buffers
    (II) R128(0): [drm] dma control initialized, using IRQ 11
    (II) R128(0): Direct rendering enabled

    And yet:
    $ glxinfo | grep direct
    direct rendering: No
    OpenGL renderer string: Mesa GLX Indirect

    Grrrr.....

    -- 
    G. Stewart - gstewart@bonivet.net
    The more carefully you plan a project, the more
    confusion there is when something goes wrong.
    
    



  • Next message: Daniel O'Connor: "Re: HW accel on R128/Xorg 6.7/FBSD-5.3R (was: the best graphicscard for FreeBSD)"

    Relevant Pages

    • Re: DRM on a Rage Mobility (mach64drm)
      ... >> with X are through the Xorg libraries? ... so the Xorg.log should at least acknowledge contacting the drm kernel ... LoadModule: "GLcore" ... drmOpenDevice: node name is /dev/dri/card0 ...
      (comp.unix.bsd.freebsd.misc)
    • Re: Matrox G450, Xorg, DRM/DRI
      ... So it could be that you need the agp driver as well before this'll work. ... Loading sub module "GLcore" ... LoadModule: "GLcore" ... Loading sub module "drm" ...
      (comp.unix.bsd.freebsd.misc)
    • dri problem
      ... I am having some problems with my radeon 8500, kernel ... drmOpenDevice: node name is /dev/dri/card0 ... RADEON: [agp] Vertex/indirect buffers mapped ... [drm] installed DRM signal handler ...
      (Debian-User)
    • Kernel DRI support
      ... I have a laptop with a Radeon IGP 320M U1 Mobility graphics card. ... or should the radeon agp stuff as is? ... Linux agpgart interface v0.100 Dave Jones ... drmOpenDevice: node name is /dev/dri/card0 ...
      (Linux-Kernel)
    • Kernel DRI support
      ... I have a laptop with a Radeon IGP 320M U1 Mobility graphics card. ... or should the radeon agp stuff work as is? ... Linux agpgart interface v0.100 Dave Jones ... drmOpenDevice: node name is /dev/dri/card0 ...
      (Linux-Kernel)