Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 3 Mar 2004 09:32:25 +0000
From:      David Lodeiro <dlodeiro@inspired.net.au>
To:        freebsd-questions@freebsd.org
Cc:        Tobias Aigner <lists@mangosuechtig.org>
Subject:   Re: DRI troubles with radeon
Message-ID:  <200403030932.25462.dlodeiro@inspired.net.au>
In-Reply-To: <20040302151414.2528806c.lists@mangosuechtig.org>
References:  <20040302151414.2528806c.lists@mangosuechtig.org>

next in thread | previous in thread | raw e-mail | index | archive | help
> Hi there,
Hi
>
> I'm having some troubles getting DRI to work. I'm runnig an
> ASUS A7N8X-Deluxe Board with NForce2 and a ATI Radeon 8500. First of all
I have the Radeon 8500 on a different Asus Motherboard ( no NForce2 )
> I started using the 5.2.1-RELEASE with following kernel-options:
>
> device agp
> device radeondrm
I have

device          vga             # VGA video card driver

device          agp             # support several AGP chipsets

device          radeondrm

And my dmesg shows

drm0: <ATI Radeon QL R200 8500 LE> port 0xd800-0xd8ff mem 
0xcf800000-0xcf80ffff
,0xe0000000-0xefffffff irq 11 at device 0.0 on pci1
info: [drm] AGP at 0xd0000000 128MB
info: [drm] Initialized radeon 1.10.0 20020828 on minor 0

>
> this caused XFree86 (4.3.0 and 4.4.0) to freeze on startx when DRI was
I am using XFree86 Version 4.3.99.15 and my relevant sections from my config 
are

Section "Module"
        Load  "GLcore"
        Load  "bitmap"
        Load  "dbe"
        Load  "ddc"
        Load  "dri"
        Load  "extmod"
        Load  "freetype"
        Load  "glx"
        Load  "int10"
        Load  "record"
        Load  "xtrap"
        Load  "speedo"
        Load  "type1"
EndSection

Section "Device"
        Identifier  "Card0"
        Driver      "radeon"
        VendorName  "ATI Technologies Inc"
        BoardName   "Radeon R200 QL [Radeon 8500 LE]"
        BusID       "PCI:1:0:0"
        Option      "AGPMode"           "4"
EndSection

Section "DRI"
        Mode 0666
EndSection


> enabled. Then I removed agp and radeondrm from my kernel-config, now
> dmesg showed this when startx was launched:
>
> error: [drm:pid580:radeon_cp_init] *ERROR* radeon_cp_init called
> without lock held
> error: [drm:pid580:radeon_unlock] *ERROR* Process 580
> using kernel context 0
>
> but X actually started (glxinfo sayed 'direct rendering: no'). After
> some reading I started to put these options in my XF86Config:
>
> Option "ForcePCIMode" "true"
> Option "AGPMode" "4"
>
> well, ok now glxinfo reported 'direct rendering: yes' but my performance
> with glxgears should be much better:
>
> 1167 frames in 5.0 seconds = 233.400 FPS
> 1403 frames in 5.0 seconds = 280.600 FPS
>
6515 frames in 5.0 seconds = 1303.000 FPS
6702 frames in 5.0 seconds = 1340.400 FPS
6717 frames in 5.0 seconds = 1343.400 FPS

> dmesg showed this:
>
> drm0: <ATI Radeon QL R200 8500 LE> port 0xb000-0xb0ff mem
> 0xc2000000-0xc200ffff,0xb0000000-0xbfffffff irq 5 at device 0.0 on pci2
> info: [drm] Initialized radeon 1.10.0 20020828 on minor 0 info: [drm]
> Loading R200 Microcode
>
> This problem is obviously caused by my mainboard, because my radeon used
> to work with my old Gigabyte VIA mainboard.
>
> So I'm slowly runnig out of ideas what to do.

This 

device          agp             # support several AGP chipsets

device          radeondrm

needs to be in your kernel config. Check you XFConfig, make sure you have 

Section "DRI"
        Mode 0666
EndSection

in it.

Thats all the help I can really provide

David Lodeiro



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200403030932.25462.dlodeiro>