Re: AGP not working on nForce3

2005-01-10 Thread Louis LeBlanc
On 01/10/05 12:52 PM, Mats Kristoffersen sat at the `puter and typed:
> >>>
> >>>
> >>>
> > 
> > Try adding this:
> > Option "RenderAccel" "True"
> > 
> > Lou
> 
> No luck. I still get the
> 
> NVRM: AGP cannot be enabled on this combination of the AMD CPU and OS kernel
> NVRM: kernel upgrade recommended.
> 
> messages, and the hw.nvidia.agp.status.* oids don't exist.
> 
> I use xorg-server 6.8.1 from packages (as the server crashes when I run 
> opengl apps if I compile from ports). The rest of the xorg components 
> are from ports. I'll try installing xorg-libraries from packages too, to 
> see if it helps.

I don't have trouble with OpenGL apps, and I'm running all the Xorg
stuff from ports (same version).

You know, there was a thread related to this same AGP problem back on
11/30, pretty much throught the first week in December.  I was
convinced my AGP was working until Kenneth Culver showed me I didn't.
There were a number of people that had it working, and several that
didn't.  I don't think we ever figured out just what the magic sword
was.  Check the list archives for that thread.  Maybe you'll find
something I missed.

I did have the nvidia drivers compiled without linux support, not sure
if that was a factor.

Have you read the linux compatability support section in
/usr/X11R6/share/doc/NVIDIA_GLX-1.0/README?  You might check it out to
see if all your i's are dotted.

I really hate to say it, but I'm pretty much out of ideas at this
point.  It may be a day or so, but I'll try recompiling my drivers
with Linux support and see if that breaks it.  Either way I'll let you
know.

If you figure out what the magic sword is, let the list know.  This
has come up once or twice in the past, and there's always one or two
that just don't get the results they wanted.

Good luck.
Lou
-- 
Louis LeBlanc   [EMAIL PROTECTED]
Fully Funded Hobbyist, KeySlapper Extrordinaire :)
http://www.keyslapper.org ԿԬ

Fame is a vapor; popularity an accident; the only earthly certainty is
oblivion.
-- Mark Twain
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: AGP not working on nForce3

2005-01-10 Thread Mats Kristoffersen
Louis LeBlanc wrote:
On 01/09/05 10:18 PM, Mats Kristoffersen sat at the `puter and typed:
Louis LeBlanc wrote:
On 01/09/05 10:06 PM, Mats Kristoffersen sat at the `puter and typed:

Louis LeBlanc wrote:

What does the cards config block look like in your xorg.conf?
Lou
Section "Device"
Identifier  "Card0"
Driver  "nvidia"
Option  "NvAGP" "1"
EndSection

Try adding this:
Option "RenderAccel" "True"
Lou
No luck. I still get the
NVRM: AGP cannot be enabled on this combination of the AMD CPU and OS kernel
NVRM: kernel upgrade recommended.
messages, and the hw.nvidia.agp.status.* oids don't exist.
I use xorg-server 6.8.1 from packages (as the server crashes when I run 
opengl apps if I compile from ports). The rest of the xorg components 
are from ports. I'll try installing xorg-libraries from packages too, to 
see if it helps.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: AGP not working on nForce3

2005-01-09 Thread Louis LeBlanc
On 01/09/05 10:18 PM, Mats Kristoffersen sat at the `puter and typed:
> Louis LeBlanc wrote:
> > On 01/09/05 10:06 PM, Mats Kristoffersen sat at the `puter and typed:
> > 
> >>Louis LeBlanc wrote:
> >>
> > 
> > 
> > What does the cards config block look like in your xorg.conf?
> > 
> > Lou
> 
> Section "Device"
>  Identifier  "Card0"
>  Driver  "nvidia"
>  Option  "NvAGP" "1"
> EndSection

Try adding this:
Option "RenderAccel" "True"

Lou
-- 
Louis LeBlanc   [EMAIL PROTECTED]
Fully Funded Hobbyist, KeySlapper Extrordinaire :)
http://www.keyslapper.org ԿԬ

I object to intellect without discipline;  I object to power without
constructive purpose.
-- Spock, "The Squire of Gothos", stardate 2124.5
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: AGP not working on nForce3

2005-01-09 Thread Mats Kristoffersen
Louis LeBlanc wrote:
On 01/09/05 10:06 PM, Mats Kristoffersen sat at the `puter and typed:
Louis LeBlanc wrote:
Yes, I recompiled with just WITH_ACPI, and now it's 1 as default.  I
even cvsupped world and rebuilt, and now nvidia.ko doesn't try the
agp0 stuff. I guess that's progress, but AGP still doesn't work.

Progress is very often nothing more than a change in error conditions
:)
Ok, how about the hw.nvidia sysctls and the logs?  Any warnings (WW)
or errors (EE) in /var/log/Xorg.0.log?  There will probably be a
couple warnings related to modes, but those are probably not directly
related.
A couple of warnings about modes and fonts, no errors. I used -verbose 5 
-logverbose 5.

Good.  Keep an eye on that as you change things.

Every time you make a change, check the hw.nvidia.agp.status sysctls.
Mine are as follows:
hw.nvidia.agp.status.status: enabled
hw.nvidia.agp.status.driver: nvidia
hw.nvidia.agp.status.rate: 8x
hw.nvidia.agp.status.fw: disabled
hw.nvidia.agp.status.sba: enabled
Those sysctls don't even exist.

What does the cards config block look like in your xorg.conf?
Lou
Section "Device"
Identifier  "Card0"
Driver  "nvidia"
Option  "NvAGP" "1"
EndSection
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: AGP not working on nForce3

2005-01-09 Thread Louis LeBlanc
On 01/09/05 10:06 PM, Mats Kristoffersen sat at the `puter and typed:
> Louis LeBlanc wrote:
> >>Yes, I recompiled with just WITH_ACPI, and now it's 1 as default.  I
> >>even cvsupped world and rebuilt, and now nvidia.ko doesn't try the
> >>agp0 stuff. I guess that's progress, but AGP still doesn't work.
> > 
> > 
> > Progress is very often nothing more than a change in error conditions
> > :)
> > 
> > Ok, how about the hw.nvidia sysctls and the logs?  Any warnings (WW)
> > or errors (EE) in /var/log/Xorg.0.log?  There will probably be a
> > couple warnings related to modes, but those are probably not directly
> > related.
> 
> A couple of warnings about modes and fonts, no errors. I used -verbose 5 
> -logverbose 5.

Good.  Keep an eye on that as you change things.

> > Every time you make a change, check the hw.nvidia.agp.status sysctls.
> > Mine are as follows:
> > hw.nvidia.agp.status.status: enabled
> > hw.nvidia.agp.status.driver: nvidia
> > hw.nvidia.agp.status.rate: 8x
> > hw.nvidia.agp.status.fw: disabled
> > hw.nvidia.agp.status.sba: enabled
> 
> Those sysctls don't even exist.

What does the cards config block look like in your xorg.conf?

Lou
-- 
Louis LeBlanc   [EMAIL PROTECTED]
Fully Funded Hobbyist, KeySlapper Extrordinaire :)
http://www.keyslapper.org ԿԬ

  A man was reading The Canterbury Tales one Saturday morning, when
his wife asked "What have you got there?"  Replied he, "Just my cup
and Chaucer."
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: AGP not working on nForce3

2005-01-09 Thread Mats Kristoffersen
Louis LeBlanc wrote:
Yes, I recompiled with just WITH_ACPI, and now it's 1 as default.  I
even cvsupped world and rebuilt, and now nvidia.ko doesn't try the
agp0 stuff. I guess that's progress, but AGP still doesn't work.

Progress is very often nothing more than a change in error conditions
:)
Ok, how about the hw.nvidia sysctls and the logs?  Any warnings (WW)
or errors (EE) in /var/log/Xorg.0.log?  There will probably be a
couple warnings related to modes, but those are probably not directly
related.
A couple of warnings about modes and fonts, no errors. I used -verbose 5 
-logverbose 5.

Every time you make a change, check the hw.nvidia.agp.status sysctls.
Mine are as follows:
hw.nvidia.agp.status.status: enabled
hw.nvidia.agp.status.driver: nvidia
hw.nvidia.agp.status.rate: 8x
hw.nvidia.agp.status.fw: disabled
hw.nvidia.agp.status.sba: enabled
Those sysctls don't even exist.
You might have a couple differences, particularly the fw and sba
values, but you want the rate to be 8x or at least 4x, and status
enabled.  As you track down warnings and errors in the Xorg.0.log
file, you will probably be able to guess what kind of changes are
needed in xorg.conf.  Check the README.Linux file in the NVidia driver
directory mentioned before for any tokens mentioned in those warning
or error log entries.  You will probably have to try different
settings to eliminate the warnings or errors, but it's just a config
change and X restart (Ctrl-Alt-Backspace).  Compile/reinstall stuff is
probably not needed at this point.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: AGP not working on nForce3

2005-01-09 Thread Louis LeBlanc
On 01/09/05 08:38 PM, Mats Kristoffersen sat at the `puter and typed:
> > > 
> > 
> > That may be why NvAGP overrides to "3".  Using "NvAGP" "1", but
> > compiling the drivers with WITH_FREEBSD_AGP should be mutually
> > exclusive.  One tells the driver to use the NVidia AGP, the other
> > tells it to use the native FreeBSD AGP.  Like I said, you need to
> > pick one.  The NVidia AGP is probably the better choice.  You
> > mention below that it's already removed from the kernel, but that
> > doesn't make sense if you're getting the agp0: console output.
> > I'm assuming the kernel was rebuilt since that config was
> > commented out, but is that config the one that was used?
> 
> Yes, I recompiled with just WITH_ACPI, and now it's 1 as default.  I
> even cvsupped world and rebuilt, and now nvidia.ko doesn't try the
> agp0 stuff. I guess that's progress, but AGP still doesn't work.

Progress is very often nothing more than a change in error conditions
:)

Ok, how about the hw.nvidia sysctls and the logs?  Any warnings (WW)
or errors (EE) in /var/log/Xorg.0.log?  There will probably be a
couple warnings related to modes, but those are probably not directly
related.

Every time you make a change, check the hw.nvidia.agp.status sysctls.
Mine are as follows:
hw.nvidia.agp.status.status: enabled
hw.nvidia.agp.status.driver: nvidia
hw.nvidia.agp.status.rate: 8x
hw.nvidia.agp.status.fw: disabled
hw.nvidia.agp.status.sba: enabled

You might have a couple differences, particularly the fw and sba
values, but you want the rate to be 8x or at least 4x, and status
enabled.  As you track down warnings and errors in the Xorg.0.log
file, you will probably be able to guess what kind of changes are
needed in xorg.conf.  Check the README.Linux file in the NVidia driver
directory mentioned before for any tokens mentioned in those warning
or error log entries.  You will probably have to try different
settings to eliminate the warnings or errors, but it's just a config
change and X restart (Ctrl-Alt-Backspace).  Compile/reinstall stuff is
probably not needed at this point.

> > Then you should definitely not be compiling the drivers with
> > WITH_FREEBSD_AGP.  Try recompiling without that config.  Linux support
> > is probably not a problem, so don't worry about that.
> 
> What would the NvAGP "3" option do, then, if it couldn't fall back on 
> nvidia's agp implementation? I supposed it could do both if you built 
> with WITH_FREEBSD_AGP. Oh well, it's gone now.

I couldn't tell you why it's there if it seems to conflict so.
Probably it's more a config to tell the driver that it might be there,
but might not?  That way, if you set "NvAGP" "3", you'll wind up with
whichever one works - assuming it does work.  I was using the native
FreeBSD AGP driver at one point, but it didn't "work".  When it's
compiled into the kernel, the sysctls can be read with
`sysctl -a | grep agp` but I don't know exactly where they are.

> > What do you get from the command kldstat?
> 
> Id Refs AddressSize Name
>   1   14 0xc040 350800   kernel
>   22 0xc0751000 1c180linux.ko
>   31 0xc076e000 5844 snd_ich.ko
>   42 0xc0774000 1d4fcsound.ko
>   5   14 0xc0792000 54974acpi.ko
>   61 0xc23fc000 27000pf.ko
>   71 0xc245 2000 blank_saver.ko
>   81 0xc301a000 479000   nvidia.ko

Looks right.  Now to get the config right.

Lou
-- 
Louis LeBlanc   [EMAIL PROTECTED]
Fully Funded Hobbyist, KeySlapper Extrordinaire :)
http://www.keyslapper.org ԿԬ

We are sorry.  We cannot complete your call as dialed.  Please check
the number and dial again or ask your operator for assistance.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: AGP not working on nForce3

2005-01-09 Thread Mats Kristoffersen
Setting this to 3 tells the driver to try the native AGP first.  I had
trouble with this, and had to compile the agp device out of my kernel
to get it to work right.  Notice below that I set NvAGP to 1.
For some reason the sysctl var is set to 3 even though I use
Option "NvAGP" "1"
in xorg.conf. Setting it manually before starting X leaves it at 1, but 
that doesn't help.

Not sure that makes sense to me; maybe I'm forgetting something.

How did you compile the drivers?  My pkgtools.conf uses the following:
  'WITHOUT_LINUX=yes',
  'WITH_ACPI=yes',
This makes upgrades a little smoother.
I've tried WITH_FREEBSD_AGP and the vanilla version. I want linux 
support enabled, since I play neverwinter nights now and then.

That may be why NvAGP overrides to "3".  Using "NvAGP" "1", but
compiling the drivers with WITH_FREEBSD_AGP should be mutually
exclusive.  One tells the driver to use the NVidia AGP, the other
tells it to use the native FreeBSD AGP.  Like I said, you need to pick
one.  The NVidia AGP is probably the better choice.  You mention below
that it's already removed from the kernel, but that doesn't make sense
if you're getting the agp0: console output.  I'm assuming the kernel
was rebuilt since that config was commented out, but is that config
the one that was used?
Yes, I recompiled with just WITH_ACPI, and now it's 1 as default.
I even cvsupped world and rebuilt, and now nvidia.ko doesn't try the
agp0 stuff. I guess that's progress, but AGP still doesn't work.
Then you should definitely not be compiling the drivers with
WITH_FREEBSD_AGP.  Try recompiling without that config.  Linux support
is probably not a problem, so don't worry about that.
What would the NvAGP "3" option do, then, if it couldn't fall back on 
nvidia's agp implementation? I supposed it could do both if you built 
with WITH_FREEBSD_AGP. Oh well, it's gone now.

What do you get from the command kldstat?
Id Refs AddressSize Name
 1   14 0xc040 350800   kernel
 22 0xc0751000 1c180linux.ko
 31 0xc076e000 5844 snd_ich.ko
 42 0xc0774000 1d4fcsound.ko
 5   14 0xc0792000 54974acpi.ko
 61 0xc23fc000 27000pf.ko
 71 0xc245 2000 blank_saver.ko
 81 0xc301a000 479000   nvidia.ko
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: AGP not working on nForce3

2005-01-09 Thread Louis LeBlanc
On 01/09/05 07:59 PM, Mats Kristoffersen sat at the `puter and typed:
> Louis LeBlanc wrote:
> > On 01/09/05 06:45 PM, Mats Kristoffersen sat at the `puter and typed:
> > 
> > 
> >   ^
> > Setting this to 3 tells the driver to try the native AGP first.  I had
> > trouble with this, and had to compile the agp device out of my kernel
> > to get it to work right.  Notice below that I set NvAGP to 1.
> 
> For some reason the sysctl var is set to 3 even though I use
> Option "NvAGP" "1"
> in xorg.conf. Setting it manually before starting X leaves it at 1, but 
> that doesn't help.

Not sure that makes sense to me; maybe I'm forgetting something.

> > How did you compile the drivers?  My pkgtools.conf uses the following:
> >'WITHOUT_LINUX=yes',
> >'WITH_ACPI=yes',
> > This makes upgrades a little smoother.
> 
> I've tried WITH_FREEBSD_AGP and the vanilla version. I want linux 
> support enabled, since I play neverwinter nights now and then.

That may be why NvAGP overrides to "3".  Using "NvAGP" "1", but
compiling the drivers with WITH_FREEBSD_AGP should be mutually
exclusive.  One tells the driver to use the NVidia AGP, the other
tells it to use the native FreeBSD AGP.  Like I said, you need to pick
one.  The NVidia AGP is probably the better choice.  You mention below
that it's already removed from the kernel, but that doesn't make sense
if you're getting the agp0: console output.  I'm assuming the kernel
was rebuilt since that config was commented out, but is that config
the one that was used?

> > You might give that a try.  Just comment out the agp in your kernel,
> > don't delete it yet - just in case the nvidia agp doesn't like the
> > athlon for some reason.
> 
> That line is commented out already. I've tried commenting it out and 
> I've tried leaving it on, but there is no difference in behaviour.

Then you should definitely not be compiling the drivers with
WITH_FREEBSD_AGP.  Try recompiling without that config.  Linux support
is probably not a problem, so don't worry about that.

What do you get from the command kldstat?

Lou
-- 
Louis LeBlanc   [EMAIL PROTECTED]
Fully Funded Hobbyist, KeySlapper Extrordinaire :)
http://www.keyslapper.org ԿԬ

bug, n:
  A son of a glitch.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: AGP not working on nForce3

2005-01-09 Thread Mats Kristoffersen
Louis LeBlanc wrote:
On 01/09/05 06:45 PM, Mats Kristoffersen sat at the `puter and typed:
I have trouble with AGP using the nVidia drivers from ports.
I have a MSI K8N neo2 motherboard (nForce3 Ultra), an Athlon64 3000+ CPU 
and a GeForce FX 5200. I'm running FreeBSD 5.3-STABLE in i386 mode.

Exactly the card I'm using, but I'm not using an Athlon.

When I load the nvidia drivers, it says:
agp0:  mem 0xe800-0xefff at 
device 0.0 on pci0
agp0: Unable to find NVIDIA Memory Controller 1.

That's the kernel agp.  You might want to pull it out of the kernel
and use the Nvidia agp.

device_attach: agp0 attach returned 19
nvidia0:  mem 
0xf000-0xf3ff,0xf400-0xf4ff irq 16 at device 0.0 on pci1
nvidia0: [GIANT-LOCKED]

Looks like a 64M card?  Mines 128M, but that shouldn't matter here.

When I startx, it says
NVRM: AGP cannot be enabled on this combination of the AMD CPU and OS kernel
NVRM: kernel upgrade recommended.

You need to pick an AGP driver.  This is done in /etc/X11/xorg.conf
with the NvAGP setting.  I use
Option "NvAGP" "1" # Use Nvidia agp
Of course, I had to remove the agp device from my kernel.  It may also
be necessary for you to build a custom kernel that makes use of some
Athlon specific features - I'm using a Pentium myself, but there are
plenty of folks on the list that can recommend options and devices to
look at.

There is no /dev/agp or similar. Having agp enabled or disabled in the 
kernel or loading agp.ko dynamically makes no difference.

The absence of a /dev/agp is not important.  agp.ko is the FreeBSD agp
driver, you might be better with the nvidia agp.

Nvidia-related sysctl variables:
hw.nvidia.agp.card.rates: 8x 4x
hw.nvidia.agp.card.fw: supported
hw.nvidia.agp.card.sba: supported
hw.nvidia.agp.card.registers: 0x1f000e1b:0x
hw.nvidia.version: NVIDIA FreeBSD x86 NVIDIA Kernel Module  1.0-6113 Mon Aug  2 
16:08:32 PDT 2004
hw.nvidia.registry.EnableVia4x: 0
hw.nvidia.registry.EnableALiAGP: 0
hw.nvidia.registry.NvAGP: 3
  ^
Setting this to 3 tells the driver to try the native AGP first.  I had
trouble with this, and had to compile the agp device out of my kernel
to get it to work right.  Notice below that I set NvAGP to 1.
For some reason the sysctl var is set to 3 even though I use
Option "NvAGP" "1"
in xorg.conf. Setting it manually before starting X leaves it at 1, but 
that doesn't help.

How did you compile the drivers?  My pkgtools.conf uses the following:
   'WITHOUT_LINUX=yes',
   'WITH_ACPI=yes',
This makes upgrades a little smoother.
I've tried WITH_FREEBSD_AGP and the vanilla version. I want linux 
support enabled, since I play neverwinter nights now and then.

You might give that a try.  Just comment out the agp in your kernel,
don't delete it yet - just in case the nvidia agp doesn't like the
athlon for some reason.
That line is commented out already. I've tried commenting it out and 
I've tried leaving it on, but there is no difference in behaviour.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: AGP not working on nForce3

2005-01-09 Thread Louis LeBlanc
On 01/09/05 06:45 PM, Mats Kristoffersen sat at the `puter and typed:
> I have trouble with AGP using the nVidia drivers from ports.
> 
> I have a MSI K8N neo2 motherboard (nForce3 Ultra), an Athlon64 3000+ CPU 
> and a GeForce FX 5200. I'm running FreeBSD 5.3-STABLE in i386 mode.

Exactly the card I'm using, but I'm not using an Athlon.

> When I load the nvidia drivers, it says:
> 
> agp0:  mem 0xe800-0xefff at 
> device 0.0 on pci0
> agp0: Unable to find NVIDIA Memory Controller 1.

That's the kernel agp.  You might want to pull it out of the kernel
and use the Nvidia agp.

> device_attach: agp0 attach returned 19
> nvidia0:  mem 
> 0xf000-0xf3ff,0xf400-0xf4ff irq 16 at device 0.0 on pci1
> nvidia0: [GIANT-LOCKED]

Looks like a 64M card?  Mines 128M, but that shouldn't matter here.

> When I startx, it says
> 
> NVRM: AGP cannot be enabled on this combination of the AMD CPU and OS kernel
> NVRM: kernel upgrade recommended.

You need to pick an AGP driver.  This is done in /etc/X11/xorg.conf
with the NvAGP setting.  I use
Option "NvAGP" "1" # Use Nvidia agp
Of course, I had to remove the agp device from my kernel.  It may also
be necessary for you to build a custom kernel that makes use of some
Athlon specific features - I'm using a Pentium myself, but there are
plenty of folks on the list that can recommend options and devices to
look at.

> There is no /dev/agp or similar. Having agp enabled or disabled in the 
> kernel or loading agp.ko dynamically makes no difference.

The absence of a /dev/agp is not important.  agp.ko is the FreeBSD agp
driver, you might be better with the nvidia agp.

> Nvidia-related sysctl variables:
> hw.nvidia.agp.card.rates: 8x 4x
> hw.nvidia.agp.card.fw: supported
> hw.nvidia.agp.card.sba: supported
> hw.nvidia.agp.card.registers: 0x1f000e1b:0x
> hw.nvidia.version: NVIDIA FreeBSD x86 NVIDIA Kernel Module  1.0-6113 Mon Aug  
> 2 16:08:32 PDT 2004
> hw.nvidia.registry.EnableVia4x: 0
> hw.nvidia.registry.EnableALiAGP: 0
> hw.nvidia.registry.NvAGP: 3
  ^
Setting this to 3 tells the driver to try the native AGP first.  I had
trouble with this, and had to compile the agp device out of my kernel
to get it to work right.  Notice below that I set NvAGP to 1.

> hw.nvidia.registry.EnableAGPSBA: 0
> hw.nvidia.registry.EnableAGPFW: 0
> hw.nvidia.registry.SoftEDIDs: 1
> hw.nvidia.registry.Mobile: 4294967295
> hw.nvidia.registry.ResmanDebugLevel: 4294967295
> hw.nvidia.registry.FlatPanelMode: 0
> hw.nvidia.cards.0.model: GeForce FX 5200
> hw.nvidia.cards.0.irq: 16
> hw.nvidia.cards.0.vbios: 04.34.20.56.00
> hw.nvidia.cards.0.type: AGP
> dev.nvidia.0.%desc: GeForce FX 5200
> dev.nvidia.0.%driver: nvidia
> dev.nvidia.0.%location: slot=0 function=0 handle=\_SB_.PCI0.AGPB.VGAG
> dev.nvidia.0.%pnpinfo: vendor=0x10de device=0x0322 subvendor=0x 
> subdevice=0x class=0x03
> dev.nvidia.0.%parent: pci1

I'm not seeing your hw.nvidia.agp.status.rate sysctl there, which
suggests the NVidia AGP isn't being loaded.  It may be having trouble
with the native AGP driver, but the failover isn't working because
there's a conflict - I had the same problem until I removed the native
agp device.

How did you compile the drivers?  My pkgtools.conf uses the following:
   'WITHOUT_LINUX=yes',
   'WITH_ACPI=yes',
This makes upgrades a little smoother.

My kernel config has the agp device removed, so the hw.nvidia sysctls
show the nvidia agp status:
# sysctl hw.nvidia.agp
hw.nvidia.agp.host-bridge.rates: 8x 4x 
hw.nvidia.agp.host-bridge.fw: supported
hw.nvidia.agp.host-bridge.sba: supported
hw.nvidia.agp.host-bridge.registers: 0x1f004a1b:0x0b02
hw.nvidia.agp.card.rates: 8x 4x 
hw.nvidia.agp.card.fw: supported
hw.nvidia.agp.card.sba: supported
hw.nvidia.agp.card.registers: 0x1f000e1b:0x1f004302
hw.nvidia.agp.status.status: enabled
hw.nvidia.agp.status.driver: nvidia
hw.nvidia.agp.status.rate: 8x
hw.nvidia.agp.status.fw: disabled
hw.nvidia.agp.status.sba: enabled

I don't know the exact nature of the fw (fast writes) sysctl, but it
doesn't seem to be supported in the FX5200.  The key you'll be looking
for is the hw.nvidia.agp.status.status sysctl, and it should say
enabled.  The hw.nvidia.agp.card.rates var should give you the
acceleration rates you are getting.

You might give that a try.  Just comment out the agp in your kernel,
don't delete it yet - just in case the nvidia agp doesn't like the
athlon for some reason.

Also, you'll want to make sure your xorg.conf has a good config.  I'm
using the TwinView feature, so my graphics device section won't
necessarily apply fully.  Just in case it will help, this is what I
use:

Section "Device"
Identifier "NV AGP TwinView"
VendorName  "nVidia Corporation"
Driver "nvidia"
# update this with the PCI id of your card.  Consult the output
# of the 'lspci' command. The  BusID is usually optional when
# only using one graphics card.
BusID 

AGP not working on nForce3

2005-01-09 Thread Mats Kristoffersen
I have trouble with AGP using the nVidia drivers from ports.
I have a MSI K8N neo2 motherboard (nForce3 Ultra), an Athlon64 3000+ CPU 
and a GeForce FX 5200. I'm running FreeBSD 5.3-STABLE in i386 mode.

When I load the nvidia drivers, it says:
agp0:  mem 0xe800-0xefff at 
device 0.0 on pci0
agp0: Unable to find NVIDIA Memory Controller 1.
device_attach: agp0 attach returned 19
nvidia0:  mem 
0xf000-0xf3ff,0xf400-0xf4ff irq 16 at device 0.0 on pci1
nvidia0: [GIANT-LOCKED]

When I startx, it says
NVRM: AGP cannot be enabled on this combination of the AMD CPU and OS kernel
NVRM: kernel upgrade recommended.
There is no /dev/agp or similar. Having agp enabled or disabled in the 
kernel or loading agp.ko dynamically makes no difference.

Nvidia-related sysctl variables:
hw.nvidia.agp.card.rates: 8x 4x
hw.nvidia.agp.card.fw: supported
hw.nvidia.agp.card.sba: supported
hw.nvidia.agp.card.registers: 0x1f000e1b:0x
hw.nvidia.version: NVIDIA FreeBSD x86 NVIDIA Kernel Module  1.0-6113 
Mon Aug  2 16:08:32 PDT 2004
hw.nvidia.registry.EnableVia4x: 0
hw.nvidia.registry.EnableALiAGP: 0
hw.nvidia.registry.NvAGP: 3
hw.nvidia.registry.EnableAGPSBA: 0
hw.nvidia.registry.EnableAGPFW: 0
hw.nvidia.registry.SoftEDIDs: 1
hw.nvidia.registry.Mobile: 4294967295
hw.nvidia.registry.ResmanDebugLevel: 4294967295
hw.nvidia.registry.FlatPanelMode: 0
hw.nvidia.cards.0.model: GeForce FX 5200
hw.nvidia.cards.0.irq: 16
hw.nvidia.cards.0.vbios: 04.34.20.56.00
hw.nvidia.cards.0.type: AGP
dev.nvidia.0.%desc: GeForce FX 5200
dev.nvidia.0.%driver: nvidia
dev.nvidia.0.%location: slot=0 function=0 handle=\_SB_.PCI0.AGPB.VGAG
dev.nvidia.0.%pnpinfo: vendor=0x10de device=0x0322 subvendor=0x 
subdevice=0x class=0x03
dev.nvidia.0.%parent: pci1

Hardware acceleration works fine, except for AGP.
Any help is appreciated.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"