View NVIDIA-Linux-x86_64-387.22.patch
diff -u -r NVIDIA-Linux-x86_64-387.22/kernel/Kbuild NVIDIA-Linux-x86_64-387.22.patched/kernel/Kbuild
--- NVIDIA-Linux-x86_64-387.22/kernel/Kbuild 2017-10-26 07:11:01.000000000 +0200
+++ NVIDIA-Linux-x86_64-387.22.patched/kernel/Kbuild 2017-10-31 19:20:41.430505370 +0100
@@ -61,6 +61,7 @@
EXTRA_CFLAGS += -Wall -MD $(DEFINES) $(INCLUDES) -Wsign-compare -Wno-cast-qual -Wno-error
EXTRA_CFLAGS += -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"387.22\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -Wno-sign-compare -Wno-format-extra-args
EXTRA_CFLAGS += $(call cc-option,-Werror=undef,)
+EXTRA_CFLAGS += -mtune=native
#
View gist:d30eb213b15e57b8158c5cf0bb528c1c
# automatically calculates md5 of binary path and saves it as a name for project file
function r2()
{
BACKUP="$@"
MD5=""
NAME=""
while [[ "$#" -gt 0 ]]; do
if [ -f "$1" ]; then
NAME=$(realpath $1)
View gist:c4d9c0ca6bdbb6e78ab2126a7cdf8f1c
diff -ur NVIDIA-Linux-x86_64-378.13/kernel/common/inc/nv-mm.h NVIDIA-Linux-x86_64-378.13.patched/kernel/common/inc/nv-mm.h
--- NVIDIA-Linux-x86_64-378.13/kernel/common/inc/nv-mm.h 2017-02-08 04:58:34.000000000 +0100
+++ NVIDIA-Linux-x86_64-378.13.patched/kernel/common/inc/nv-mm.h 2017-02-23 18:57:34.655592444 +0100
@@ -46,6 +46,8 @@
* 2016 Dec 14:5b56d49fc31dbb0487e14ead790fc81ca9fb2c99
*/
+#include <linux/version.h>
+
#if defined(NV_GET_USER_PAGES_REMOTE_PRESENT)
View gist:4a4aef53b266aa04606385b92ca6d042
diff -ur NVIDIA-Linux-x86_64-378.13/kernel/common/inc/nv-mm.h NVIDIA-Linux-x86_64-378.13.patched/kernel/common/inc/nv-mm.h
--- NVIDIA-Linux-x86_64-378.13/kernel/common/inc/nv-mm.h 2017-02-08 04:58:34.000000000 +0100
+++ NVIDIA-Linux-x86_64-378.13.patched/kernel/common/inc/nv-mm.h 2017-02-24 21:38:54.126260185 +0100
@@ -46,6 +46,8 @@
* 2016 Dec 14:5b56d49fc31dbb0487e14ead790fc81ca9fb2c99
*/
+#include <linux/version.h>
+
#if defined(NV_GET_USER_PAGES_REMOTE_PRESENT)
View gist:3e36f7da0673c1bf4b421f53b8d99b02
diff -ur NVIDIA-Linux-x86_64-378.13/kernel/common/inc/nv-linux.h NVIDIA-Linux-x86_64-378.13.patched/kernel/common/inc/nv-linux.h
--- NVIDIA-Linux-x86_64-378.13/kernel/common/inc/nv-linux.h 2017-02-08 04:58:34.000000000 +0100
+++ NVIDIA-Linux-x86_64-378.13.patched/kernel/common/inc/nv-linux.h 2017-02-15 04:14:46.304110124 +0100
@@ -294,7 +294,8 @@
extern int nv_pat_mode;
-#if defined(CONFIG_HOTPLUG_CPU)
+//#if defined(CONFIG_HOTPLUG_CPU)
+#if 0
View nvidia-378.09-kernel-4.10-rc4.patch
diff -ur NVIDIA-Linux-x86_64-378.09/kernel/common/inc/nv-linux.h NVIDIA-Linux-x86_64-378.09.patched/kernel/common/inc/nv-linux.h
--- NVIDIA-Linux-x86_64-378.09/kernel/common/inc/nv-linux.h 2017-01-15 07:33:26.000000000 +0100
+++ NVIDIA-Linux-x86_64-378.09.patched/kernel/common/inc/nv-linux.h 2017-01-19 14:47:21.389272354 +0100
@@ -294,7 +294,8 @@
extern int nv_pat_mode;
-#if defined(CONFIG_HOTPLUG_CPU)
+//#if defined(CONFIG_HOTPLUG_CPU)
+#if 0
View gist:939ca3170d1aa48a601228b7773e2bb1
diff -ur NVIDIA-Linux-x86_64-375.26/kernel/common/inc/nv-linux.h NVIDIA-Linux-x86_64-375.26.patched/kernel/common/inc/nv-linux.h
--- NVIDIA-Linux-x86_64-375.26/kernel/common/inc/nv-linux.h 2016-12-09 02:17:49.000000000 +0100
+++ NVIDIA-Linux-x86_64-375.26.patched/kernel/common/inc/nv-linux.h 2016-12-31 10:55:17.637374373 +0100
@@ -294,7 +294,8 @@
extern int nv_pat_mode;
-#if defined(CONFIG_HOTPLUG_CPU)
+//#if defined(CONFIG_HOTPLUG_CPU)
+#if 0
View 370.20-4.9.0+-stageing50.patch
diff -ur NVIDIA-Linux-x86_64-375.20/kernel/common/inc/nv-mm.h NVIDIA-Linux-x86_64-375.20-patched/kernel/common/inc/nv-mm.h
--- NVIDIA-Linux-x86_64-375.20/kernel/common/inc/nv-mm.h 2016-11-16 00:53:45.000000000 +0100
+++ NVIDIA-Linux-x86_64-375.20-patched/kernel/common/inc/nv-mm.h 2016-12-15 09:54:13.755753901 +0100
@@ -83,7 +83,7 @@
if (force)
flags |= FOLL_FORCE;
- return get_user_pages_remote(tsk, mm, start, nr_pages, flags, pages, vmas);
+ return get_user_pages_remote(tsk, mm, start, nr_pages, flags, pages, vmas, NULL);
}
View p6_nop.patch
diff --git a/arch/x86/Kconfig.cpu b/arch/x86/Kconfig.cpu
index a4bb92600b0a..e753d31e7fb4 100644
--- a/arch/x86/Kconfig.cpu
+++ b/arch/x86/Kconfig.cpu
@@ -319,6 +319,7 @@ config MPSC
config MATOM
bool "Intel Atom"
+ select X86_P6_NOP
---help---
View gist:070606e0a87922db1e01f6aa9ccba117
diff --git a/arch/x86/Kconfig.cpu b/arch/x86/Kconfig.cpu
index a4bb92600b0a..e753d31e7fb4 100644
--- a/arch/x86/Kconfig.cpu
+++ b/arch/x86/Kconfig.cpu
@@ -319,6 +319,7 @@ config MPSC
config MATOM
bool "Intel Atom"
+ select X86_P6_NOP
---help---