summaryrefslogtreecommitdiff
path: root/x11-drivers/nvidia-drivers/files
diff options
context:
space:
mode:
Diffstat (limited to 'x11-drivers/nvidia-drivers/files')
-rw-r--r--x11-drivers/nvidia-drivers/files/390.87-ipmi_user.patch37
-rw-r--r--x11-drivers/nvidia-drivers/files/390.87-vmf_insert_pfn.patch23
-rw-r--r--x11-drivers/nvidia-drivers/files/kernel-4.19.patch49
-rw-r--r--x11-drivers/nvidia-drivers/files/nvidia-drivers-390.116-conf.patch (renamed from x11-drivers/nvidia-drivers/files/nvidia-drivers-390.87-conf.patch)2
4 files changed, 1 insertions, 110 deletions
diff --git a/x11-drivers/nvidia-drivers/files/390.87-ipmi_user.patch b/x11-drivers/nvidia-drivers/files/390.87-ipmi_user.patch
deleted file mode 100644
index 36228bc4..00000000
--- a/x11-drivers/nvidia-drivers/files/390.87-ipmi_user.patch
+++ /dev/null
@@ -1,37 +0,0 @@
-diff -Nur a/kernel/nvidia/os-interface.c b/kernel/nvidia/os-interface.c
---- a/kernel/nvidia/os-interface.c 2018-08-22 01:55:22.000000000 +0100
-+++ b/kernel/nvidia/os-interface.c 2019-02-10 03:28:33.359055441 +0000
-@@ -16,6 +16,8 @@
-
- #include "nv-gpu-numa.h"
-
-+#include <linux/version.h>
-+
- #define MAX_ERROR_STRING 512
- static char nv_error_string[MAX_ERROR_STRING];
- nv_spinlock_t nv_error_string_lock;
-@@ -1697,7 +1699,12 @@
-
- struct nv_ipmi_softc
- {
-+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 19, 0)
-+ struct ipmi_user *p_user; // ptr to ipmi_msghandler user structure
-+#else
- ipmi_user_t p_user; // ptr to ipmi_msghandler user structure
-+#endif
-+
- spinlock_t msg_lock;
- struct list_head msgs;
- NvU32 seqNum; //request sequence number
-@@ -1706,7 +1713,11 @@
- static inline int
- nv_ipmi_set_my_address
- (
-+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 19, 0)
-+ struct ipmi_user *user,
-+#else
- ipmi_user_t user,
-+#endif
- unsigned char address
- )
- {
diff --git a/x11-drivers/nvidia-drivers/files/390.87-vmf_insert_pfn.patch b/x11-drivers/nvidia-drivers/files/390.87-vmf_insert_pfn.patch
deleted file mode 100644
index 63052b57..00000000
--- a/x11-drivers/nvidia-drivers/files/390.87-vmf_insert_pfn.patch
+++ /dev/null
@@ -1,23 +0,0 @@
-diff -Nur a/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c b/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c
---- a/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c 2018-08-22 01:55:29.000000000 +0100
-+++ b/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c 2019-02-10 03:22:49.318034507 +0000
-@@ -29,6 +29,7 @@
-
- #include "nv-mm.h"
-
-+#include <linux/version.h>
- static void __nv_drm_gem_nvkms_memory_free(struct nv_drm_gem_object *nv_gem)
- {
- struct nv_drm_device *nv_dev = nv_gem->nv_dev;
-@@ -237,7 +238,11 @@
-
- page_offset = vmf->pgoff - drm_vma_node_start(&gem->vma_node);
-
-+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 19, 0)
-+ ret = vmf_insert_pfn(vma, address, pfn + page_offset);
-+#else
- ret = vm_insert_pfn(vma, address, pfn + page_offset);
-+#endif
-
- switch (ret) {
- case 0:
diff --git a/x11-drivers/nvidia-drivers/files/kernel-4.19.patch b/x11-drivers/nvidia-drivers/files/kernel-4.19.patch
deleted file mode 100644
index 4abcba4a..00000000
--- a/x11-drivers/nvidia-drivers/files/kernel-4.19.patch
+++ /dev/null
@@ -1,49 +0,0 @@
-diff -Naru a/kernel/nvidia-drm/nvidia-drm-connector.c b/kernel/nvidia-drm/nvidia-drm-connector.c
---- a/kernel/nvidia-drm/nvidia-drm-connector.c 2018-10-23 07:58:50.447742183 +0200
-+++ b/kernel/nvidia-drm/nvidia-drm-connector.c 2018-10-23 08:00:13.927741400 +0200
-@@ -35,6 +35,8 @@
- #include <drm/drm_atomic.h>
- #include <drm/drm_atomic_helper.h>
-
-+#include <linux/version.h>
-+
- static void nv_drm_connector_destroy(struct drm_connector *connector)
- {
- struct nv_drm_connector *nv_connector = to_nv_connector(connector);
-@@ -226,7 +228,11 @@
-
-
- if (nv_connector->edid != NULL) {
-+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 19, 0)
-+ drm_connector_update_edid_property(
-+#else
- drm_mode_connector_update_edid_property(
-+#endif
- connector, nv_connector->edid);
- }
-
-diff -Naru kernel.orig/nvidia-drm/nvidia-drm-encoder.c kernel/nvidia-drm/nvidia-drm-encoder.c
---- a/kernel/nvidia-drm/nvidia-drm-encoder.c 2018-10-23 07:58:50.447742183 +0200
-+++ b/kernel/nvidia-drm/nvidia-drm-encoder.c 2018-10-23 08:01:21.587740766 +0200
-@@ -35,6 +35,8 @@
- #include <drm/drm_atomic.h>
- #include <drm/drm_atomic_helper.h>
-
-+#include <linux/version.h>
-+
- static void nv_drm_encoder_destroy(struct drm_encoder *encoder)
- {
- struct nv_drm_encoder *nv_encoder = to_nv_encoder(encoder);
-@@ -215,8 +217,11 @@
- }
-
- /* Attach encoder and connector */
--
-+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 19, 0)
-+ ret = drm_connector_attach_encoder(connector, encoder);
-+#else
- ret = drm_mode_connector_attach_encoder(connector, encoder);
-+#endif
-
- if (ret != 0) {
- NV_DRM_DEV_LOG_ERR(
diff --git a/x11-drivers/nvidia-drivers/files/nvidia-drivers-390.87-conf.patch b/x11-drivers/nvidia-drivers/files/nvidia-drivers-390.116-conf.patch
index 06fc058d..39736f59 100644
--- a/x11-drivers/nvidia-drivers/files/nvidia-drivers-390.87-conf.patch
+++ b/x11-drivers/nvidia-drivers/files/nvidia-drivers-390.116-conf.patch
@@ -5,7 +5,7 @@ diff -Nur a/kernel/dkms.conf b/kernel/dkms.conf
-PACKAGE_NAME="nvidia"
-PACKAGE_VERSION="__VERSION_STRING"
+PACKAGE_NAME="nvidia-drivers-dkms"
-+PACKAGE_VERSION="390.87"
++PACKAGE_VERSION="390.116"
AUTOINSTALL="yes"
# By default, DKMS will add KERNELRELEASE to the make command line; however,