Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 15971 - NVidia option not enabled in source code.
Summary: NVidia option not enabled in source code.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: x86 Linux
: High minor (vote)
Assignee: Martin Schlemmer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-02-18 20:57 UTC by Charles Allen
Modified: 2003-12-06 19:01 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Charles Allen 2003-02-18 20:57:39 UTC
I recently discussed with NVidia about how `options NVdriver NVreg_ReqAGPRate=2` 
in /etc/modules.d/nvidia doesn't set the AGP rate to 2x 
As it turns out, the variable is disabled in the source code.  I simply had to remove the 
`__` from the line containing `__ReqAGPRate` to enable the module option. 
this of course only goes into effect if one is using the NVidia AGP driver instead of the 
default kernel one. 

Reproducible: Always
Steps to Reproduce:
1. emerge nvidia-kernel 
2. modprobe NVidia 
3. cat /proc/drivers/nvidia/agp/status 
Actual Results:  
It revealed that the NVidia AGP driver was only using 1x AGP instead of using the 
bridge to it's full potential. 

Expected Results:  
It should have displayed that AGP 2x was enabled 

Quote from NVidia: 
 
 
*************** 
 
unfortunately our documentation is wrong on changing that variable. are you building 
your own kernel module from the tarballs? You need to edit os-registry.c, find the line 
that has __ReqAGPRate, remove the leading "__" and recompile. While you're at it, 
you can change the value of ReqAGPRate in that file to '2', so you don't need to pass 
the value as a kernel parameter. 
 
Terence 
 
**************************************** 
 
 
I'm not sure of the stability of this option, but it's been working fine so far.
Comment 1 Andrew Cooks (RETIRED) gentoo-dev 2003-12-06 04:27:05 UTC
It's been a long time since ant changes were made to this bug.

I wasn't able to reproduce the problem. My card is working correctly in x4 mode.

Please test again with the latest versions and reopen this bug if the problem persists.
Comment 2 SpanKY gentoo-dev 2003-12-06 18:55:48 UTC
this seems to be fixed in the latest version ...
Comment 3 SpanKY gentoo-dev 2003-12-06 19:01:29 UTC
root@vapier 0 root # ebuild nvidia-kernel-1.0.4496-r4.ebuild clean unpack
root@vapier 0 nv # pwd
/var/tmp/portage/nvidia-kernel-1.0.4496-r4/work/NVIDIA-Linux-x86-1.0-4496-pkg2/usr/src/nv
root@vapier 0 nv # grep ReqAGPRate os-registry.c
 * Option: ReqAGPRate
static int NVreg_ReqAGPRate = 7;
NV_MODULE_PARAMETER(NVreg_ReqAGPRate);
    { NULL, "ReqAGPRate",               &NVreg_ReqAGPRate,               0 },

also, i set agp rate to 4x in my modules conf file and i have this:
root@vapier 0 nv # cat /proc/driver/nvidia/agp/status 
Status:          Enabled
Driver:          NVIDIA
AGP Rate:        4x
Fast Writes:     Enabled
SBA:             Disabled