Go Back   nV News Forums > Linux Support Forums > NVIDIA Linux


                    

Sponsored Ad

Reply
 
Thread Tools
Old 01-22-05, 01:45 AM   #1
ghostwalker
Registered User
 
Join Date: Sep 2003
Location: Tacoma, WA
Posts: 76
Default 2.6.11-rc2 incompatible with current nvidia driver

I get the following errors during compile time:

/nv/os-agp.c:24:
include/linux/prefetch.h: In function `prefetch_range':
include/linux/prefetch.h:62: warning: pointer of type `void *' used in arith
metic
In file included from include/linux/dmapool.h:14,
from include/linux/pci.h:863,
from /tmp/selfgz1878/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src
/nv/nv-linux.h:75,
from /tmp/selfgz1878/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src
/nv/os-agp.c:24:
include/asm/io.h: In function `check_signature':
include/asm/io.h:242: warning: wrong type argument to increment
/tmp/selfgz1878/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/os-agp.c: At top l
evel:
/tmp/selfgz1878/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/os-agp.c:48: error
: parse error before '*' token
/tmp/selfgz1878/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/os-agp.c:48: warni
ng: type defaults to `int' in declaration of `drm_agp_p'
/tmp/selfgz1878/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/os-agp.c:48: warni
ng: data definition has no type or storage class
/tmp/selfgz1878/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/os-agp.c: In funct
ion `KernInitAGP':
/tmp/selfgz1878/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/os-agp.c:76: warni
ng: assignment discards qualifiers from pointer target type
/tmp/selfgz1878/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/os-agp.c:85: error
: request for member `acquire' in something not a structure or union
/tmp/selfgz1878/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/os-agp.c:88: warni
ng: `inter_module_put' is deprecated (declared at include/linux/module.h:578
)
/tmp/selfgz1878/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/os-agp.c:113: erro
r: request for member `copy_info' in something not a structure or union
/tmp/selfgz1878/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/os-agp.c:173: erro
r: request for member `enable' in something not a structure or union
/tmp/selfgz1878/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/os-agp.c:185: erro
r: request for member `release' in something not a structure or union
/tmp/selfgz1878/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/os-agp.c:186: warn
ing: `inter_module_put' is deprecated (declared at include/linux/module.h:57
8)
/tmp/selfgz1878/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/os-agp.c: In funct
ion `KernTeardownAGP':
/tmp/selfgz1878/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/os-agp.c:216: erro
r: request for member `release' in something not a structure or union
/tmp/selfgz1878/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/os-agp.c:218: warn
ing: `inter_module_put' is deprecated (declared at include/linux/module.h:57
8)
/tmp/selfgz1878/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/os-agp.c: In funct
ion `KernAllocAGPPages':
/tmp/selfgz1878/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/os-agp.c:265: erro
r: request for member `allocate_memory' in something not a structure or unio
n
/tmp/selfgz1878/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/os-agp.c:273: erro
r: request for member `bind_memory' in something not a structure or union
/tmp/selfgz1878/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/os-agp.c:290: erro
r: request for member `unbind_memory' in something not a structure or union
/tmp/selfgz1878/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/os-agp.c:305: erro
r: request for member `free_memory' in something not a structure or union
/tmp/selfgz1878/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/os-agp.c: In funct
ion `KernMapAGPPages':
/tmp/selfgz1878/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/os-agp.c:345: erro
r: request for member `unbind_memory' in something not a structure or union
/tmp/selfgz1878/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/os-agp.c: In funct
ion `KernFreeAGPPages':
/tmp/selfgz1878/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/os-agp.c:444: erro
r: request for member `unbind_memory' in something not a structure or union
/tmp/selfgz1878/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/os-agp.c:445: erro
r: request for member `free_memory' in something not a structure or union
make[4]: *** [/tmp/selfgz1878/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/os-a
gp.o] Error 1
make[3]: *** [_module_/tmp/selfgz1878/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src
/nv] Error 2
make[2]: *** [modules] Error 2
NVIDIA: left KBUILD.
nvidia.ko failed to build!
make[1]: *** [module] Error 1
make: *** [module] Error 2
-> Error.

Walt
ghostwalker is offline   Reply With Quote
Old 01-22-05, 03:04 AM   #2
adilsond
Registered User
 
Join Date: Jan 2005
Location: Rio de Janeiro, Brazil
Posts: 2
Angry Re: 2.6.11-rc2 incompatible with current nvidia driver

I got the same errors too
I'm using a Debian sid with official packages
I can build nvidia modules with rc1 and all previous kernels. So this problem is specific to 2.6.11-rc2. You can check this build log above.
Attached Files
File Type: txt nvidia-compile-error-2.6.11-rc2.log.txt (7.8 KB, 242 views)
adilsond is offline   Reply With Quote

Sponsored Ads - Guests Only

Old 01-22-05, 06:36 AM   #3
zyphr
Registered User
 
Join Date: Mar 2004
Posts: 21
Default Re: 2.6.11-rc2 incompatible with current nvidia driver

From what I can see, it started with Ingo's changes in 2.6.11-rc1-bk9
2.6.11-rc1-bk8 still works ok for me with debian sarge.
zyphr is offline   Reply With Quote
Old 01-22-05, 09:29 AM   #4
chunkey
#!/?*
 
Join Date: Oct 2004
Posts: 664
Default Re: 2.6.11-rc2 incompatible with current nvidia driver

hmm, I made a quick & dirty hack for my SID.

BUT USE IT AT YOUR OWN RISK... (I don't have any AGP-Card anymore)
I can only guarantee, a more or less clean compile...

so either "#undef AGPGART" in os-agp.c (after the last #include"
(don't forget to kick out all kernel agpgart modules, so nvidia uses it own NvAGP)

(I've also made a patch... but it would be PCI-E only, since I haven't test it...)
chunkey is offline   Reply With Quote
Old 01-22-05, 10:01 AM   #5
zander
NVIDIA Corporation
 
zander's Avatar
 
Join Date: Aug 2002
Posts: 3,573
Default Re: 2.6.11-rc2 incompatible with current nvidia driver

The attached patches (used in combination with the Linux 2.6.10 patches posted here: http://www.nvnews.net/vbulletin/show...49&postcount=1) address this incompatibility; to enable the driver for use with Linux 2.6.11-rc2 and AGPGART, follow the instructions in the post referred to above and additionally apply the patches attached to this post. Disabling AGPGART should also eliminate the build failure, but since NvAGP may not work due to a known problem with Linux 2.6.11 pre-release kernels, operation may be limited to PCI mode.
Attached Files
File Type: txt NVIDIA_kernel-1.0-6629-1189413.diff.txt (7.9 KB, 3981 views)
File Type: txt NVIDIA_kernel-1.0-6629-1201042.diff.txt (8.9 KB, 1673 views)
zander is online now   Reply With Quote
Old 01-22-05, 11:55 AM   #6
_tf_
scriptfoo warrior
 
_tf_'s Avatar
 
Join Date: Apr 2003
Location: here
Posts: 118
Default Re: 2.6.11-rc2 incompatible with current nvidia driver

thanks, works fine!

best
L
__________________
"My mortgage rate was cut in half after I replied to spam
using Fedora!" raves Bo Battipaglia.
_tf_ is offline   Reply With Quote
Old 01-22-05, 02:49 PM   #7
zyphr
Registered User
 
Join Date: Mar 2004
Posts: 21
Default Re: 2.6.11-rc2 incompatible with current nvidia driver

thanks zander, it's all working ok now =)
zyphr is offline   Reply With Quote
Old 01-22-05, 04:51 PM   #8
snaboofypop
Registered User
 
Join Date: Aug 2003
Posts: 24
Default Re: 2.6.11-rc2 incompatible with current nvidia driver

No, the patches install fine, but restarting the x server gives a nice black screen (and nothing else). I applied the patches to 6629 (NVIDIA_kernel-1.0-6629-1189413.diff.txt and NVIDIA_kernel-1.0-6629-1201042.diff.txt), and that went ok. I compiled the new kernel and rebooted the computer into the new kernel. I then killed the x server and tried installing the new driver. It failed (complaining about AGP). I then pulled the AGP support out of my build script (commented out the following):
# CONFIG_AGP=m
# CONFIG_AGP_ALI=m
# CONFIG_AGP_ATI is not set
# CONFIG_AGP_AMD=m
# CONFIG_AGP_AMD64 is not set
# CONFIG_AGP_INTEL=m
# CONFIG_AGP_INTEL_MCH is not set
# CONFIG_AGP_NVIDIA=m
# CONFIG_AGP_SIS=m
# CONFIG_AGP_SWORKS=m
# CONFIG_AGP_VIA=m
# CONFIG_AGP_EFFICEON is not set

And I built the kernel again. The build went fine. I rebooted into the new kernel, and killed the x server (from trying to start, basically comment out
#x:5:respawn:/etc/X11/prefdm -nodaemon
in /etc/inittab and run init q), then ran the patched nvidia installer again. This time, it installed without any AGP messages (or actually any error messages of any kind), and silently installed. I then uncommented out the x line in /etc/inittab and ran init q. Where I would normally expect the nvidia splash screen (or sometimes it disappears really fast, and I only get the graphical login prompt), I only got a black screen. No video. I only applied the two patches, do I need to apply more? /proc/driver/nvidia/cards shows:
Model: GeForce4 Ti 4200
IRQ: 10
Video BIOS: 04.25.00.30.00
Card Type: AGP
(When I'm running 2.6.10-bk14 with the stock 6629 driver).
Other info:
Fast Writes: Supported
SBA: Supported
AGP Rates: 4x 2x 1x
Registers: 0x1f000217:0x1f000104
Host Bridge: Silicon Integrated Systems [SiS] SiS645 Host & Memory & AGP Controller
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

Thanks,...
snaboofypop is offline   Reply With Quote
Old 01-22-05, 04:59 PM   #9
zander
NVIDIA Corporation
 
zander's Avatar
 
Join Date: Aug 2002
Posts: 3,573
Default Re: 2.6.11-rc2 incompatible with current nvidia driver

@snaboofypop: there is a known problem with the NvAGP driver included in current NVIDIA driver releases and 2.6.11 pre-release kernels; on these kernels, your options (until the NvAGP problem has been resolved) are: a) AGP with AGPGART (i.e. with Option "NvAGP" "3" (the default) or with Option "NvAGP" "2") and b) no AGP (i.e. PCI mode).

Last edited by zander; 01-23-05 at 10:02 AM.
zander is online now   Reply With Quote
Old 01-23-05, 09:00 AM   #10
saxa
Registered User
 
Join Date: Jan 2004
Location: Nova Gorica - Slovenija
Posts: 9
Send a message via ICQ to saxa Send a message via Yahoo to saxa
Default Re: 2.6.11-rc2 incompatible with current nvidia driver

Works here with the patches and NvAGP 3 option
Rgds
Saxa
saxa is offline   Reply With Quote
Old 01-23-05, 05:31 PM   #11
greenghost
Registered User
 
Join Date: Jan 2005
Posts: 3
Default Re: 2.6.11-rc2 incompatible with current nvidia driver

I did exactly what you guys described, and also got the black screen (and also couldn't get the Nvidia AGP to work). So, I tried AGPGART, and it seems to work.

However, the kernel /proc interface says I have no AGP:

Code:
$ cat /proc/driver/nvidia/agp/card 
Fast Writes: 	 Supported
SBA: 		 Supported
AGP Rates: 	 8x 4x 
Registers: 	 0x1f000e1b:0x00000000
But the X log says it would use AGPGART:

Code:
(...)
(**) NVIDIA(0): Option "NvAGP" "2"
(**) NVIDIA(0): Option "NoRenderAccel" "off"
(**) NVIDIA(0): Option "CursorShadow" "true"
(**) NVIDIA(0): Option "NoRenderExtension" "off"
(**) NVIDIA(0): Enabling experimental RENDER acceleration
(**) NVIDIA(0): Enabling cursor shadow
(**) NVIDIA(0): Use of AGPGART requested
(...)
And there is no mention of AGP anymore in the log. Does the /proc interface only work with NvAGP (and in this case I'm actually using AGP), or did AGPGART somehow failed?

Need more logs/config files? (Doesn't seem to me like that would help)
greenghost is offline   Reply With Quote
Old 01-23-05, 06:05 PM   #12
greenghost
Registered User
 
Join Date: Jan 2005
Posts: 3
Default Re: 2.6.11-rc2 incompatible with current nvidia driver

Ops... Sorry about the noise. It is indeed disabled:

Code:
$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.
greenghost is offline   Reply With Quote
Reply




Shop Online


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




All times are GMT -4. The time now is 02:05 PM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
nV News - Copyright ©1998-2010. All rights reserved.