From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.50) id 1EPNEh-0007Iw-Ot for garchives@archives.gentoo.org; Tue, 11 Oct 2005 16:44:20 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.5/8.13.5) with SMTP id j9BGY8B6025150; Tue, 11 Oct 2005 16:34:08 GMT Received: from smtp16.wxs.nl (smtp16.wxs.nl [195.121.6.39]) by robin.gentoo.org (8.13.5/8.13.5) with ESMTP id j9BGTd0f029082 for ; Tue, 11 Oct 2005 16:29:39 GMT Received: from [10.0.0.150] (ip3e83ab52.speed.planet.nl [62.131.171.82]) by smtp16.wxs.nl (iPlanet Messaging Server 5.2 Patch 2 (built Jul 14 2004)) with ESMTP id <0IO7002IVFL9NV@smtp16.wxs.nl> for gentoo-user@lists.gentoo.org; Tue, 11 Oct 2005 18:39:09 +0200 (CEST) Date: Tue, 11 Oct 2005 18:38:52 +0200 From: Holly Bostick Subject: Re: [gentoo-user] struggling with dri In-reply-to: To: gentoo-user@lists.gentoo.org Message-id: <434BEA9C.40101@planet.nl> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-version: 1.0 Content-type: text/plain; charset=UTF-8 Content-transfer-encoding: 7BIT X-Accept-Language: nl-NL, nl, en User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051002) X-Enigmail-Version: 0.92.0.0 References: <434A954A.5010803@comcast.net> <20051010164138.GF14572@lakedaemon.net> <20051010193411.GG14572@lakedaemon.net> X-Archives-Salt: 0849f387-1b70-4bad-aa31-be439fdace1a X-Archives-Hash: 5a08c85af55ee560b986541c1b867a3a Fernando Meira schreef: > On 10/10/05, Jason Cooper wrote: > >> Fernando Meira (fmeira@gmail.com) scribbled: >> >>> I think I have radeon driver built-in the kernel.. does that mean >>> that >> >> it is >> >>> loaded before agpgart? agpgart and intel_agp are both modules... >>> >>> should I them recompile my kernel and leave radeon as module? >> >> yes. > > > > Ok, with this modules being loaded at boot: agpgart intel_agp radeon > > I still don't have rendering! So, should I try to compile all > built-in the kernel? Or should I go for x11-drm? > > Cheers, Fernando > I'm not sure I understand what you're doing here. As far as I know (and I must stress that I'm not that familiar with either the radeon driver or how it works with the Mobility chips, because I have a 9800SE that must use the fglrx drivers to get OpenGL/3D hardware acceleration/direct rendering), the radeon driver is a 2D driver that is used in combination with the kernel's DRM and the Mesa libraries to get direct rendering/3D hardware acceleration enabled. So my first question would be: What is the status of DRM in your kernel? Device Drivers=>Character Devices=>Direct Rendering Manager (XFree86 4.1.0 and higher DRI support) Direct Rendering Manager (XFree86 4.1.0 and higher DRI support x CONFIG_DRM: x x Kernel-level support for the Direct Rendering Infrastructure (DRI) x introduced in XFree86 4.0. If you say Y here, you need to select x the module that's right for your graphics card from the list below. x These modules provide support for synchronization, security, and x DMA transfers. Please see for more x details. You should also select and configure AGP x (/dev/agpgart) support. x x Symbol: DRM [=m] x Prompt: Direct Rendering Manager (XFree86 4.1.0 and higher DRI support) x Defined at drivers/char/drm/Kconfig:7 x Depends on: AGP || AGP=n x Location: x -> Device Drivers x -> Character devices x Now, I know that for the fglrx drivers to run, this kernel option must be *unset*, but it's clear that you can't even have the 'radeon' module if DRM is not set. However, in looking at these settings in my own kernel (and assuming that the Mobility chipset in your lappy can use these drivers to provide 3D hardware acceleration), I noticed that: - when I had /dev/agpgart set as a module, I could only build DRM as a module (the kernel gave me a message to this effect); - setting /dev/agpgart to statically compiled (Y) allowed me to build DRM statically compiled (but I could still build Radeon as a module, and intel_agp as a module under agpgart). Again, I'm no big expert on the radeon kernel drivers, but I find it hard to believe that in this situation it can be a good thing for /dev/agpgart and /DRM themselves to be compiled as loadable modules rather than statically (although the sub-functions, intel_agp and radeon, most likely *should* be compiled as modules). So I would suggest that your kernel config "should" look like this: <*> /dev/agpgart (AGP Support) < > ALI chipset support < > ATI chipset support < > AMD Irongate, 761, and 762 chipset support < > AMD Opteron/Athlon64 on-CPU GART support Intel 440LX/BX/GX, I8xx and E7x05 chipset support < > NVIDIA nForce/nForce2 chipset support < > SiS chipset support < > Serverworks LE/HE chipset support < > VIA chipset support < > Transmeta Efficeon support <*> Direct Rendering Manager (XFree86 4.1.0 and higher DRI support) < > 3dfx Banshee/Voodoo3+ (NEW) < > ATI Rage 128 (NEW) ATI Radeon < > Intel I810 (NEW) < > Intel 830M, 845G, 852GM, 855GM, 865G < > Matrox g200/g400 (NEW) < > SiS video cards (NEW) For what it's worth. You could then take agpgart out of /etc/modules.autoload.d/kernel-2.6 (since it's no longer a loadable module, you can't load it that way anyway. but then intel_agp should hopefully load correctly). You would perhaps also want to check your build of xorg: emerge -pv xorg-x11 These are the packages that I would merge, in order: Calculating dependencies ...done! [ebuild R ] x11-base/xorg-x11-6.8.2-r4 -3dfx +3dnow +bitmap-fonts -cjk -debug -dlloader -dmx -doc +font-server -insecure-drivers -ipv6 -minimal +mmx +nls -nocxx +opengl -pam -sdk +sse -static +truetype-fonts +type1-fonts (-uclibc) +xprint +xv 0 kB As you see, opengl support is *optional*, and if not compiled, presumably the Mesa libraries that allow X to render 3D for those drivers that don't do so natively would also not be available. Hope this helps, Holly -- gentoo-user@gentoo.org mailing list