diff options
author | Lenard Spencer <lenardrspencer@gmail.com> | 2024-03-08 17:56:07 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2024-03-09 06:18:15 +0700 |
commit | 6db531c03461bbcd1d11b0247eecf6a8957ab636 (patch) | |
tree | cbca6a59ff1ed00ed69423f428c62a9e624361a6 /system/nvidia-legacy470-kernel | |
parent | 5f2f275dbdbb5f5f115aeece968400de3926feea (diff) |
system/nvidia-legacy470-kernel: Updated for version 470.239.06.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/nvidia-legacy470-kernel')
3 files changed, 6 insertions, 54 deletions
diff --git a/system/nvidia-legacy470-kernel/nvidia-legacy470-kernel.SlackBuild b/system/nvidia-legacy470-kernel/nvidia-legacy470-kernel.SlackBuild index 2f8349992a16d..ac687139293b3 100644 --- a/system/nvidia-legacy470-kernel/nvidia-legacy470-kernel.SlackBuild +++ b/system/nvidia-legacy470-kernel/nvidia-legacy470-kernel.SlackBuild @@ -31,8 +31,8 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=nvidia-legacy470-kernel -VERSION=${VERSION:-470.223.02} -BUILD=${BUILD:-2} +VERSION=${VERSION:-470.239.06} +BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -89,9 +89,6 @@ find -L . \ unset ARCH -# Patch for latest 6.x kernels: -patch -p2 < $CWD/nvidia-rcu_read_lock-unlock.patch - # CC=${CC:-gcc} suppresses an otherwise harmless "compiler mismatch" # message. If you custom-build your kernel with clang, # then pass CC=clang to this script. diff --git a/system/nvidia-legacy470-kernel/nvidia-legacy470-kernel.info b/system/nvidia-legacy470-kernel/nvidia-legacy470-kernel.info index 8fcd9cb75c7fb..7bde5b3a4b67a 100644 --- a/system/nvidia-legacy470-kernel/nvidia-legacy470-kernel.info +++ b/system/nvidia-legacy470-kernel/nvidia-legacy470-kernel.info @@ -1,10 +1,10 @@ PRGNAM="nvidia-legacy470-kernel" -VERSION="470.223.02" -HOMEPAGE="http://www.nvidia.com" +VERSION="470.239.06" +HOMEPAGE="https://www.nvidia.com" DOWNLOAD="UNSUPPORTED" MD5SUM="" -DOWNLOAD_x86_64="https://download.nvidia.com/XFree86/Linux-x86_64/470.223.02/NVIDIA-Linux-x86_64-470.223.02.run" -MD5SUM_x86_64="b6b2b79cd6d8288e42546b785e6c1d0a" +DOWNLOAD_x86_64="https://download.nvidia.com/XFree86/Linux-x86_64/470.239.06/NVIDIA-Linux-x86_64-470.239.06.run" +MD5SUM_x86_64="4d007f78ef892929399aaf02152f4c38" REQUIRES="" MAINTAINER="Lenard Spencer" EMAIL="lenardrspencer@gmail.com" diff --git a/system/nvidia-legacy470-kernel/nvidia-rcu_read_lock-unlock.patch b/system/nvidia-legacy470-kernel/nvidia-rcu_read_lock-unlock.patch deleted file mode 100644 index 124d9a6ddcf3e..0000000000000 --- a/system/nvidia-legacy470-kernel/nvidia-rcu_read_lock-unlock.patch +++ /dev/null @@ -1,45 +0,0 @@ ---- a/kernel/common/inc/nv-linux.h -+++ b/kernel/common/inc/nv-linux.h -@@ -1990,2 +1990,23 @@ - -+#if defined(CONFIG_HAVE_ARCH_PFN_VALID) || LINUX_VERSION_CODE < KERNEL_VERSION(6,1,76) -+# define nv_pfn_valid pfn_valid -+#else -+/* pre-6.1.76 kernel pfn_valid version without GPL rcu_read_lock/unlock() */ -+static inline int nv_pfn_valid(unsigned long pfn) -+{ -+ struct mem_section *ms; -+ -+ if (PHYS_PFN(PFN_PHYS(pfn)) != pfn) -+ return 0; -+ -+ if (pfn_to_section_nr(pfn) >= NR_MEM_SECTIONS) -+ return 0; -+ -+ ms = __pfn_to_section(pfn); -+ if (!valid_section(ms)) -+ return 0; -+ -+ return early_section(ms) || pfn_section_valid(ms, pfn); -+} -+#endif - #endif /* _NV_LINUX_H_ */ ---- a/kernel/nvidia/nv-mmap.c -+++ b/kernel/nvidia/nv-mmap.c -@@ -576,3 +576,3 @@ - if (!IS_REG_OFFSET(nv, access_start, access_len) && -- (pfn_valid(PFN_DOWN(mmap_start)))) -+ (nv_pfn_valid(PFN_DOWN(mmap_start)))) - { ---- a/kernel/nvidia/os-mlock.c -+++ b/kernel/nvidia/os-mlock.c -@@ -102,3 +102,3 @@ - if ((nv_follow_pfn(vma, (start + (i * PAGE_SIZE)), &pfn) < 0) || -- (!pfn_valid(pfn))) -+ (!nv_pfn_valid(pfn))) - { -@@ -176,3 +176,3 @@ - -- if (pfn_valid(pfn)) -+ if (nv_pfn_valid(pfn)) - { |