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  
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
TheCoop
Veteran
Veteran


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

PostPosted: Thu Jul 22, 2004 8:37 pm    Post subject: Reply with quote

theres a howto i wrote last year on the docs forum about getting the nvidia driver working with fastwrite and sba, search for it
_________________
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
DrWoland
l33t
l33t


Joined: 13 Nov 2004
Posts: 603

PostPosted: Sat Jan 08, 2005 10:38 pm    Post subject: Reply with quote

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


:ugh: Overkill, I didn't have to do any of this...
Back to top
View user's profile Send private message
seank
l33t
l33t


Joined: 08 Jul 2004
Posts: 686

PostPosted: Sun Jan 09, 2005 3:14 am    Post subject: Reply with quote

Code:
[~] $ cat /proc/driver/nvidia/agp/card   
Fast Writes:     Supported
SBA:        Supported
AGP Rates:     4x 2x 1x
Registers:     0x1f000217:0x1f000304
[~] $

Code:
[~] $ cat /proc/driver/nvidia/agp/status
Status:     Enabled
Driver:     NVIDIA
AGP Rate:     4x
Fast Writes:     Disabled
SBA:        Enabled
[~] $

Code:
[~] $ grep -v '^#' /etc/modules.d/nvidia
alias char-major-195 nvidia
alias /dev/nvidiactl char-major-195

options nvidia NVreg_EnableAGPSBA=1 NVreg_EnableAGPFW=1

[~] $


Anyone know why Fast Writes isn't being enabled?
Back to top
View user's profile Send private message
Deep-VI
n00b
n00b


Joined: 09 Jan 2005
Posts: 18

PostPosted: Sun Jan 16, 2005 6:25 pm    Post subject: Reply with quote

Check your host bridge capabilities as well:
Code:
cat /proc/driver/nvidia/agp/host-bridge
Back to top
View user's profile Send private message
seank
l33t
l33t


Joined: 08 Jul 2004
Posts: 686

PostPosted: Sun Jan 16, 2005 8:08 pm    Post subject: Reply with quote

Deep-VI wrote:
Check your host bridge capabilities as well:
Code:
cat /proc/driver/nvidia/agp/host-bridge

Ah, well that explains it. Thanks.
Back to top
View user's profile Send private message
96140
Retired Dev
Retired Dev


Joined: 23 Jan 2005
Posts: 1324

PostPosted: Tue Feb 15, 2005 8:41 am    Post subject: Reply with quote

--

Last edited by 96140 on Fri Sep 13, 2013 9:39 am; edited 1 time in total
Back to top
View user's profile Send private message
JackDog
Apprentice
Apprentice


Joined: 09 Sep 2004
Posts: 297
Location: St. Louis, Missoura

PostPosted: Wed Mar 23, 2005 8:31 pm    Post subject: Reply with quote

Just thought I would chime in...

nforce3 150 on a GB K8N-Pro with an nvidia 6800 works great. No problems at all

Code:

Computer agp # cat card host-bridge status
Fast Writes:     Supported
SBA:             Supported
AGP Rates:       8x 4x
Registers:       0xff000e1b:0x1f004312
Host Bridge:     nVidia Corporation nForce3 Host Bridge
Fast Writes:     Supported
SBA:             Supported
AGP Rates:       8x 4x
Registers:       0x1f00421b:0x00000312
Status:          Enabled
Driver:          AGPGART
AGP Rate:        8x
Fast Writes:     Enabled
SBA:             Enabled



Thanks for the info!
_________________
Are you intolerant of intolerant people? Tired of being PC yet?
Back to top
View user's profile Send private message
shakti
Guru
Guru


Joined: 15 May 2002
Posts: 358
Location: omnipresent

PostPosted: Mon Jun 06, 2005 4:09 am    Post subject: Reply with quote

Code:
cat card host-bridge status
Fast Writes:     Supported
SBA:             Supported
AGP Rates:       4x 2x 1x
Registers:       0x1f000217:0x1f000104
Host Bridge:     nVidia Corporation nForce2 AGP (different version?)
Fast Writes:     Supported
SBA:             Supported
AGP Rates:       4x 2x 1x
Registers:       0x1f000217:0x00000104
Status:          Enabled
Driver:          NVIDIA
AGP Rate:        4x
Fast Writes:     Disabled
SBA:             Disabled


cat /etc/modules.d/nvidia
# Nvidia drivers support
alias char-major-195 NVdriver
alias /dev/nvidiactl char-major-195

# To tweak the driver the following options can be used, note that
# you should be careful, as it could cause instability!! For more
# option see /usr/share/doc/nvidia-kernel-1.0.7174/README.gz
#
#   To enable Side Band Adressing:  NVreg_EnableAGPSBA=1
#
#   To enable Fast Writes: NVreg_EnableAGPFW=1
#
# To enable both for instance, uncomment following line:
#
options NVdriver NVreg_EnableAGPFW=1 NVreg_EnableAGPSBA=1




I did a modules-update, checked that its enabled in bios, reboot...nope not working. Using nvidia-kernel-1.0.7174.
_________________
Using Gentoo since 2002.
Back to top
View user's profile Send private message
Fuzzo
Guru
Guru


Joined: 23 Jun 2004
Posts: 319
Location: Padova, Italy

PostPosted: Sat Jun 11, 2005 11:15 am    Post subject: Reply with quote

Both my card and host-bridge supports SBA and FW but if I enable these, X hangs at startup :(
I have AGPGART static compiled on the 2.6.11-r9 but:
Code:
Dell5150 root # cat /proc/driver/nvidia/agp/status
Status:          Enabled
Driver:          NVIDIA
AGP Rate:        4x
Fast Writes:     Disabled
SBA:             Disabled

and
Code:
Dell5150 root # cat /proc/driver/nvidia/registry
VideoMemoryTypeOverride: 1
EnableVia4x: 0
EnableALiAGP: 0
NvAGP: 3
ReqAGPRate: 7
EnableAGPSBA: 0
EnableAGPFW: 0
SoftEDIDs: 1
Mobile: 4294967295
ResmanDebugLevel: 4294967295
FlatPanelMode: 0
DevicesConnected: 0
VideoEnhancement: 0
RmLogonRC: 1
ModifyDeviceFiles: 1
DeviceFileUID: 0
DeviceFileGID: 0
DeviceFileMode: 438


Should I have also intel-agp module to enable FW and SBA? :?:
_________________
bye,
Fuzzo
Back to top
View user's profile Send private message
JustGags
n00b
n00b


Joined: 29 Apr 2005
Posts: 32

PostPosted: Sun Sep 03, 2006 9:33 pm    Post subject: Reply with quote

Is this still worth doing? With Xorg modular and latest nVidia drivers?
Back to top
View user's profile Send private message
Fuzzo
Guru
Guru


Joined: 23 Jun 2004
Posts: 319
Location: Padova, Italy

PostPosted: Sun Sep 03, 2006 9:40 pm    Post subject: Reply with quote

No, now it works :)
_________________
bye,
Fuzzo
Back to top
View user's profile Send private message
JustGags
n00b
n00b


Joined: 29 Apr 2005
Posts: 32

PostPosted: Mon Sep 04, 2006 9:23 pm    Post subject: Reply with quote

Fuzzo wrote:
No, now it works :)


Could you elaborate?
Back to top
View user's profile Send private message
Fuzzo
Guru
Guru


Joined: 23 Jun 2004
Posts: 319
Location: Padova, Italy

PostPosted: Mon Sep 04, 2006 9:34 pm    Post subject: Reply with quote

I've removed agpgart from the kernel and i've uncomment this
Code:
#NVreg_EnableAGPSBA=1
#
#NVreg_EnableAGPFW=1

_________________
bye,
Fuzzo
Back to top
View user's profile Send private message
sliwowitz
Apprentice
Apprentice


Joined: 21 Jan 2005
Posts: 196
Location: Europe/Prague

PostPosted: Wed Aug 01, 2007 10:16 pm    Post subject: Reply with quote

I uncommented the suggested line in /etc/modules.d/nvidia, but
Code:
jiri ~ #  cat /proc/driver/nvidia/agp/status
Status:          Disabled

AGP initialization failed, please check the ouput 
of the 'dmesg' command and/or your system log file
for additional information on this problem.       
jiri ~ # dmesg | grep NVAGP
NVRM: not using NVAGP, an AGPGART backend is loaded!

So I followed the wiki - added agpgart and intel-agp to /etc/hotplug/blacklist and changed /etc/modules.d/aliases, but then udev tries to load intel-agp, but gets unresolved symbols as well as when it tries to load the nvidia module. See the whole dmesg output. Both /proc/driver/nvidia/agp/card and /proc/driver/nvidia/agp/host-bridge show FastWrite ans SBA is supported.
Back to top
View user's profile Send private message
Tolstoi
l33t
l33t


Joined: 20 May 2004
Posts: 678

PostPosted: Tue Aug 14, 2007 7:47 pm    Post subject: Reply with quote

sliwowitz wrote:
I uncommented the suggested line in /etc/modules.d/nvidia, but
Code:
jiri ~ #  cat /proc/driver/nvidia/agp/status
Status:          Disabled

AGP initialization failed, please check the ouput 
of the 'dmesg' command and/or your system log file
for additional information on this problem.       


Exactly the message I get. I've tried NVAGP, AGPART kompiled in kernel as well as a module. And always that message.

lspci -vv
Code:


01:00.0 VGA compatible controller: nVidia Corporation NV34 [GeForce FX 5200] (rev a1) (prog-if 00 [VGA])
        Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
        Status: Cap+ 66MHz+ UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
        Latency: 248 (1250ns min, 250ns max)
        Interrupt: pin A routed to IRQ 22
        Region 0: Memory at fd000000 (32-bit, non-prefetchable) [size=16M]
        Region 1: Memory at d0000000 (32-bit, prefetchable) [size=128M]
        [virtual] Expansion ROM at fe8e0000 [disabled] [size=128K]
        Capabilities: [60] Power Management version 2
                Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
                Status: D0 PME-Enable- DSel=0 DScale=0 PME-
        Capabilities: [44] AGP version 3.0
                Status: RQ=32 Iso- ArqSz=0 Cal=3 SBA+ ITACoh- GART64- HTrans- 64bit- FW+ AGP3+ Rate=x4,x8
                Command: RQ=1 ArqSz=0 Cal=0 SBA- AGP- GART64- 64bit- FW- Rate=<none>



Code:

cat /proc/driver/nvidia/agp/host-bridge
Host Bridge:     PCI device 1106:0308
Fast Writes:     Supported
SBA:             Supported
AGP Rates:       8x 4x
Registers:       0x1f000a1b:0x00000000
Back to top
View user's profile Send private message
shakti
Guru
Guru


Joined: 15 May 2002
Posts: 358
Location: omnipresent

PostPosted: Tue Aug 14, 2007 8:06 pm    Post subject: Reply with quote

dont build any agp stuff from the kernel, the nvidia drivers agp module should do
_________________
Using Gentoo since 2002.
Back to top
View user's profile Send private message
Rabbi Hillel
Apprentice
Apprentice


Joined: 15 Feb 2007
Posts: 209
Location: Norderstedt, Hamburg

PostPosted: Wed Aug 15, 2007 6:31 pm    Post subject: Reply with quote

Hi!

As there seem to be some nvidia-experts at this place I'd like to ask a question too:

I've got an VIA Intel Pentium III (Coppermine) stepping 06 and a nVidia Corporation NV43 [GeForce 6200] (rev a1) graphic-card.

I had to update my bios to enable 4xagp (per default it didn't even exist) which is supported by my nvidia-card too.

When I force X to use 4xagp via
Code:
options nvidia NVreg_EnableVia4x=1 NVreg_ReqAGPRate=4

in /etc/modules.conf my screen shows awful signs or glxgears let's reset X. It's extremely unstable.

This is regarded to the power I can give to the card via the bios by manipulating two options which can have values from 0-F like 00, 01,02,...FF.

I have tested a few ones but none of them brought up a functioning X.

Any ideas?
_________________
Gentoo - the chosen distro.
Back to top
View user's profile Send private message
Tolstoi
l33t
l33t


Joined: 20 May 2004
Posts: 678

PostPosted: Fri Aug 17, 2007 1:46 pm    Post subject: Reply with quote

awww god, forgot to compile SMB into the kernel. Now it works.

Maybe give it a try, sliwowitz!
Back to top
View user's profile Send private message
sliwowitz
Apprentice
Apprentice


Joined: 21 Jan 2005
Posts: 196
Location: Europe/Prague

PostPosted: Fri Aug 17, 2007 1:50 pm    Post subject: Reply with quote

I would, but I had too much work lately and now am leaving for weekend. I'll give it a shot next week. BTW, do you see any noticeable speedup?
Back to top
View user's profile Send private message
sliwowitz
Apprentice
Apprentice


Joined: 21 Jan 2005
Posts: 196
Location: Europe/Prague

PostPosted: Fri Aug 31, 2007 2:08 pm    Post subject: Reply with quote

Yesterday, I compiled a new kernel with AGP related stuff removed, tinkered with some more config options and finally have both FW and SBA enabled. I have around 5-10% FPS increase in UT2004 and glxgears, no problems with stability so far (YMMV). I wouldn't say it's a must-have feature, but it didn't seem to hurt anything either. (as to my deepest hopes for getting rid of the 30% performance drop in GL applications when running compiz - it didn't help at all)
Back to top
View user's profile Send private message
nihues
n00b
n00b


Joined: 20 May 2003
Posts: 47
Location: Balneário Camboriú / SC

PostPosted: Fri Aug 31, 2007 4:12 pm    Post subject: Reply with quote

sliwowitz wrote:
Yesterday, I compiled a new kernel with AGP related stuff removed, tinkered with some more config options and finally have both FW and SBA enabled. I have around 5-10% FPS increase in UT2004 and glxgears, no problems with stability so far (YMMV). I wouldn't say it's a must-have feature, but it didn't seem to hurt anything either. (as to my deepest hopes for getting rid of the 30% performance drop in GL applications when running compiz - it didn't help at all)


Hi,

Did you saw what I did? I got +-30% increase in 3d games

https://forums.gentoo.org/viewtopic-t-573443.html
Back to top
View user's profile Send private message
Pajarico
Guru
Guru


Joined: 01 May 2004
Posts: 493
Location: Madrid, España.

PostPosted: Sun Sep 30, 2007 11:22 pm    Post subject: Reply with quote

Both my card and host-bridge support SBA and FW but:
Code:
# cat /proc/driver/nvidia/agp/status
Status:          Enabled
Driver:          AGPGART
AGP Rate:        8x
Fast Writes:     Disabled
SBA:             Enabled

Did someone fix this?
_________________
Gentoo: the only software worth paying that is free.
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
Page 4 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