diff options
author | Lenard Spencer <lenardrspencer@gmail.com> | 2024-03-08 17:56:01 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2024-03-09 06:18:15 +0700 |
commit | 5f2f275dbdbb5f5f115aeece968400de3926feea (patch) | |
tree | 05485c41be58e26fff8c8f21fc6d726d7613b8c9 /system/nvidia-open-kernel | |
parent | d7f29609b646431c0e5972f2ef9019ab2927b2c4 (diff) |
system/nvidia-open-kernel: Updated for version 550.54.14.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/nvidia-open-kernel')
3 files changed, 5 insertions, 53 deletions
diff --git a/system/nvidia-open-kernel/nvidia-open-kernel.SlackBuild b/system/nvidia-open-kernel/nvidia-open-kernel.SlackBuild index 81cf9e0813992..114cefda1178d 100644 --- a/system/nvidia-open-kernel/nvidia-open-kernel.SlackBuild +++ b/system/nvidia-open-kernel/nvidia-open-kernel.SlackBuild @@ -27,8 +27,8 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=nvidia-open-kernel -VERSION=${VERSION:-535.154.05} -BUILD=${BUILD:-2} +VERSION=${VERSION:-550.54.14} +BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -83,9 +83,6 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; -# Patch for latest 6.x kernels: -patch -p1 < $CWD/nvidia-open-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-open-kernel/nvidia-open-kernel.info b/system/nvidia-open-kernel/nvidia-open-kernel.info index 3b0eccc3f84f6..2b2ae65474e38 100644 --- a/system/nvidia-open-kernel/nvidia-open-kernel.info +++ b/system/nvidia-open-kernel/nvidia-open-kernel.info @@ -1,10 +1,10 @@ PRGNAM="nvidia-open-kernel" -VERSION="535.154.05" +VERSION="550.54.14" HOMEPAGE="https://github.com/NVIDIA/open-gpu-kernel-modules/" DOWNLOAD="UNSUPPORTED" MD5SUM="" -DOWNLOAD_x86_64="https://download.nvidia.com/XFree86/NVIDIA-kernel-module-source/NVIDIA-kernel-module-source-535.154.05.tar.xz" -MD5SUM_x86_64="114b391d6d86f66bf2efc0fc78011d8e" +DOWNLOAD_x86_64="https://download.nvidia.com/XFree86/NVIDIA-kernel-module-source/NVIDIA-kernel-module-source-550.54.14.tar.xz" +MD5SUM_x86_64="a982fd2acb111fa82472b22b7f686187" REQUIRES="" MAINTAINER="Lenard Spencer" EMAIL="lenardrspencer@gmail.com" diff --git a/system/nvidia-open-kernel/nvidia-open-rcu_read_lock-unlock.patch b/system/nvidia-open-kernel/nvidia-open-rcu_read_lock-unlock.patch deleted file mode 100644 index a64f415e4f7b8..0000000000000 --- a/system/nvidia-open-kernel/nvidia-open-rcu_read_lock-unlock.patch +++ /dev/null @@ -1,45 +0,0 @@ ---- a/kernel-open/common/inc/nv-linux.h -+++ b/kernel-open/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-open/nvidia/nv-mmap.c -+++ b/kernel-open/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-open/nvidia/os-mlock.c -+++ b/kernel-open/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)) - { |