Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 21740 - ati-drivers-2.9.12 doesn't work with NForce2 AGP
Summary: ati-drivers-2.9.12 doesn't work with NForce2 AGP
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-05-26 19:41 UTC by Graeme Humphries
Modified: 2003-06-10 16:52 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
nforce1/2 agp support (nforce-agp.diff,12.45 KB, patch)
2003-06-08 22:27 UTC, Jay Pfeifer (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Graeme Humphries 2003-05-26 19:41:06 UTC
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"
Comment 1 Luca Barbato gentoo-dev 2003-05-27 02:45:58 UTC
please try to load the kernel module agpgart before running xfree, could you tell me which kernel are you using?
Comment 2 Graeme Humphries 2003-05-27 10:37:45 UTC
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.
Comment 3 Graeme Humphries 2003-05-27 18:53:04 UTC
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. :(
Comment 4 Luca Barbato gentoo-dev 2003-05-27 21:58:36 UTC
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
Comment 5 Graeme Humphries 2003-05-28 23:13:39 UTC
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. ;)
Comment 6 Seemant Kulleen (RETIRED) gentoo-dev 2003-06-05 16:25:53 UTC
x86 kernel people, help!
Comment 7 Luca Barbato gentoo-dev 2003-06-05 16:51:51 UTC
emerge module-init-tools

if you want modules support
Comment 8 Graeme Humphries 2003-06-06 14:15:08 UTC
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. :(
Comment 9 Seemant Kulleen (RETIRED) gentoo-dev 2003-06-06 22:53:38 UTC
gs-sources has nforce2 support, as does pfeifer-sources latest.
Comment 10 Graeme Humphries 2003-06-07 14:54:56 UTC
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?
Comment 11 Graeme Humphries 2003-06-08 17:05:55 UTC
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.

Comment 12 Jay Pfeifer (RETIRED) gentoo-dev 2003-06-08 22:27:43 UTC
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
Comment 13 Luca Barbato gentoo-dev 2003-06-08 22:49:10 UTC
drobbins committed a new gaming sources version (r4) please test that one.
Comment 14 Graeme Humphries 2003-06-08 23:42:03 UTC
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. :)
Comment 15 Graeme Humphries 2003-06-10 16:52:28 UTC
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!