On Sunday, September 29, 2013 12:32:15 PM Roman Bysh wrote:
On Sun 29 Sep 2013 11:58:54 AM EDT, Upscope wrote:
On Sunday, September 29, 2013 01:45:56 PM Sid Boyce wrote:
On 29/09/13 07:13, Thomas Taylor wrote:
It has been many years since I had to patch a kernel and need to have a location for the requisite documentation.
I have obtained "kernel_v3.11.patch" but in searching the SUSE documentation have not found the official procedure to apply this patch. Would someone please supply an URL or location where that patch application is provided?
Thanks, Tom
Are you sure that patch is a kernel patch? The title seems to suggest it's a patch for the NVidia proprietary drivers and it would depend on which driver you need to patch.
For the 325.15 driver package. "sh NVIDIA-Linux-x86_64-325.15.run --apply-patch kernel_3.11.patch"
There are a couple of patches with that name, this is the shortest of them. # less kernel_v3.11.patch --- a/kernel/nv-linux.h +++ b/kernel/nv-linux.h @@ -957,7 +957,11 @@ static inline int nv_execute_on_all_cpus
#endif
#if !defined(NV_VMWARE)
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 11, 0) +#define NV_NUM_PHYSPAGES get_num_physpages() +#else
#define NV_NUM_PHYSPAGES num_physpages
+#endif
#define NV_GET_CURRENT_PROCESS() current->tgid #define NV_IN_ATOMIC() in_atomic() #define NV_LOCAL_BH_DISABLE() local_bh_disable()
Regards Sid.
-- Sid Boyce ... Hamradio License G3VBV, Licensed Private Pilot Emeritus IBM/Amdahl Mainframes and Sun/Fujitsu Servers Tech Support Senior Staff Specialist, Cricket Coach Microsoft Windows Free Zone - Linux used for all Computing Tasks
-- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
Not sure if you can answer this. The patch I got for 325.15 has the following: CODE: ------------ nvidia-3.11.patch Index: NVIDIA-Linux-x86_64-325.15/kernel/nv-linux.h
===================================================================
--- NVIDIA-Linux-x86_64-325.15.orig/kernel/nv-linux.h +++ NVIDIA-Linux-x86_64-325.15/kernel/nv-linux.h @@ -958,7 +958,11 @@ static inline int nv_execute_on_all_cpus
#endif
#if !defined(NV_VMWARE)
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 11, 0) +#define NV_NUM_PHYSPAGES get_num_physpages() +#else
#define NV_NUM_PHYSPAGES num_physpages
+#endif
#define NV_GET_CURRENT_PROCESS() current->tgid #define NV_IN_ATOMIC() in_atomic() #define NV_LOCAL_BH_DISABLE() local_bh_disable()
---------- Is the line starting with @@ correct in the your version or mine? My version works with 3.11.0 but not later3.11 versions.
Thanks Russ Sorry first time I hit wrong button and sent this direct to Sid.
Very true.
That patch (which is very effective) applies to kernels higher than 3.11.0.
Commands to patch nVidia .run driver
# sh NVIDIA-Linux-x86_64-325.15.run -x # cd NVIDIA-Linux-x86_64-325.15 # patch -p1 < /path/to/nvidia-3.11.patch # ./nvidia-installer
Cheers!
Roman ------------------------------------------- openSUSE -- Get it! Discover it! Share it! ------------------------------------------- http://linuxcounter.net/ #179293 -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org Yes I used the version I had for 3.11.0 but it did not work on 3.11.2 0r .3. i was wonder if I need to take version Sid post instead or if I can change line @@-358 to 357 like the later patch.
Russ -- openSUSE 12.3(Linux 3.11.0-2.g0a1c41f-desktop)|KDE 4.11.1 |Intel core2duo 2.5 MHZ,|8GB DDR3|GeForce 8400GS (NVIDIA-Linux-x86_64-325.15 Patched) -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org