summaryrefslogtreecommitdiff
path: root/sys-kernel
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-04-11 23:25:57 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-04-11 23:25:57 +0100
commitea99386b335b20e7a0039d775f0f7fb37888f5dd (patch)
treec0cc17afde8e6692ef11e944b39e3da85cb7554e /sys-kernel
parentf2599462a0d5b734fcc8e66625a13db055b9ec7f (diff)
fix PASCAL cards with nouveau
Diffstat (limited to 'sys-kernel')
-rw-r--r--sys-kernel/linux-headers/files/nouveau-pascal-backlight.patch11
-rw-r--r--sys-kernel/linux-headers/linux-headers-4.16.1.ebuild1
-rw-r--r--sys-kernel/linux-image/files/nouveau-pascal-backlight.patch11
-rw-r--r--sys-kernel/linux-image/linux-image-4.16.1.ebuild1
4 files changed, 24 insertions, 0 deletions
diff --git a/sys-kernel/linux-headers/files/nouveau-pascal-backlight.patch b/sys-kernel/linux-headers/files/nouveau-pascal-backlight.patch
new file mode 100644
index 00000000..754d982a
--- /dev/null
+++ b/sys-kernel/linux-headers/files/nouveau-pascal-backlight.patch
@@ -0,0 +1,11 @@
+diff -up linux-4.16/drivers/gpu/drm/nouveau/nouveau_backlight.c.omv~ linux-4.16/drivers/gpu/drm/nouveau/nouveau_backlight.c
+--- linux-4.16/drivers/gpu/drm/nouveau/nouveau_backlight.c.omv~ 2018-04-06 01:04:34.573357055 +0200
++++ linux-4.16/drivers/gpu/drm/nouveau/nouveau_backlight.c 2018-04-06 01:05:46.985579248 +0200
+@@ -287,6 +287,7 @@ nouveau_backlight_init(struct drm_device
+ case NV_DEVICE_INFO_V0_FERMI:
+ case NV_DEVICE_INFO_V0_KEPLER:
+ case NV_DEVICE_INFO_V0_MAXWELL:
++ case NV_DEVICE_INFO_V0_PASCAL:
+ return nv50_backlight_init(connector);
+ default:
+ break;
diff --git a/sys-kernel/linux-headers/linux-headers-4.16.1.ebuild b/sys-kernel/linux-headers/linux-headers-4.16.1.ebuild
index cc31b0e6..9aaf8db0 100644
--- a/sys-kernel/linux-headers/linux-headers-4.16.1.ebuild
+++ b/sys-kernel/linux-headers/linux-headers-4.16.1.ebuild
@@ -31,6 +31,7 @@ PATCHES=( "${FILESDIR}"/enable_alx_wol.patch
"${FILESDIR}"/0001-Revert-x86-ACPI-cstate-Allow-ACPI-C1-FFH-MWAIT-use-o.patch
"${FILESDIR}"/mute-pps_state_mismatch.patch
"${FILESDIR}"/drop_ancient-and-wrong-msg.patch
+ "${FILESDIR}"/nouveau-pascal-backlight.patch
"${FILESDIR}"/linux-hardened.patch
"${FILESDIR}"/uksm-for-linux-hardened.patch )
diff --git a/sys-kernel/linux-image/files/nouveau-pascal-backlight.patch b/sys-kernel/linux-image/files/nouveau-pascal-backlight.patch
new file mode 100644
index 00000000..754d982a
--- /dev/null
+++ b/sys-kernel/linux-image/files/nouveau-pascal-backlight.patch
@@ -0,0 +1,11 @@
+diff -up linux-4.16/drivers/gpu/drm/nouveau/nouveau_backlight.c.omv~ linux-4.16/drivers/gpu/drm/nouveau/nouveau_backlight.c
+--- linux-4.16/drivers/gpu/drm/nouveau/nouveau_backlight.c.omv~ 2018-04-06 01:04:34.573357055 +0200
++++ linux-4.16/drivers/gpu/drm/nouveau/nouveau_backlight.c 2018-04-06 01:05:46.985579248 +0200
+@@ -287,6 +287,7 @@ nouveau_backlight_init(struct drm_device
+ case NV_DEVICE_INFO_V0_FERMI:
+ case NV_DEVICE_INFO_V0_KEPLER:
+ case NV_DEVICE_INFO_V0_MAXWELL:
++ case NV_DEVICE_INFO_V0_PASCAL:
+ return nv50_backlight_init(connector);
+ default:
+ break;
diff --git a/sys-kernel/linux-image/linux-image-4.16.1.ebuild b/sys-kernel/linux-image/linux-image-4.16.1.ebuild
index a2d0c993..3c2b1f3d 100644
--- a/sys-kernel/linux-image/linux-image-4.16.1.ebuild
+++ b/sys-kernel/linux-image/linux-image-4.16.1.ebuild
@@ -37,6 +37,7 @@ PATCHES=( "${FILESDIR}"/enable_alx_wol.patch
"${FILESDIR}"/0001-Revert-x86-ACPI-cstate-Allow-ACPI-C1-FFH-MWAIT-use-o.patch
"${FILESDIR}"/mute-pps_state_mismatch.patch
"${FILESDIR}"/drop_ancient-and-wrong-msg.patch
+ "${FILESDIR}"/nouveau-pascal-backlight.patch
"${FILESDIR}"/linux-hardened.patch
"${FILESDIR}"/uksm-for-linux-hardened.patch )