nV News Forums

 
 

nV News Forums (http://www.nvnews.net/vbulletin/index.php)
-   NVIDIA Linux (http://www.nvnews.net/vbulletin/forumdisplay.php?f=14)
-   -   Does 96.43.11 works on kernel 2.6.30rc6 ? (http://www.nvnews.net/vbulletin/showthread.php?t=133524)

miki100 05-26-09 12:30 PM

Does 96.43.11 works on kernel 2.6.30rc6 ?
 
Hi!
I'm asking "Does 96.43.11 works on kernel 2.6.30rc6 ?" because I'm going to switch to that kernel.
Are there any patches or it works without them?
Please help.

bbj 05-30-09 02:54 AM

Re: Does 96.43.11 works on kernel 2.6.30rc6 ?
 
Someone posted it. Try this patch.

Code:

diff -Nupr NVIDIA-Linux-x86-96.43.11-pkg1/usr/src/nv/nv.c NVIDIA-Linux-x86-96.43.11-pkg1.new/usr/src/nv/nv.c
--- NVIDIA-Linux-x86-96.43.11-pkg1/usr/src/nv/nv.c      2009-02-23 17:46:00.000000000 -0600
+++ NVIDIA-Linux-x86-96.43.11-pkg1.new/usr/src/nv/nv.c  2009-04-22 15:28:06.391152766 -0500
@@ -495,14 +495,6 @@ static void nvos_proc_create(void)
    if (!proc_nvidia_warnings)
        goto failed;

-    /*
-    * Set the module owner to ensure that the reference
-    * count reflects accesses to the proc files.
-    */
-    proc_nvidia->owner = THIS_MODULE;
-    proc_nvidia_cards->owner = THIS_MODULE;
-    proc_nvidia_warnings->owner = THIS_MODULE;
-
    for (j = 0; j < num_nv_devices; j++)
    {
        nvl = &nv_linux_devices[j];
@@ -521,7 +513,6 @@ static void nvos_proc_create(void)

        entry->data = nv;
        entry->read_proc = nv_kern_read_cardinfo;
-        entry->owner = THIS_MODULE;

        if (nvos_find_agp_capability(dev)) {
            /*
@@ -534,7 +525,6 @@ static void nvos_proc_create(void)
                goto failed;
            }

-            entry->owner = THIS_MODULE;
            proc_nvidia_agp = entry;

            entry = create_proc_entry("status", flags, proc_nvidia_agp);
@@ -545,7 +535,6 @@ static void nvos_proc_create(void)

            entry->data = nv;
            entry->read_proc = nv_kern_read_status;
-            entry->owner = THIS_MODULE;

            entry = create_proc_entry("host-bridge", flags, proc_nvidia_agp);
            if (!entry) {
@@ -555,7 +544,6 @@ static void nvos_proc_create(void)

            entry->data = NULL;
            entry->read_proc = nv_kern_read_agpinfo;
-            entry->owner = THIS_MODULE;

            entry = create_proc_entry("card", flags, proc_nvidia_agp);
            if (!entry) {
@@ -565,7 +553,6 @@ static void nvos_proc_create(void)

            entry->data = nv;
            entry->read_proc = nv_kern_read_agpinfo;
-            entry->owner = THIS_MODULE;
        }

        NV_PCI_DEV_PUT(dev);
@@ -576,14 +563,12 @@ static void nvos_proc_create(void)
        goto failed;

    entry->read_proc = nv_kern_read_version;
-    entry->owner = THIS_MODULE;

    entry = create_proc_entry("registry", flags, proc_nvidia);
    if (!entry)
        goto failed;

    entry->read_proc = nv_kern_read_registry;
-    entry->owner = THIS_MODULE;

    return;

@@ -610,7 +595,6 @@ nvos_proc_add_warning_file(

    entry->data = (void *)message;
    entry->read_proc = nv_kern_read_warning;
-    entry->owner = THIS_MODULE;
 #endif
 }


miki100 06-01-09 03:30 AM

Re: Does 96.43.11 works on kernel 2.6.30rc6 ?
 
Sorry for not responding earlier, but thanks-it works like a charm!!! :D


All times are GMT -5. The time now is 08:48 PM.

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