Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Nvidia Driver AGP FastWrite and Side Band Addressing
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3, 4  Next  
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
DarkJedi9
Apprentice
Apprentice


Joined: 28 Oct 2002
Posts: 204

PostPosted: Tue Nov 19, 2002 7:59 pm    Post subject: Re: GLX source? Reply with quote

kvh009 wrote:
The only source file I could find for the GLX module was a .rpm

Yuck, I hate rpm... :evil:

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?


http://download.nvidia.com/XFree86_40/1.0-3123/NVIDIA_GLX-1.0-3123.tar.gz

http://download.nvidia.com/XFree86_40/1.0-3123/NVIDIA_kernel-1.0-3123.tar.gz
Back to top
View user's profile Send private message
guero61
l33t
l33t


Joined: 14 Oct 2002
Posts: 811
Location: Behind you

PostPosted: Tue Nov 19, 2002 10:56 pm    Post subject: Reply with quote

http://download.nvidia.com/XFree86_40/1.0-3123/NVIDIA_GLX-1.0-3123.tar.gz
Back to top
View user's profile Send private message
elboricua
Apprentice
Apprentice


Joined: 17 May 2002
Posts: 226
Location: Bronx, NY

PostPosted: Tue Nov 19, 2002 11:11 pm    Post subject: Reply with quote

DarkJedi9 wrote:
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.


The whole point of my tip is that you do not actually have to go through all of that. Adding options NVdriver NVreg_EnableAGPSBA=1 NVreg_EnableAGPFW=1 to the module options have the exact same effect without having to recompile the glx driver. Essentially this changes turns on those options in the reg file. It's really strange that it did not work for you with just editing the module.....

I use the kernel AGPGart on my box, I do not use the Nvidia one. I get average 40-45 FPS now in UT2003 Indoor maps. On the outdoor maps with lots of people like the Tokara Forest map I get about 25-30. Before enabling SBA and FW I was getting 25-30 on the indoor and 10-15 extremely unplayable FPS on the outdoor maps.
_________________
Boricua Hasta La Muerte
Back to top
View user's profile Send private message
col
l33t
l33t


Joined: 08 May 2002
Posts: 820
Location: Melbourne - Australia

PostPosted: Wed Nov 20, 2002 6:48 am    Post subject: Reply with quote

col wrote:
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 ???



I thought maybe this has something to do with my chipset (via kt400)
Back to top
View user's profile Send private message
DarkJedi9
Apprentice
Apprentice


Joined: 28 Oct 2002
Posts: 204

PostPosted: Wed Nov 20, 2002 2:45 pm    Post subject: Reply with quote

Col, check nvidia's readme to see if your chipset is supported by NvAGP. It's got a list somwhere in it.
Back to top
View user's profile Send private message
DarkJedi9
Apprentice
Apprentice


Joined: 28 Oct 2002
Posts: 204

PostPosted: Wed Nov 20, 2002 4:47 pm    Post subject: Reply with quote

Just checked, here's what the README says.

The following AGP chipsets are supported by NVIDIA's AGP; for all other
chipsets it's recommended that you use the AGPGART module.

o Intel 440LX
o Intel 440BX
o Intel 440GX
o Intel 815 ("Solano")
o Intel 820 ("Camino")
o Intel 830
o Intel 840 ("Carmel")
o Intel 845 ("Brookdale")
o Intel 845G
o Intel 850 ("Tehama")
o Intel 860 ("Colusa")
o AMD 751 ("Irongate")
o AMD 761 ("IGD4")
o AMD 762 ("IGD4 MP")
o VIA 8371
o VIA 82C694X
o VIA KT133
o VIA KT266
o RCC 6585HE
o Micron SAMDDR ("Samurai")
o Micron SCIDDR ("Scimitar")
o nForce AGP
o ALi 1621
o ALi 1631
o ALi 1647
o ALi 1651
o ALi 1671
o SiS 630
o SiS 633
o SiS 635
o SiS 645
o SiS 730
o SiS 733
o SiS 735
o SiS 745

It looks like you'll need to use the agpgart from the kernel or as a module.
Back to top
View user's profile Send private message
Mimamau
Apprentice
Apprentice


Joined: 11 Jun 2002
Posts: 160
Location: Germany

PostPosted: Wed Nov 20, 2002 6:22 pm    Post subject: Reply with quote

So what should I prefer? The NVIDIA's AGP or agpart from kernel? Which one is faster?
Back to top
View user's profile Send private message
ghetto
Guru
Guru


Joined: 10 Jul 2002
Posts: 369
Location: BC, Canada

PostPosted: Wed Nov 20, 2002 7:01 pm    Post subject: argh... Reply with quote

Dont you hate old PC's? I do..
Here is just one more reason.. i saw this post and i got pretty excited.. so i checked my card and found this..
cat /proc/driver/nvidia/agp/status
Status: Enabled
Driver: AGPGART
AGP Rate: 2x
Fast Writes: Disabled
SBA: Disabled
...ok no problem, lets see if i can improve it...
cat /proc/driver/nvidia/agp/card
Fast Writes: Supported
SBA: Not Supported
AGP Rates: 4x 2x 1x
Registers: 0x1f000017:0x1f000102
...aha, so it looks like i can improve one but not the other.. ok thats not great but i will take it, so now lets look at my MoBo and see what that says...
cat /proc/driver/nvidia/agp/host-bridge
Host Bridge: Intel 440LX
Fast Writes: Not Supported
SBA: Supported
AGP Rates: 2x 1x
Registers: 0x1f000203:0x00000102
...DAMN, so the one that my card supports is not supported by my MoBo and vice versa..

Aint life a kick in the ass sometimes?
_________________
Blizzard you suck.
Back to top
View user's profile Send private message
TheCoop
Veteran
Veteran


Joined: 15 Jun 2002
Posts: 1814
Location: Where you least expect it

PostPosted: Wed Nov 20, 2002 8:16 pm    Post subject: Reply with quote

get a new mobo :P
_________________
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
View user's profile Send private message
ghetto
Guru
Guru


Joined: 10 Jul 2002
Posts: 369
Location: BC, Canada

PostPosted: Wed Nov 20, 2002 9:52 pm    Post subject: yes i should get a new MoBo Reply with quote

I am looking for one.. something in the $150(cdn) range? preferably AMD, with ddr ram, no need for isa slots, no need for onboard scsi, lan, video or sound.. Something that would take a fairlly fast cpu im thinkg somewhere between 1600-2000XP, and at lease AGPx4 that supports 'Fast Writes'
:wink:
any sudgestions?
_________________
Blizzard you suck.
Back to top
View user's profile Send private message
TheCoop
Veteran
Veteran


Joined: 15 Jun 2002
Posts: 1814
Location: Where you least expect it

PostPosted: Wed Nov 20, 2002 10:41 pm    Post subject: Reply with quote

epox are good, as are gigabyte
_________________
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
View user's profile Send private message
col
l33t
l33t


Joined: 08 May 2002
Posts: 820
Location: Melbourne - Australia

PostPosted: Wed Nov 20, 2002 10:44 pm    Post subject: Reply with quote

I have a new Gigabyte 7VAXP & it works perfectly on gentoo .... only 1 minor problem I cant get the SPDIF digital audio out to work.
Back to top
View user's profile Send private message
DarkJedi9
Apprentice
Apprentice


Joined: 28 Oct 2002
Posts: 204

PostPosted: Thu Nov 21, 2002 5:10 am    Post subject: Reply with quote

Mimamau wrote:
So what should I prefer? The NVIDIA's AGP or agpart from kernel? Which one is faster?


Officially, I think they're equal. But it seems most people prefer agpgart if it's available. Use the Option "NvAGP" "3" line and you should be all set.
Back to top
View user's profile Send private message
TheCoop
Veteran
Veteran


Joined: 15 Jun 2002
Posts: 1814
Location: Where you least expect it

PostPosted: Thu Nov 21, 2002 7:42 am    Post subject: Reply with quote

i get lower fps in quake3 when using the agpgart interface
_________________
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
View user's profile Send private message
DarkJedi9
Apprentice
Apprentice


Joined: 28 Oct 2002
Posts: 204

PostPosted: Thu Nov 21, 2002 2:07 pm    Post subject: Reply with quote

Well, whatever works for you I guess. Experiment a little if you wanna squeeze out every last frame. (And I know you do... :))
Back to top
View user's profile Send private message
col
l33t
l33t


Joined: 08 May 2002
Posts: 820
Location: Melbourne - Australia

PostPosted: Fri Nov 22, 2002 8:29 am    Post subject: Reply with quote

I compiled my NVdriver module using my old KT333 board & used to get 40-70 fps on UT2003 demo......same as or better than windows. Then I got a new KT400 board & got basically the same frame rate until I tried to recompile my NVdriver....now I only get 10-40 fps.....what has happend ?? not happy.....
Back to top
View user's profile Send private message
col
l33t
l33t


Joined: 08 May 2002
Posts: 820
Location: Melbourne - Australia

PostPosted: Fri Nov 22, 2002 11:26 am    Post subject: Reply with quote

col wrote:
I compiled my NVdriver module using my old KT333 board & used to get 40-70 fps on UT2003 demo......same as or better than windows. Then I got a new KT400 board & got basically the same frame rate until I tried to recompile my NVdriver....now I only get 10-40 fps.....what has happend ?? not happy.....


YAY....fixed the KT400 problem.
not sure if this is necessary but I edited the kernel source,
/usr/src/linux/drivers/char/agp/agpgart_be.c & changed this to enable:

static int agp_try_unsupported __initdata = 1;

re-compiled the kernel with agpgart as a module

edit /etc/modules.autoload

agpgart agp_try_unsupported=1
NVdriver NVreg_EnableAGPSBA=1 NVreg_EnableAGPFW=1

reboot

cat /proc/driver/nvidia/agp/status
Status: Enabled
Driver: AGPGART
AGP Rate: 4x
Fast Writes: Enabled
SBA: Enabled

I now get 50-100 FPS in ut2003 with the new options
Back to top
View user's profile Send private message
DarkJedi9
Apprentice
Apprentice


Joined: 28 Oct 2002
Posts: 204

PostPosted: Fri Nov 22, 2002 5:39 pm    Post subject: Reply with quote

Nice. Is what was probably happening was you didn't have a supported mobo (KT400 is pretty new) so agpgart wasn't even loading. The try unsupported will attempt to treat it like a similar compatible mobo, in this case most likely the KT333. Not sure if that's exactly how it goes but if it works it works. I personally need to look into NvAGP to see if using that will bump my frame rate a little. I know 65 is nothing bad but I can do better.
Back to top
View user's profile Send private message
DarkJedi9
Apprentice
Apprentice


Joined: 28 Oct 2002
Posts: 204

PostPosted: Fri Nov 22, 2002 5:39 pm    Post subject: Reply with quote

Nice. Is what was probably happening was you didn't have a supported mobo (KT400 is pretty new) so agpgart wasn't even loading. The try unsupported will attempt to treat it like a similar compatible mobo, in this case most likely the KT333. Not sure if that's exactly how it goes but if it works it works. I personally need to look into NvAGP to see if using that will bump my frame rate a little. I know 65 is nothing bad but I can do better.
Back to top
View user's profile Send private message
DarkJedi9
Apprentice
Apprentice


Joined: 28 Oct 2002
Posts: 204

PostPosted: Fri Nov 22, 2002 5:40 pm    Post subject: Reply with quote

Oops! :oops:
Back to top
View user's profile Send private message
squanto
Guru
Guru


Joined: 20 Apr 2002
Posts: 524
Location: Rochester, NY, USA

PostPosted: Sun Nov 24, 2002 2:32 am    Post subject: Reply with quote

Well, I got myself a GeForce4 Ti4200 in my puter right now, only thing is, it only puts out about 1fps faster in the ut2003 --bench test than my GeForce3 Ti200 did. I notice that RTCW runs about the same as well.
I have fastwrites and sba on for the 4200 but had them both off on my gf3.
Interesting note of the day, I will be going back to my GF3 as the 4200 is not owned by me ;)
Back to top
View user's profile Send private message
ghetto
Guru
Guru


Joined: 10 Jul 2002
Posts: 369
Location: BC, Canada

PostPosted: Sun Jan 05, 2003 1:58 am    Post subject: 6 of one, half dozen of another... still Reply with quote

well i finally upgraded some of my hardware.. I got a new cpu and mobo, but I still have the same problem that I had with my old mobo..
# cat /proc/driver/nvidia/agp/card
Fast Writes: Supported
SBA: Not Supported
AGP Rates: 4x 2x 1x
Registers: 0x1f000017:0x1f000104

# cat /proc/driver/nvidia/agp/host-bridge
Host Bridge: Via Apollo Pro KT133
Fast Writes: Not Supported
SBA: Supported
AGP Rates: 4x 2x 1x
Registers: 0x1f000207:0x00000104

Looks like now i need a new Nvidia card.. whats a good bang for my buck now a days.. currently i have a pretty old one (geforce2 mx400) and i love it.. but i really would like something a bit newer and also that could take advantage of SBA. Any sudgestions?
_________________
Blizzard you suck.
Back to top
View user's profile Send private message
DarkJedi9
Apprentice
Apprentice


Joined: 28 Oct 2002
Posts: 204

PostPosted: Sun Jan 05, 2003 3:47 am    Post subject: Re: 6 of one, half dozen of another... still Reply with quote

ghetto wrote:
well i finally upgraded some of my hardware.. I got a new cpu and mobo, but I still have the same problem that I had with my old mobo..
# cat /proc/driver/nvidia/agp/card
Fast Writes: Supported
SBA: Not Supported
AGP Rates: 4x 2x 1x
Registers: 0x1f000017:0x1f000104

# cat /proc/driver/nvidia/agp/host-bridge
Host Bridge: Via Apollo Pro KT133
Fast Writes: Not Supported
SBA: Supported
AGP Rates: 4x 2x 1x
Registers: 0x1f000207:0x00000104

Looks like now i need a new Nvidia card.. whats a good bang for my buck now a days.. currently i have a pretty old one (geforce2 mx400) and i love it.. but i really would like something a bit newer and also that could take advantage of SBA. Any sudgestions?


Gotta go GeForce 4. I would recommend maybe the TI-4200 or 4400 if you're on a budget but if you can afford it then the 4600 is of course better. However, you may want to save some money and wait for the GeForce FX. (Those might get pricey though...)
Back to top
View user's profile Send private message
puddpunk
l33t
l33t


Joined: 20 Jul 2002
Posts: 681
Location: New Zealand

PostPosted: Sun Jan 05, 2003 10:04 am    Post subject: Reply with quote

Well, as it turns out, My motherboard supports FastWrites, but my Video card only supports SBA, which my motherboard helpfuly doesn't support.

Woohoo. No tweaking for me :(
Back to top
View user's profile Send private message
rbonthond
Apprentice
Apprentice


Joined: 24 Jun 2002
Posts: 190

PostPosted: Sun Jan 05, 2003 10:15 pm    Post subject: Reply with quote

I have a Gigabyte GA-8PE667Ultra S478 motherboard and a ASUS v8460 Ti4600 GeForce4 card.

using Option "NvAgp" "1" for XFree86.
/proc/driver/nvidia/agp/status reports the following:
Code:

Status:          Enabled
Driver:          NVIDIA
AGP Rate:        4x
Fast Writes:     Enabled
SBA:             Disabled


Unfortunately SBA gives really nice ansi art in XFree (=lockup).

Anybody got a clue why fastwrites would work and SBA not ?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Goto page Previous  1, 2, 3, 4  Next
Page 2 of 4

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum