diff options
author | David Seifert <soap@gentoo.org> | 2020-12-07 13:57:41 +0100 |
---|---|---|
committer | David Seifert <soap@gentoo.org> | 2020-12-07 13:57:41 +0100 |
commit | 477b1935411fdc4646c5ef49a1414faeda70058d (patch) | |
tree | 171f7a4d6ed0a6ebc47fb31cfaee15bc53ec8a2c /x11-drivers/nvidia-drivers/files/nvidia-drivers-455.45.01-reduce-kmalloc-limit.patch | |
parent | sys-apps/likwid-4.3.4: migrate to lua-single.eclass (diff) | |
download | gentoo-477b1935411fdc4646c5ef49a1414faeda70058d.tar.gz gentoo-477b1935411fdc4646c5ef49a1414faeda70058d.tar.bz2 gentoo-477b1935411fdc4646c5ef49a1414faeda70058d.zip |
x11-drivers/nvidia-drivers: Add patch for modesetting allocation failures
Bug: https://bugs.gentoo.org/755497
Package-Manager: Portage-3.0.12, Repoman-3.0.2
Suggested-by: Gregory Beauregard <gentoobugs@gably.net>
Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'x11-drivers/nvidia-drivers/files/nvidia-drivers-455.45.01-reduce-kmalloc-limit.patch')
-rw-r--r-- | x11-drivers/nvidia-drivers/files/nvidia-drivers-455.45.01-reduce-kmalloc-limit.patch | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/x11-drivers/nvidia-drivers/files/nvidia-drivers-455.45.01-reduce-kmalloc-limit.patch b/x11-drivers/nvidia-drivers/files/nvidia-drivers-455.45.01-reduce-kmalloc-limit.patch new file mode 100644 index 000000000000..c61033bf2a92 --- /dev/null +++ b/x11-drivers/nvidia-drivers/files/nvidia-drivers-455.45.01-reduce-kmalloc-limit.patch @@ -0,0 +1,18 @@ +Patch taken from + https://forums.developer.nvidia.com/t/455-23-04-page-allocation-failure-in-kernel-module-at-random-points/155250/55 +Bug: https://bugs.gentoo.org/755497 +Credits go to Gregory Beauregard for pointing this out + +--- a/kernel/nvidia-modeset/nvidia-modeset-linux.c ++++ b/kernel/nvidia-modeset/nvidia-modeset-linux.c +@@ -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) + { |