summaryrefslogtreecommitdiff
path: root/sys-kernel/nvidia-drivers-dkms
diff options
context:
space:
mode:
Diffstat (limited to 'sys-kernel/nvidia-drivers-dkms')
-rw-r--r--sys-kernel/nvidia-drivers-dkms/Manifest2
-rw-r--r--sys-kernel/nvidia-drivers-dkms/files/nvidia-drivers-dkms-455.45.01-dkms-kmalloc.patch (renamed from sys-kernel/nvidia-drivers-dkms/files/nvidia-drivers-dkms-440.82-conf.patch)20
-rw-r--r--sys-kernel/nvidia-drivers-dkms/nvidia-drivers-dkms-455.45.01.ebuild (renamed from sys-kernel/nvidia-drivers-dkms/nvidia-drivers-dkms-440.82.ebuild)2
3 files changed, 18 insertions, 6 deletions
diff --git a/sys-kernel/nvidia-drivers-dkms/Manifest b/sys-kernel/nvidia-drivers-dkms/Manifest
index 7ae853da..a5f2344d 100644
--- a/sys-kernel/nvidia-drivers-dkms/Manifest
+++ b/sys-kernel/nvidia-drivers-dkms/Manifest
@@ -1 +1 @@
-DIST NVIDIA-Linux-x86_64-440.82.run 142872609 BLAKE2B 3ebef17002a788f145b61fb8c921f120324eac036ff4c7b972913e30ed830339fc971fd352f5e59ee3bb1b4a7a159dcf3e35d2f33ee37357c3f177aa605307ea SHA512 d86ed2cd715c5a9aebdd11ee562cfa454dbafdb1b468004cbb93d37ee258623f11144cf30b8b14996a4e093cb3119edc36d13152893d735e3536f49c45e2cca3
+DIST NVIDIA-Linux-x86_64-455.45.01.run 183481072 BLAKE2B 5756c788cff136692f0d6de4b33d74ad698fcc75cf2fb6f0adc6381a0377bea18eae0f728151ac8b2efb5508c7420c2df3be3fd7d0035b4477e3e3c97e85ab5c SHA512 dd2743cd2304d7f3afc0c3761cf6c848561bcaabcbdc27157d091a89974aff81bcd28aa3e204d33d406abdbafd14e9162f3cbabc950309e06e6cad7b6fa8df69
diff --git a/sys-kernel/nvidia-drivers-dkms/files/nvidia-drivers-dkms-440.82-conf.patch b/sys-kernel/nvidia-drivers-dkms/files/nvidia-drivers-dkms-455.45.01-dkms-kmalloc.patch
index 8c4a9020..c3e9fbfb 100644
--- a/sys-kernel/nvidia-drivers-dkms/files/nvidia-drivers-dkms-440.82-conf.patch
+++ b/sys-kernel/nvidia-drivers-dkms/files/nvidia-drivers-dkms-455.45.01-dkms-kmalloc.patch
@@ -1,11 +1,10 @@
-diff -Nur a/kernel/dkms.conf b/kernel/dkms.conf
---- a/kernel/dkms.conf 2019-05-09 19:10:50.000000000 +0100
-+++ b/kernel/dkms.conf 2019-06-22 16:04:07.646270011 +0100
+--- a/kernel/dkms.conf 2020-11-05 22:50:01.000000000 +0000
++++ b/kernel/dkms.conf 2020-12-31 22:26:00.878993419 +0000
@@ -1,12 +1,20 @@
-PACKAGE_NAME="nvidia"
-PACKAGE_VERSION="__VERSION_STRING"
+PACKAGE_NAME="nvidia-drivers-dkms"
-+PACKAGE_VERSION="440.82"
++PACKAGE_VERSION="455.45.01"
AUTOINSTALL="yes"
# By default, DKMS will add KERNELRELEASE to the make command line; however,
@@ -26,3 +25,16 @@ diff -Nur a/kernel/dkms.conf b/kernel/dkms.conf
+BUILT_MODULE_NAME[3]="nvidia-drm"
+DEST_MODULE_LOCATION[3]="/extra/dkms"
+
+--- a/kernel/nvidia-modeset/nvidia-modeset-linux.c 2020-11-05 23:19:28.000000000 +0000
++++ b/kernel/nvidia-modeset/nvidia-modeset-linux.c 2020-12-31 22:27:16.878028504 +0000
+@@ -282,8 +282,8 @@
+ * are called while nvkms_lock is held.
+ *************************************************************************/
+
+-/* Don't use kmalloc for allocations larger than 128k */
+-#define KMALLOC_LIMIT (128 * 1024)
++/* Don't use kmalloc for allocations larger than one page */
++#define KMALLOC_LIMIT PAGE_SIZE
+
+ void* NVKMS_API_CALL nvkms_alloc(size_t size, NvBool zero)
+ {
diff --git a/sys-kernel/nvidia-drivers-dkms/nvidia-drivers-dkms-440.82.ebuild b/sys-kernel/nvidia-drivers-dkms/nvidia-drivers-dkms-455.45.01.ebuild
index a7901da6..63ad5443 100644
--- a/sys-kernel/nvidia-drivers-dkms/nvidia-drivers-dkms-440.82.ebuild
+++ b/sys-kernel/nvidia-drivers-dkms/nvidia-drivers-dkms-455.45.01.ebuild
@@ -24,7 +24,7 @@ RDEPEND="${DEPEND}
PATCHES=(
"${FILESDIR}"/fs62142.patch
- "${FILESDIR}"/"${P}"-conf.patch
+ "${FILESDIR}"/${P}-dkms-kmalloc.patch
)
S="${WORKDIR}/${AMD64_NV_PACKAGE}"