summaryrefslogtreecommitdiffstats
path: root/abs/core/nvidia-304xx/drm-driver-legacy.patch
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2017-03-30 17:43:11 (GMT)
committerBritney Fransen <brfransen@gmail.com>2017-03-30 17:43:11 (GMT)
commitaeefac068461053fec4cc2ddeb06773839cfc487 (patch)
treef189d23d7ed82b1cccdef993c5c30e5ea4940b00 /abs/core/nvidia-304xx/drm-driver-legacy.patch
parent40cb6fab936d6c4c07ab785cee75aa30354cfd37 (diff)
downloadlinhes_pkgbuild-aeefac068461053fec4cc2ddeb06773839cfc487.zip
linhes_pkgbuild-aeefac068461053fec4cc2ddeb06773839cfc487.tar.gz
linhes_pkgbuild-aeefac068461053fec4cc2ddeb06773839cfc487.tar.bz2
nvidia-304xx & nvidia-304xx-utils: update to 304.135
Diffstat (limited to 'abs/core/nvidia-304xx/drm-driver-legacy.patch')
-rw-r--r--abs/core/nvidia-304xx/drm-driver-legacy.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/abs/core/nvidia-304xx/drm-driver-legacy.patch b/abs/core/nvidia-304xx/drm-driver-legacy.patch
new file mode 100644
index 0000000..32ac75c
--- /dev/null
+++ b/abs/core/nvidia-304xx/drm-driver-legacy.patch
@@ -0,0 +1,20 @@
+Author: Luca Boccassi <luca.boccassi@gmail.com>
+Description: Fix kernel module load on 4.9 and greater
+ From kernel 4.9 and newer (commit fa5386459f06) non-modesetting drivers have
+ to use the DRM flag DRIVER_LEGACY. Without this flag the kernel module does
+ not load correctly.
+
+--- a/nv-drm.c
++++ b/nv-drm.c
+@@ -71,7 +71,11 @@
+ };
+
+ static struct drm_driver nv_drm_driver = {
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 9, 0)
+ .driver_features = 0,
++#else
++ .driver_features = DRIVER_LEGACY,
++#endif
+ .load = nv_drm_load,
+ .unload = nv_drm_unload,
+ .fops = &nv_drm_fops,