nvidia390: add patch for linux-5.2

This commit is contained in:
Helmut Pozimski 2019-07-28 10:43:40 +02:00
parent dd2c1967c2
commit 99148f5768
2 changed files with 20 additions and 1 deletions

View File

@ -0,0 +1,18 @@
diff -u -r a/kernel/nvidia-uvm/uvm8_tools.c b/kernel/nvidia-uvm/uvm8_tools.c
--- a/kernel/nvidia-uvm/uvm8_tools.c 2019-01-27 16:12:22.000000000 +0000
+++ b/kernel/nvidia-uvm/uvm8_tools.c 2019-07-09 04:42:40.134899491 +0000
@@ -204,12 +204,14 @@
return event_tracker != NULL && !event_tracker->is_queue;
}
+#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 2, 0)
static void put_user_pages(struct page **pages, NvU64 page_count)
{
NvU64 i;
for (i = 0; i < page_count; i++)
put_page(pages[i]);
}
+#endif
static void unmap_user_pages(struct page **pages, void *addr, NvU64 size)
{

View File

@ -4,7 +4,7 @@ _desc="NVIDIA drivers (GeForce 400, 500 series)"
pkgname=nvidia390 pkgname=nvidia390
version=390.116 version=390.116
revision=2 revision=3
maintainer="Juan RP <xtraeme@voidlinux.org>" maintainer="Juan RP <xtraeme@voidlinux.org>"
license="Proprietary NVIDIA license" license="Proprietary NVIDIA license"
homepage="http://www.nvidia.com" homepage="http://www.nvidia.com"
@ -46,6 +46,7 @@ do_patch() {
case "$XBPS_TARGET_MACHINE" in case "$XBPS_TARGET_MACHINE" in
x86_64) x86_64)
patch -p1 < ${FILESDIR}/kernel-5.1-x86_64.patch patch -p1 < ${FILESDIR}/kernel-5.1-x86_64.patch
patch -p1 < ${FILESDIR}/kernel-5.2-x86_64.patch
;; ;;
esac esac
} }