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

Newegg Daily Deals

Reply
 
Thread Tools
Old 06-21-09, 04:40 PM   #1
siddly
Registered User
 
Join Date: Jul 2003
Location: West Midlands, UK
Posts: 125
Default 2.6.30-git17 change - module build failure

/usr/src/NVIDIA-Linux-x86_64-185.19-pkg2/usr/src/nv/os-agp.c: In function ‘KernLoadAGPPages’:
/usr/src/NVIDIA-Linux-x86_64-185.19-pkg2/usr/src/nv/os-agp.c:296: error: ‘agp_memory’ has no member named ‘memory’
make[4]: *** [/usr/src/NVIDIA-Linux-x86_64-185.19-pkg2/usr/src/nv/os-agp.o] Error 1
make[3]: *** [_module_/usr/src/NVIDIA-Linux-x86_64-185.19-pkg2/usr/src/nv] Error 2
make[2]: *** [sub-make] Error 2
NVIDIA: left KBUILD.
siddly is offline   Reply With Quote
Old 06-22-09, 08:24 AM   #2
siddly
Registered User
 
Join Date: Jul 2003
Location: West Midlands, UK
Posts: 125
Default Re: 2.6.30-git17 change - module build failure

That's in addition to having to remove or comment out the following lines with "owner" to get the module built on earlier 2.6.30-rc kernels included in openSUSE - also needed for NV 174.xx.
slipstream:/usr/src/XXX/NVIDIA-Linux-x86_64-185.19-pkg2/usr/src/nv # grep -n owner *
nv.c:372: .owner = THIS_MODULE,
nv.c:588: * Set the module owner to ensure that the reference
nv.c:591: proc_nvidia->owner = THIS_MODULE;
nv.c:592: proc_nvidia_cards->owner = THIS_MODULE;
nv.c:593: proc_nvidia_warnings->owner = THIS_MODULE;
nv.c:613: entry->owner = THIS_MODULE;
nv.c:627: entry->owner = THIS_MODULE;
nv.c:638: entry->owner = THIS_MODULE;
nv.c:648: entry->owner = THIS_MODULE;
nv.c:658: entry->owner = THIS_MODULE;
nv.c:669: entry->owner = THIS_MODULE;
nv.c:676: entry->owner = THIS_MODULE;
nv.c:703: entry->owner = THIS_MODULE;
nv.c:1348: "NVRM: rivatv was loaded and obtained ownership of the NVIDIA\n"
nv.c:4283: "NVRM: ownership of the device's registers.\n",
nv-i2c.c:241: .owner = THIS_MODULE,
siddly is offline   Reply With Quote
Old 06-22-09, 09:39 AM   #3
darkmag
Registered User
 
Join Date: Jun 2009
Posts: 4
Default Re: 2.6.30-git17 change - module build failure

It's dangerous to go alone. Take this:
--- usr/src/nv/os-agp.c.orig 2009-06-22 15:54:48.000000000 +0200
+++ usr/src/nv/os-agp.c 2009-06-22 15:40:13.000000000 +0200
@@ -293,7 +293,7 @@ RM_STATUS KernLoadAGPPages(
{
nv_pte_t *page_ptr = at->page_table[i];

- page_ptr->phys_addr = (ptr->memory[i] & PAGE_MASK);
+ page_ptr->phys_addr = (page_to_phys(ptr->pages[i]) & PAGE_MASK);
page_ptr->virt_addr = (unsigned long) __va(page_ptr->phys_addr);
page_ptr->dma_addr = page_ptr->phys_addr;
}
--- usr/src/nv/nv-i2c.c.orig 2009-06-22 16:21:57.000000000 +0200
+++ usr/src/nv/nv-i2c.c 2009-06-22 16:24:12.000000000 +0200
@@ -218,8 +218,6 @@ struct i2c_adapter nv_i2c_adapter_protot
#if defined(NV_I2C_ADAPTER_HAS_DEC_USE)
.dec_use = nv_i2c_adapter_dec_use,
#endif
- .client_register = nv_i2c_adapter_register_client,
- .client_unregister = nv_i2c_adapter_unregister_client,
.data = NULL,
};

@@ -241,8 +239,6 @@ struct i2c_adapter nv_i2c_adapter_protot
.owner = THIS_MODULE,
.algo = &nv_i2c_algo,
.algo_data = NULL,
- .client_register = nv_i2c_adapter_register_client,
- .client_unregister = nv_i2c_adapter_unregister_client,
};

#endif // defined(KERNEL_2_4)

Applies for x86-185.18.14 package.
./NVIDIA-*.run --apply-patch $PATCH_FILENAME.
and then launch the NVIDIA-*custom.run
darkmag is offline   Reply With Quote
Old 06-22-09, 10:43 AM   #4
gun26
Registered User
 
Join Date: Oct 2004
Posts: 17
Default Re: 2.6.30-git17 change - module build failure

Nice job, darkmag. I'm now running "2.6.30-07769-gf234012-dirty" built a few minutes ago from linus's git tree, with nvidia 185.18.14 with your patch. When I tried to create a patch by C&P ing from your post, the patch program choked on a "malformed line" so I ended up editing by hand to start with and rediffing here to get a working patch. Seems to be all ok for now (touching wood ;-) )
gun26 is offline   Reply With Quote
Old 06-22-09, 11:31 AM   #5
darkmag
Registered User
 
Join Date: Jun 2009
Posts: 4
Default Re: 2.6.30-git17 change - module build failure

Most probably it's because of forum engine modifying the text...
Attached the original patch.

P.S. I'm also running on latest git, and I can't see why it shouldn't run, cause it's the same ((un)register_client functions were just stubs anyway (that's why they were removed), and the pages are transformed to memory address using the page_to_phys).

If you have any oddness - let me know.

Thanks.
Attached Files
File Type: txt nvidia-185.patch.txt (1.2 KB, 881 views)
darkmag is offline   Reply With Quote
Old 06-22-09, 03:38 PM   #6
ledoc
Registered User
 
Join Date: Jan 2008
Posts: 330
Default Re: 2.6.30-git17 change - module build failure

Nice.
Lets add this keyword here to facilitate future searches:
2.6.31-rc0
ledoc is offline   Reply With Quote
Old 06-22-09, 04:22 PM   #7
leigh123linux
Registered User
 
leigh123linux's Avatar
 
Join Date: Feb 2008
Posts: 163
Default Re: 2.6.30-git17 change - module build failure

185.18.14 builds OK without patching.
__________________
leigh123linux
leigh123linux is offline   Reply With Quote
Old 06-22-09, 04:27 PM   #8
zander
NVIDIA Corporation
 
zander's Avatar
 
Join Date: Aug 2002
Posts: 3,740
Default Re: 2.6.30-git17 change - module build failure

@leigh123@linux: I wouldn't expect it to unless you have neither Linux/i2c nor AGPGART support enabled in your kernel configuration.
zander is offline   Reply With Quote

Old 06-22-09, 05:10 PM   #9
leigh123linux
Registered User
 
leigh123linux's Avatar
 
Join Date: Feb 2008
Posts: 163
Default Re: 2.6.30-git17 change - module build failure

Quote:
Originally Posted by zander View Post
@leigh123@linux: I wouldn't expect it to unless you have neither Linux/i2c nor AGPGART support enabled in your kernel configuration.
Your right, I thought I had a git17 kernel but it was git13.
I had to patch it for git18.


Code:
[leigh@localhost ~]$ uname -r
2.6.31-0.24.rc0.git18.fc12.x86_64
[leigh@localhost ~]$ rpm -q xorg-x11-server-Xorg
xorg-x11-server-Xorg-1.6.99-3.20090618.fc12.x86_64
[leigh@localhost ~]$
__________________
leigh123linux
leigh123linux is offline   Reply With Quote
Old 06-29-09, 03:07 AM   #10
cthulhu
Great Old One
 
cthulhu's Avatar
 
Join Date: Sep 2002
Posts: 124
Default Re: 2.6.30-git17 change - module build failure

Darkmag: I'm sorry to inform you, that I have plenty of oddness, with a combination of latest git kernels (tried 2.6.30 git18, git19, 2.6.31 RC1, RC2 and RC4), your patch for the nvidia driver and KDE 4.2.

The problem may or may not be related to your patch, but I haven't been able to find the exact source of the problem just yet.

Anyways the problem is as follows: All programs in KDE is missing window decorations and ALT+TAB functionality is gone. I can't even change focus by clicking on a window.

I'm back to 2.6.30 git14 until I find a solution (or NVIDIA releases a new driver). I haven't tried other WMs yet, but if time allows it, I might.

Anyway, thanks your good work on the patch.
__________________
Desktop: Asus P5B Deluxe, Core2Duo E8500, 2GB Corsair 800MHz CL4, Gigabyte GTX460 1024MB
HTPC: Asus P5B-E, Core2Duo 6300, 1GB Corsair 533MHz, Asus 9500GT w/ 512MB DDR3
Server: Gigabyte D510UD, Atom D510, 2GB Corsair 800MHz, Hauppauge NOVA-T500 dual DVB-T tuner, 4x 2TB Samsung F3EG (RAID5)
Laptop: Asus U6V, Core2Duo P8400, 3GB DDR2, 9300M GS
OS on all: Gentoo Linux

Bought a computer bundled with windows? Don't want to use windows? Demand a refund!
cthulhu is offline   Reply With Quote
Old 06-29-09, 05:15 AM   #11
siddly
Registered User
 
Join Date: Jul 2003
Location: West Midlands, UK
Posts: 125
Default Re: 2.6.30-git17 change - module build failure

I have been experiencing odd occurrences with kde4, some applications stuck in "FUTEX_WAIT_PRIVATE" when run as root locally, but OK when run as root from another PC over "ssh -X" and bash crashing a few times daily. This goes way back to early 2.6.30-rc, but the problem is definitely KDE4. I have gone back to KDE3 and no problems. This is openSUSE 11.2 Milestone2 and up to latest vanilla kernel 2.6.31-rc1-git3 with patched 185.19 x86_64.
I've seen the FUTEX_WAIT_PRIVATE on all boxes, including ones without NVidia cards.
siddly is offline   Reply With Quote
Old 06-30-09, 12:03 PM   #12
blue100
Registered User
 
Join Date: May 2009
Posts: 28
Default Re: 2.6.30-git17 change - module build failure

I'm not that experienced with Linux, so I got a (maybe real dumb) question: How do I apply this patch?
blue100 is offline   Reply With Quote
Reply


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 -5. The time now is 07:15 PM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright ©1998 - 2014, nV News.