From owner-freebsd-questions@FreeBSD.ORG Tue Mar 2 15:45:08 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id ABF4016A4CE for ; Tue, 2 Mar 2004 15:45:08 -0800 (PST) Received: from lysander.inspired.net.au (lysander.inspired.net.au [203.132.226.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id B317043D1D for ; Tue, 2 Mar 2004 15:45:00 -0800 (PST) (envelope-from dlodeiro@inspired.net.au) Received: from localhost (localhost [127.0.0.1]) by lysander.inspired.net.au (Postfix) with ESMTP id 9F1682380CF; Wed, 3 Mar 2004 10:44:58 +1100 (EST) Received: from lysander.inspired.net.au ([127.0.0.1]) by localhost (lysander [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id 23851-01; Wed, 3 Mar 2004 10:44:58 +1100 (EST) Received: from 192.168.1.122 (dsl-74.217.240.220.dsl.comindico.com.au [220.240.217.74]) by lysander.inspired.net.au (Postfix) with ESMTP id EBB572380B7; Wed, 3 Mar 2004 10:44:57 +1100 (EST) From: David Lodeiro To: freebsd-questions@freebsd.org Date: Wed, 3 Mar 2004 09:32:25 +0000 User-Agent: KMail/1.6 References: <20040302151414.2528806c.lists@mangosuechtig.org> In-Reply-To: <20040302151414.2528806c.lists@mangosuechtig.org> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200403030932.25462.dlodeiro@inspired.net.au> X-Virus-Scanned: by amavisd-new-20030616-p7 (Debian) at inspired.net.au cc: Tobias Aigner Subject: Re: DRI troubles with radeon X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Mar 2004 23:45:08 -0000 > 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: 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: 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