summarylogtreecommitdiffstats
path: root/drm-driver-legacy.patch
diff options
context:
space:
mode:
authorsirlucjan2017-05-21 15:48:31 +0200
committersirlucjan2017-05-21 15:48:31 +0200
commit1f961e8183130278e0bc5d060afd9cdd3816e3db (patch)
tree12caf493e5dc79538cc26f14447628d812835408 /drm-driver-legacy.patch
parentdb81a1de82f770cb6949d6e0fcadd5059da01686 (diff)
downloadaur-1f961e8183130278e0bc5d060afd9cdd3816e3db.tar.gz
Bump to 4.11.2-1
Diffstat (limited to 'drm-driver-legacy.patch')
-rw-r--r--drm-driver-legacy.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/drm-driver-legacy.patch b/drm-driver-legacy.patch
new file mode 100644
index 000000000000..32ac75ca4dfa
--- /dev/null
+++ b/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,