
:ugh: Overkill, I didn't have to do any of this...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/showth ... adid=75077
Hope it helps.
Code: Select all
[~] $ cat /proc/driver/nvidia/agp/card
Fast Writes: Supported
SBA: Supported
AGP Rates: 4x 2x 1x
Registers: 0x1f000217:0x1f000304
[~] $Code: Select all
[~] $ cat /proc/driver/nvidia/agp/status
Status: Enabled
Driver: NVIDIA
AGP Rate: 4x
Fast Writes: Disabled
SBA: Enabled
[~] $Code: Select all
[~] $ 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
[~] $Code: Select all
cat /proc/driver/nvidia/agp/host-bridgeAh, well that explains it. Thanks.Deep-VI wrote:Check your host bridge capabilities as well:Code: Select all
cat /proc/driver/nvidia/agp/host-bridge

Code: Select all
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
Code: Select all
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
Code: Select all
Dell5150 root # cat /proc/driver/nvidia/agp/status
Status: Enabled
Driver: NVIDIA
AGP Rate: 4x
Fast Writes: Disabled
SBA: Disabled
Code: Select all
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
Code: Select all
#NVreg_EnableAGPSBA=1
#
#NVreg_EnableAGPFW=1 Code: Select all
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!Exactly the message I get. I've tried NVAGP, AGPART kompiled in kernel as well as a module. And always that message.sliwowitz wrote:I uncommented the suggested line in /etc/modules.d/nvidia, butCode: Select all
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.
Code: Select all
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: Select all
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

Code: Select all
options nvidia NVreg_EnableVia4x=1 NVreg_ReqAGPRate=4Hi,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)
Code: Select all
# cat /proc/driver/nvidia/agp/status
Status: Enabled
Driver: AGPGART
AGP Rate: 8x
Fast Writes: Disabled
SBA: Enabled