MrIch wrote:plinux011 tmp # cat /proc/driver/nvidia/agp/status
Status: Enabled
Driver: AGPGART
AGP Rate: 4x
Fast Writes: Disabled
SBA: Disabled
How do I activate Fast Writes and SBA in the nvidia-kernel ebuild?
What file did you edit? You can create an overlayed ebuild and a patch to do this. If it works with my nvidia, I'll create an ebuild and post it. Did the /proc/driver/nvidia/agp/card show that it supported these features before you changed the driver?MrIch wrote:yes I really now!
When I download the drivers from nvidia and edit one .h file of the driver and then compile ist, SBA and FBA is supportet and activated!!!
My question was, is it possible to edit the .h file before emerge begin the compile process?
yeah that's covered in the Gentoo FAQ. Read under I want to perform the ./configure step myself. Can I? -topic.MrIch wrote:yes I really now!
When I download the drivers from nvidia and edit one .h file of the driver and then compile ist, SBA and FBA is supportet and activated!!!
My question was, is it possible to edit the .h file before emerge begin the compile process?
So what modifications did you make? I would like to make the same and get the most out of this cardMrIch wrote:Before I modified the Driver it showed both NOT supported, when I changed it, both were supported!pdouble wrote: Did the /proc/driver/nvidia/agp/card show that it supported these features before you changed the driver?
Code: Select all
MODULE_PARM(NVreg_EnableAGPFW, "i");
Argh, posted too fast. According to the beginning of the file, the module parameter names are made from the "NVreg_NAME" variables. Just remove the "NVreg_" and that's the module parameter. I can't test right now, but will today and post my results. So, it should work like so:pdouble wrote:From the code in os-registry.c, it looks like these options are module parameters, with the defaults being set to off. I'm not really fluent in kernel programming, can someone explain how to determine the module parameter name for a statement like:
I will post and/or research more of the source code if requested. Possibly I will figure it out before an answer is posted tooCode: Select all
MODULE_PARM(NVreg_EnableAGPFW, "i");
Code: Select all
modprobe NVdriver EnableAGPSBA=1 EnableAGPFW=1
Code: Select all
modinfo -p /lib/modules/2.4.19-gentoo-r7/video/NVdriver
Code: Select all
modprobe NVdriver NVreg_EnableAGPSBA=1 NVreg_EnableAGPFW=1
Hi.pdouble wrote:To enable said options:
I tried this and it took it, but nothing changed for me. I have a laptop and prehaps the hardware doesn't support this. I made the change in the source code as you did and still no change, so I think my hardware doesn't support it. For the benefit of others, could some one could try this and see if it works?Code: Select all
modprobe NVdriver NVreg_EnableAGPSBA=1 NVreg_EnableAGPFW=1
Code: Select all
1. modprobe NVdriver NVreg_EnableAGPSBA=1 NVreg_EnableAGPFW=1
2. modprobe NVdriver NVreg_EnableAGPSBA=1
3. modprobe NVdriver NVreg_EnableAGPFW=1Yeah one could think reloading is enough, but it's not. That is mentioned in the nVidia Linux Driver Troubleshooting Guide:TuxFriend wrote:Why is that?, isn't unloading and reloading the module sufficient?kirill wrote:NOTE: With NVdriver you need to reboot each time you change some module parameters!
I also read somewhere that you'd better to reboot after unloading and reloading the NVdriver, since it may cause some instability.Bear in mind that switching AGP drivers or disabling them usually requires a system reboot before the changes really take effect. loading different AGP drivers w/o a reboot may cause lockups or general system instability.

Code: Select all
phishhead stash# cat/proc/driver/nvidia/agp/host-bridge
Host Bridge: AMD 760MP
Fast Writes: Supported
SBA: Supported
AGP Rates: 4x 2x 1x
Registers: 0x0f000217:0x00000314
phishhead stash# cat/proc/driver/nvidia/agp/card
Fast Writes: Supported
SBA: Supported
AGP Rates: 4x 2x 1x
Registers: 0x1f000217:0x0f000314
phishhead stash# cat/proc/driver/nvidia/agp/status
Status: Enabled
Driver: NVIDIA
AGP Rate: 4x
Fast Writes: Disabled
SBA: Disabled
Code: Select all
phishhead stash#modinfo -p /lib/modules/{your kernel version}/video/NVdriverCode: Select all
phishhead stash# nano -w /etc/modules.d/nvidiaCode: Select all
alias char-major-195 NVdriver
options NVdriver NVreg_EnableAGPSBA=1 NVreg_EnableAGPFW=1Code: Select all
phishhead stash# update-modules nvidiaCode: Select all
phishhead stash# cat /proc/driver/nvidia/agp/status
Status: Enabled
Driver: NVIDIA
AGP Rate: 4x
Fast Writes: Enabled
SBA: Enabled
Code: Select all
bnws04:/home/de4d# 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

posted above -> "supported"phlashback wrote: cat /proc/driver/nvidia/agp/host-bridge
this is my problem ... its not supported even after modprobe with these options ...cat /proc/driver/nvidia/card
Status must be Supported on the lines for Fast Writes, and SBA
done - its successfully included in /etc/modules.confalso be sure that you put the "options" line from above post into the /etc/modules.d/nvidia
run "update-modules nvidia"
the readme file from nvidia says, agp4x is disabled on some via chipsetsI remember reading in the documentation from Nvidia that thier were issues with some via chipsets. also somewhere else in the documentation I remember reading that the driver may choose to disable some options in favor of system stability.
Just a hunch, but you may want to investigat.
Code: Select all
# lsmod
-> NVdriver _not_ loaded b4
# modprobe NVdriver FW=1 SBA=1
-> loads mod
# cat /pathto/host
-> everything fine
# cat /pathto/card
-> 2x "not sup"
# cat /pathto/status
-> disabled (as to expect...)
