emerge ati-drivers works fine, and loading the fglrx module works as well, however when I go to start XF4.3, I get the following message in dmesg: [fglrx] Maximum main memory to use for locked dma buffers: 430 MBytes. [fglrx] module loaded - fglrx 2.9.12 [May 9 2003] on minor 0 Fire GL built-in AGP-support Based on agpgart interface v0.99 (c) Jeff Hartmann agpgart: Maximum main memory to use for agp memory: 439M agpgart: unsupported bridge agpgart: no supported devices found. Xfree86's AGP support works fine, however I wanted to try ATI's drivers since XF4.3 doesn't support hardware 3D and dual head right now. :( Reproducible: Always Steps to Reproduce: 1. Buy an Nforce2 motherboard 2. emerge ati-drivers 3. run XF4.3 Portage 2.0.48 (default-x86-1.4, gcc-3.2.2, glibc-2.3.1-r4) ================================================================= System uname: 2.4.20-gentoo-r5 i686 AMD Athlon(tm) XP 2500+ GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linux/distributions/gentoo" CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" PORTDIR="/usr/portage" DISTDIR="/usr/portage/distfiles" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR_OVERLAY="/usr/local/portage" USE="x86 oss 3dnow apm avi crypt cups encode gif jpeg libg++ libwww mikmod mmx mpeg ncurses nls pdflib png quicktime spell truetype xml2 xmms xv zlib berkdb slang readline arts svga java guile X sdl gpm tcpd pam ssl perl python esd imlib oggvorbis gnome gtk qt kde motif opengl aalib acpi alsa bonobo cdr cjk dga directfb dvd evo gb gd -gdbm ggi gphoto2 gps gtk2 gtkhtml imap innodb libgda lirc mozilla mysql oav pda samba scanner sse tcltk tiff usb" COMPILER="gcc3" CHOST="i686-pc-linux-gnu" CFLAGS="-mcpu=athlon-xp -sse -O3 -mfpmath=sse -pipe" CXXFLAGS="-mcpu=athlon-xp -sse -O3 -mfpmath=sse -pipe" ACCEPT_KEYWORDS="x86" MAKEOPTS="-j2" AUTOCLEAN="yes" SYNC="rsync://rsync.gentoo.org/gentoo-portage" FEATURES="sandbox ccache userpriv"
please try to load the kernel module agpgart before running xfree, could you tell me which kernel are you using?
I'm using 2.4.20-gentoo-r5. I never considered that fglrx wasn't loading the agpmodule, since XF4.3 usually does that automatically. I'll definately try that when I get home tonight, and then get back to you.
Well, manually loading agpgart before starting X produces the following same error: Based on agpgart interface v0.99 (c) Jeff Hartmann agpgart: Maximum main memory to use for agp memory: 439M agpgart: unsupported bridge agpgart: no supported devices found. So, my guess is that the firegl drivers are attempting to load agpgart, and when that doesn't work, they just die. Also, the reason that I don't run into this with the radeon must be because the XF4.3 Radeon drivers don't support DRI with dual head, so they don't care if there's agp support or not. From all of that, I gather this is probably a kernel (ie agpgart) issue, and not an XF/ati-drivers issue. Which means it'll probably be rather a while until I see it fixed. :(
there is some work on the nforce2 agpgart, maybe one of the latest experimental kernels has already it, please check them and tell me if that solves your problems
Well, I tried the gaming-sources kernel, since there was supposed to be nforce2 patches in there, but it was apparently only IDE and sound. Then, I tried mm-sources-2.5.70. Now, I'm obviously missing something needed for the development kernels, because I can't load any modules. So, I compiled in agpgart to the kernel (with the new nforce2 option), and when it booted it seemed to detect and use that agpgart with my motherboard. However, since I couldn't load any modules, I couldn't load the fglrx module to test the ati-drivers. So, while it looks like the fixes in 2.5 do fix this problem, I can't actually test it until I figure out what I'm doing with the modules. ;)
x86 kernel people, help!
emerge module-init-tools if you want modules support
Fantastic, now modules work fine with the 2.5 kernel. However, ati-drivers refuses to emerge under 2.5, this is the error I get: grep: /proc/ksyms: no such file or directory ./make.sh: line 375: [: -gt: unary operator expected probing for VMA API version... check results are inconsistant!!! none of the probed versions did succeed. aborting module build. glx module not built. I would assume that the ati-drivers build process is incompatible with 2.5 kernels. This leads me to believe that there's currently no way to use ati-drivers with an nforce2 chipset, which is truly unfortunate. I doubt that anyone's going to backport the nforce2 patches from 2.5 to 2.4 (although that would be very nice! :) ), and we're probably still a while off yet from 2.6. :(
gs-sources has nforce2 support, as does pfeifer-sources latest.
Heh, when you guys said "development kernels" I assumed 2.5. :) In any case, it *seems* to work with the current gs-sources. "Seems?" you say? Well, gs-sources breaks both my network card (3c905c) and my USB ports, so I have no mouse and GNOME hangs loading because my desktop background is on a network drive. *sigh* I'll try the pfeifer-sources when I have time and get back to you, but from the log output it does look like at least the fglrx driver works fine with the nforce2 patches in the gs-sources. As an afterthough, should I be opening bug reports about the USB and network issues in gs-sources?
Well, in the pfeifer-sources I grabbed last night (pre11 I think), the NForce2 agpgart patches *weren't* present, or at least they weren't in the normal location in menuconfig. So, it works in gs-sources (I assume) and in 2.5, however both of those introduce problems that make the system unusable. I guess I'll have to wait until the patches migrate to gentoo-sources.
Created attachment 12969 [details, diff] nforce1/2 agp support apply this patch to pfeifer-sources-pre11 until i get pre12 finished. example: patch -p1 -s -N -E -d /usr/src/linux-2.4.20-pfeifer-r1_pre11/ < nforce-agp.diff Jay
drobbins committed a new gaming sources version (r4) please test that one.
The patched pfeifer-sources works fantastically! I've got USB, 3c59x, and the ati-drivers all working perfectly (well, so far ;) ). glxinfo gave the correct results, and I ran glxgears on both monitors simultaneously and got about 700fps on each one (I was getting 200fps in software rendering), and it jumped to 17-1800 fps when I let just a single copy run. Not the best benchmark, but it does demonstrate that dri *is* working. Woohoo! As of writing this, "ACCEPT_KEYWORDS="~x86" emerge sync && emerge -p gaming-sources" doesn't show the newly patched gaming sources, so I'll try tomorrow or tuesday, depending on when it shows up and how my free time is structured. However, I'm perfectly happy with the pfeifer-sources right now, so I'm willing to consider this case-closed. :)
Just booted into gaming-sources-r4 right now, and it seems to work properly as well. Thanks to everyone who worked so quickly to get those patches in! You guys are fantastic!