View previous topic :: View next topic |
Author |
Message |
elboricua Apprentice
Joined: 17 May 2002 Posts: 226 Location: Bronx, NY
|
Posted: Fri Nov 01, 2002 7:45 pm Post subject: Nvidia Driver AGP FastWrite and Side Band Addressing |
|
|
I got this tip from gleaning info from a few threads here on the gentoo boards, some from the infogrames boards, and some from reading through the nvidia documentation. I discovered this while trying to squeeze a few more FPS from my UT2003 install.
I found that by default the nvidia drivers do not enable AGP FastWrites or Side Band Addressing. Here is a quick and easy way to turn it on.
NOTE To enable fastwrite you must have a motherboard that supports it, and have it turned on in the BIOS. Most AMD boards have fastwrite capability. I am not sure about Pentium based boards.
*(This tip requires a reboot. Unloading and reloading the driver just gets you an unstable system:/)*
First check to see if the FastWrites and SBA is enabled or disabled
Code: | $ cat /proc/driver/nvidia/agp/status
Status: Enabled
Driver: AGPGART
AGP Rate: 4x
Fast Writes: Enabled
SBA: Enabled |
(my system has it enabled because I turned it on. You may see that it says disabled.)
Now before enabling fastwrites and sba make sure that your video card supports it. The Geforce 2 GTS cards and Geforce Ti cards support it. I am not sure if the MX cards do.
Code: | cat /proc/driver/nvidia/agp/card
Fast Writes: Supported
SBA: Supported
AGP Rates: 4x 2x 1x
Registers: 0x1f000217:0x1f000314 |
If your card supports FW and SBA then just do the following:
edit /etc/modules.d/nvidia.
Code: | alias char-major-195 NVdriver
options NVdriver NVreg_EnableAGPSBA=1 NVreg_EnableAGPFW=1 |
Reboot. To make sure that the Fastwrite and SBA are enabled just
Code: | $ cat /proc/driver/nvidia/agp/status
Status: Enabled
Driver: AGPGART
AGP Rate: 4x
Fast Writes: Enabled
SBA: Enabled |
This helped to up my frames per second in UT2k3, Quake3, RTCW and generally all of my first person games _________________ Boricua Hasta La Muerte |
|
Back to top |
|
|
mooteel n00b
Joined: 18 Apr 2002 Posts: 8 Location: Montreal, QC
|
Posted: Fri Nov 01, 2002 8:19 pm Post subject: |
|
|
Just for the record, I have a ASUS, VIA based motherboard with a Pentium III and I have to enable Fast Writes in my BIOS too. |
|
Back to top |
|
|
floam Veteran
Joined: 27 Oct 2002 Posts: 1067 Location: Vancouver, WA USA
|
Posted: Sat Nov 02, 2002 4:14 am Post subject: |
|
|
be warned: enabling fastwrites can cause lots of system instability with some via chipsets. |
|
Back to top |
|
|
roTor n00b
Joined: 21 Apr 2002 Posts: 55 Location: Atlanta, GA
|
Posted: Sun Nov 03, 2002 10:03 pm Post subject: |
|
|
floam wrote: | be warned: enabling fastwrites can cause lots of system instability with some via chipsets. |
This is VERY true.
Tried it with an Abit KX7-333 (Via KT chipset) and it would lock the computer up hard at KDM login.
Couldn't even telnet in to shut the thing down.
Use at your own risk. _________________ Even if you're on the right track, you'll get run over if you just sit there.
-- Will Rogers |
|
Back to top |
|
|
ejwahl Tux's lil' helper
Joined: 27 May 2002 Posts: 107 Location: Rhode Island
|
Posted: Mon Nov 04, 2002 2:27 am Post subject: |
|
|
No problems so far with an ABIT KG-7 (AMD 761 chipset), GeForce4 Ti 4400 and Flux...
Thanks for the tip... _________________ Erich J. Wahl
RLU 199500
ICQ 48100000
Last edited by ejwahl on Mon Nov 04, 2002 5:44 pm; edited 1 time in total |
|
Back to top |
|
|
squanto Guru
Joined: 20 Apr 2002 Posts: 524 Location: Rochester, NY, USA
|
Posted: Mon Nov 04, 2002 6:14 am Post subject: |
|
|
Code: | cat /proc/driver/nvidia/agp/host-bridge
Host Bridge: Via Apollo Pro KT266
Fast Writes: Supported
SBA: Supported
AGP Rates: 4x 2x 1x
Registers: 0x1f000217:0x00000104
cat /proc/driver/nvidia/agp/card
Fast Writes: Not Supported
SBA: Not Supported
AGP Rates: 4x 2x 1x
Registers: 0x1f000007:0x1f000104
cat /proc/driver/nvidia/agp/status
Status: Enabled
Driver: AGPGART
AGP Rate: 4x
Fast Writes: Disabled
SBA: Disabled
|
This is on my GeForce3 Ti200 card. I notice the Fast Writes Not Supported part and wonder. Will what you tell me work?
I think that the agpstatus part would be a card setting because when I turn on fastwrite in my bios I get these results, but with fastwrite disabled in bios, it tells me it is disabled in host-bridge.
I am gonig to try it anyways, but just wanted to see if anyone with gf3's noticed this on their cards as well?
Should AGPGART show up as my driver?
Thanks,
Andrew
EDIT: I built a kernel without AGPGART support so that I will use the nvidia agp support, and without tweaking the fastwrite / sba and I notice that opengl runs slower on the nvidia agp setup (aka, no agpgart in kernel)
I also get Code: | cat /proc/driver/nvidia/agp/status
Status: Disabled | without agpgart |
|
Back to top |
|
|
squanto Guru
Joined: 20 Apr 2002 Posts: 524 Location: Rochester, NY, USA
|
Posted: Mon Nov 04, 2002 8:43 am Post subject: |
|
|
Well I guess on GF3Ti200 you cant turn on Fast Write and sba, but I wound up in the process of doing all this, to wind up building a new kernel and unmerging all the nvidia stuff and then emerging all the nvidia stuff and then putting the fastwrite options in, and when I used to get like 30fps max in ut2k3 I now get like 45 consistant and the game is much more fun. I am back to the AGPGART based setup, it works great now.
Now to build a 2.5 series kernel
So overal I am happy.
It is 4am here, bed time
-Andrew |
|
Back to top |
|
|
tirantloblanc Apprentice
Joined: 22 Oct 2002 Posts: 179 Location: Barcelona, ES
|
Posted: Mon Nov 04, 2002 4:50 pm Post subject: |
|
|
Thanks for the advice, enabling "Fast Writes" made my system faster when running UT2003!!!
MotherBoard ECS K7S6A
Chipset: SiS 745
It does support "Fast Writes" and "SBA"
AGPgart: Kernel 2.4.19-Gentoo
Graphics card: Hercules 3D Prophet II MX 32MB AGP
Chipset: nvidia Geforce 2 MX
It only supports "Fast Writes"
Driver: Nvidia-latest
I haven't had any stability issue. This motherboard is superstable! and only cost me 55!!
Code: |
tirantloblanc@merlin:~$ cat /etc/modules.d/nvidia
alias char-major-195 NVdriver
# Enable Fast Write
options NVdriver NVreg_EnableAGPFW=1
# Enable SBA
#NVreg_EnableAGPSBA=1
|
|
|
Back to top |
|
|
TheCoop Veteran
Joined: 15 Jun 2002 Posts: 1814 Location: Where you least expect it
|
Posted: Mon Nov 04, 2002 5:35 pm Post subject: |
|
|
it screwed up my system, X locked up on bootup, i had to boot from the cd to change the nvidia file back...
GF4 TI4200
Epox 8KHA mobo /w VIA KT266 chipset _________________ 95% of all computer errors occur between chair and keyboard (TM)
"One World, One web, One program" - Microsoft Promo ad.
"Ein Volk, Ein Reich, Ein Führer" - Adolf Hitler
Change the world - move a rock |
|
Back to top |
|
|
kvh009 n00b
Joined: 19 Apr 2002 Posts: 19 Location: Indianapolis, IN
|
Posted: Thu Nov 14, 2002 3:37 pm Post subject: Where change in BIOS? |
|
|
I've got Phoenix - Award BIOS v6.00PG; I can't find any place to change the AGP Fast Writes. Fast Writes not enabled even after reboot...running 1.4 gentoo.
Any ideas?
% cat /proc/driver/nvidia/agp/status
Status: Enabled
Driver: NVIDIA
AGP Rate: 4x
Fast Writes: Disabled
SBA: Disabled
% cat /proc/driver/nvidia/agp/card
Fast Writes: Supported
SBA: Not Supported
AGP Rates: 4x 1x
Registers: 0x1f000015:0x1f000104
% cat /etc/modules.d/nvidia
alias char-major-195 NVdriver
options NVdriver Vreg_EnableAGPFW=1 |
|
Back to top |
|
|
tirantloblanc Apprentice
Joined: 22 Oct 2002 Posts: 179 Location: Barcelona, ES
|
Posted: Fri Nov 15, 2002 12:57 pm Post subject: |
|
|
kvh009:
your m/b must support Fast writes, too:
cat /proc/driver/nvidia/agp/host-bridge
Host Bridge: SiS (unknown)
Fast Writes: Supported
SBA: Supported
AGP Rates: 4x 2x 1x
Registers: 0x1f000217:0x00000114
I didn't have any option to change in my BIOS. |
|
Back to top |
|
|
squanto Guru
Joined: 20 Apr 2002 Posts: 524 Location: Rochester, NY, USA
|
Posted: Fri Nov 15, 2002 1:51 pm Post subject: |
|
|
tirantloblanc wrote: | I didn't have any option to change in my BIOS. |
If it says supported (for host-bridge), it is already on in your bios, nothing to change there
if you were able to turn it off, it would then say unsupported or disabled.
-Andrew |
|
Back to top |
|
|
tirantloblanc Apprentice
Joined: 22 Oct 2002 Posts: 179 Location: Barcelona, ES
|
Posted: Fri Nov 15, 2002 3:00 pm Post subject: |
|
|
If it says supported (for host-bridge), it is already on in your bios, nothing to change there
I was pointing that if there's no option in the BIOS, it comes enabled by default. |
|
Back to top |
|
|
kvh009 n00b
Joined: 19 Apr 2002 Posts: 19 Location: Indianapolis, IN
|
Posted: Sat Nov 16, 2002 7:01 am Post subject: MB has it support, but FW still not on. |
|
|
It seems my MB supports both options, but I still can't figure how to turn Fast Writes on.
%cat /proc/driver/nvidia/agp/host-bridge
Host Bridge: nVidia nForce
Fast Writes: Supported
SBA: Supported
AGP Rates: 4x 2x 1x
Registers: 0x1f000217:0x00000104
% cat /proc/driver/nvidia/agp/status
Status: Enabled
Driver: NVIDIA
AGP Rate: 4x
Fast Writes: Disabled
SBA: Disabled |
|
Back to top |
|
|
DarkJedi9 Apprentice
Joined: 28 Oct 2002 Posts: 204
|
Posted: Sat Nov 16, 2002 10:08 pm Post subject: |
|
|
Agh, all kinds of problems getting this working. When I do cat /proc/driver/nvidia/agp/status, it says it is Disabled. I checked dmesg and it has this in it:
Linux 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 I edited my /etc/modules.d/nvidia file to look like this:
alias char-major-195 NVdriver
options agp_try_unsupported=1
and rebooted. But I still get agpgart as disabled. Any suggestions? |
|
Back to top |
|
|
col l33t
Joined: 08 May 2002 Posts: 820 Location: Melbourne - Australia
|
Posted: Sun Nov 17, 2002 12:07 pm Post subject: |
|
|
After I aplied the module options I get :
cat /proc/driver/nvidia/agp/status
Status: Disabled
so I dont know if its working....didnt notice any more speed. |
|
Back to top |
|
|
TheCoop Veteran
Joined: 15 Jun 2002 Posts: 1814 Location: Where you least expect it
|
Posted: Sun Nov 17, 2002 12:41 pm Post subject: |
|
|
try the nvagp driver instead of the kernel agp driver _________________ 95% of all computer errors occur between chair and keyboard (TM)
"One World, One web, One program" - Microsoft Promo ad.
"Ein Volk, Ein Reich, Ein Führer" - Adolf Hitler
Change the world - move a rock |
|
Back to top |
|
|
squanto Guru
Joined: 20 Apr 2002 Posts: 524 Location: Rochester, NY, USA
|
Posted: Sun Nov 17, 2002 10:37 pm Post subject: |
|
|
TheCoop wrote: | try the nvagp driver instead of the kernel agp driver |
Squanto wrote: | EDIT: I built a kernel without AGPGART support so that I will use the nvidia agp support, and without tweaking the fastwrite / sba and I notice that opengl runs slower on the nvidia agp setup (aka, no agpgart in kernel)
I also get
Code: Code: |
cat /proc/driver/nvidia/agp/status
Status: Disabled |
without agpgart |
With out having agpgart, and by using the nvagp setup, I noticed that games ran much slower, fps wise. Just to let you know. |
|
Back to top |
|
|
col l33t
Joined: 08 May 2002 Posts: 820 Location: Melbourne - Australia
|
Posted: Sun Nov 17, 2002 11:19 pm Post subject: |
|
|
ok I recompiled my kernel removing agpgart & now I still get:
cat /proc/driver/nvidia/agp/status
Status: Disabled
In my XF86Conifg I have:
Option "NvAGP" "1" (nvagp)
Now my UT2003 frame rate is worse.....what's the deal ??? |
|
Back to top |
|
|
DarkJedi9 Apprentice
Joined: 28 Oct 2002 Posts: 204
|
Posted: Mon Nov 18, 2002 4:42 am Post subject: |
|
|
I just got mine working. I compiled /dev/agpgart support as a module and put a line in my vid card section of XF86Config that reads Option "NvAGP" "3" which tells X to use agpgart and then NvAGP if agpgart isn't available. Also, and this was key, I had to do a little source editing. Here's a copy-and-paste from my post at Linuxnewbie.org
Here's how I did it. I did emerge -C on nvidia-kernel and nvidia-glx (that's gentoo talk for uninstalled my nvidia "stuff"). Then I downloaded the tarballs from Nvidia's site. Now, I can't take credit for this. A friend of my brothers at college (that's university for our friends across the pond ) told me what to do next.
Change into the directory created by unzipping the nvidia_kernel-blahblahblah tarball. Open the file os-registry.c, and go down to line 228 (I believe), and change "static int NVreg_EnableAGPSBA = 0;" so that the 0 is a 1. Do the same for line 254 (again that should be it). The only difference is it's going to say FW instead of SBA. Either way, it needs to be 1, not 0. The SBA stands for side band addressing, and the fw for fast writing, by the way. Save the file, and do make install, then change to the nvidia_glx- blahblahblah, and do make install again.
In /etc/modules.conf (or whatever file is necessary to edit said file, with gentoo changes are made to /etc/modules.d/nvidia) I need the line options agp_try_unsupported=1 because my MOBO is very new. Then in the Device section of XF86Config that applies to your vid card, add the line Option "NvAGP" "3". According to nvidia's readme, this will use NvAGP if possible, otherwise it will use AGPGART.
I set /dev/agpgart to a module in my kernel config, and I'm pretty sure I don't have it loading. The chipset on my card (VIA Apollo KT266) works with NvAGP, so I'm pretty sure I don't need agpgart anyway. I think that should be all that's needed.
Here's the full post: http://www.linuxnewbie.org/forum/showthread.php?s=&threadid=75077
Hope it helps. |
|
Back to top |
|
|
wHAcKer Apprentice
Joined: 18 Oct 2002 Posts: 228 Location: Grimbergen, Belgium
|
Posted: Mon Nov 18, 2002 5:36 pm Post subject: |
|
|
works like a charm on a xp 2000+ with soltek drv5 mobo and geforce 4 ti 4200
thanks a lot mate |
|
Back to top |
|
|
DarkJedi9 Apprentice
Joined: 28 Oct 2002 Posts: 204
|
Posted: Mon Nov 18, 2002 6:30 pm Post subject: |
|
|
wHAcKer wrote: | works like a charm on a xp 2000+ with soltek drv5 mobo and geforce 4 ti 4200
thanks a lot mate |
Good to hear. |
|
Back to top |
|
|
kvh009 n00b
Joined: 19 Apr 2002 Posts: 19 Location: Indianapolis, IN
|
Posted: Tue Nov 19, 2002 6:37 am Post subject: Benchmark for FW? |
|
|
DarkJedi9 wrote: | wHAcKer wrote: | works like a charm on a xp 2000+ with soltek drv5 mobo and geforce 4 ti 4200
thanks a lot mate |
Good to hear. |
I can only do FastWrites; is it really worth this trouble? Does anyone have any benchmarks? Would glxgears be a good benchmark?
Kurt |
|
Back to top |
|
|
DarkJedi9 Apprentice
Joined: 28 Oct 2002 Posts: 204
|
Posted: Tue Nov 19, 2002 6:56 am Post subject: |
|
|
For me, I "benchmark" with glxgears. I don't think it's terribly accurate, but I doubled my fps when I enable FW and SBA. No idea how just FW will affect things. Personally, I would try it. I'm sure it will help a little. |
|
Back to top |
|
|
kvh009 n00b
Joined: 19 Apr 2002 Posts: 19 Location: Indianapolis, IN
|
Posted: Tue Nov 19, 2002 7:07 pm Post subject: GLX source? |
|
|
The only source file I could find for the GLX module was a .rpm
Yuck, I hate rpm...
NVIDIA_GLX-1.0-3123.src.rpm
And that appears to be binary only...no source files....Hmmmmm....
Where did you get the source code for the GLX part? |
|
Back to top |
|
|
|