Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Bug#500285: nvidia-kernel-source: port to 2.6.27
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Clemens Buchacher  
View profile  
 More options Sep 26 2008, 6:40 pm
Newsgroups: linux.debian.bugs.dist
From: Clemens Buchacher <dri...@aon.at>
Date: Sat, 27 Sep 2008 00:40:17 +0200
Local: Fri, Sep 26 2008 6:40 pm
Subject: Bug#500285: nvidia-kernel-source: port to 2.6.27
Package: nvidia-kernel-source
Version: 173.14.09-5
Severity: normal
Tags: patch

This patch ports the module to 2.6.27-rc5. Note that it breaks with 2.6.24.
I don't claim correctness, I just fiddled with it until it compiled.

diff --git a/nv-linux.h b/nv-linux.h
index a3ec48d..415164a 100644
--- a/nv-linux.h
+++ b/nv-linux.h
@@ -104,7 +104,7 @@
 #endif

 #include <linux/spinlock.h>
-#include <asm/semaphore.h>
+#include <linux/semaphore.h>
 #include <linux/completion.h>
 #include <linux/highmem.h>

@@ -666,7 +666,7 @@ static inline int nv_execute_on_all_cpus(void (*func)(void *info), void *info)
     preempt_enable();
 #endif
 #else
-    ret = on_each_cpu(func, info, 1, 1);
+    ret = on_each_cpu(func, info, 1);
 #endif
     return ret;
 }
diff --git a/nv.c b/nv.c
index 7afef99..0853cd8 100644
--- a/nv.c
+++ b/nv.c
@@ -1296,14 +1296,14 @@ nv_kern_cpu_callback(struct notifier_block *nfb, unsigned long action, void *hcp
             if (get_cpu() == cpu)
                 __nv_setup_pat_entries(NULL);
             else
-                smp_call_function(__nv_setup_pat_entries, hcpu, 1, 1);
+                smp_call_function(__nv_setup_pat_entries, hcpu, 1);
             put_cpu();
             break;
         case CPU_DOWN_PREPARE:
             if (get_cpu() == cpu)
                 __nv_restore_pat_entries(NULL);
             else
-                smp_call_function(__nv_restore_pat_entries, hcpu, 1, 1);
+                smp_call_function(__nv_restore_pat_entries, hcpu, 1);
             put_cpu();
             break;
     }
diff --git a/os-interface.c b/os-interface.c
index d5534eb..b5db1fa 100644
--- a/os-interface.c
+++ b/os-interface.c
@@ -48,7 +48,7 @@ RM_STATUS NV_API_CALL os_raise_smp_barrier(void)
 #endif
     local_bh_disable();
     atomic_set(&os_smp_barrier, 1);
-    ret = smp_call_function(ipi_handler, NULL, 1, 0);
+    ret = smp_call_function(ipi_handler, NULL, 0);
 #endif
     return (ret == 0) ? RM_OK : RM_ERROR;
 }
@@ -688,7 +688,7 @@ U032 NV_API_CALL os_get_cpu_frequency(void)

 U032 NV_API_CALL os_get_current_process(void)
 {
-    return current->tgid;
+    return task_tgid(current);
 }

 RM_STATUS NV_API_CALL os_kill_process(
@@ -696,7 +696,7 @@ RM_STATUS NV_API_CALL os_kill_process(
     U032 sig
 )
 {
-    return kill_proc(pid, sig, 1) ? RM_ERR_OPERATING_SYSTEM : RM_OK;
+    return kill_pid(pid, sig, 1) ? RM_ERR_OPERATING_SYSTEM : RM_OK;
 }

 /************************************************************************** *****/
---

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.27-rc5 (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages nvidia-kernel-source depends on:
ii  debhelper                     7.0.16     helper programs for debian/rules
ii  dpatch                        2.0.30     patch maintenance system for Debia
ii  make                          3.81-5     The GNU version of the "make" util
ii  sed                           4.1.5-8    The GNU sed stream editor

Versions of packages nvidia-kernel-source recommends:
ii  devscripts                   2.10.35     scripts to make the life of a Debi
ii  kernel-package               11.001-0.1  A utility for building Linux kerne
ii  nvidia-glx                   173.14.09-5 NVIDIA binary Xorg driver

nvidia-kernel-source suggests no packages.

-- no debconf information

--
To UNSUBSCRIBE, email to debian-bugs-dist-REQU...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Discussion subject changed to "Bug#500285: [pkg-nvidia-devel] Bug#500285: nvidia-kernel-source: port to 2.6.27" by Lennart Sorensen
Lennart Sorensen  
View profile  
 More options Oct 2 2008, 5:20 pm
Newsgroups: linux.debian.bugs.dist
From: lsore...@csclub.uwaterloo.ca (Lennart Sorensen)
Date: Thu, 02 Oct 2008 23:20:08 +0200
Local: Thurs, Oct 2 2008 5:20 pm
Subject: Bug#500285: [pkg-nvidia-devel] Bug#500285: nvidia-kernel-source: port to 2.6.27

On Sat, Sep 27, 2008 at 12:21:13AM +0200, Clemens Buchacher wrote:
> Package: nvidia-kernel-source
> Version: 173.14.09-5
> Severity: normal
> Tags: patch

> This patch ports the module to 2.6.27-rc5. Note that it breaks with 2.6.24.
> I don't claim correctness, I just fiddled with it until it compiled.

When 2.6.27 is released, I am sure nvidia will release a patch that
makes it work.  In the mean time, you can do whatever you want on your
system, but debian doesn't tend to package -rc kernels, nor package non
nvidia patches if they can be avoided.  Just doesn't seem worth it.

--
Len Sorensen

--
To UNSUBSCRIBE, email to debian-bugs-dist-REQU...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »