summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2015-12-01 20:41:33 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2015-12-01 20:41:33 +0000
commitea4c07ecdc685e9cb838db688931a431e0199c74 (patch)
tree0d5297086b480ae914cdeabff2c4319c45cd57b6 /sys
parent1d477f68fa838d43d89a8ab40b6e6bb3e78743b9 (diff)
Enable the GSE interrupt on Broadwell. Fixes acpi brightness control on
the MacBookPro12,1, 3rd gen Lenovo X1 Carbon (when hacked to use the standard acpi mechanism for this purpose) and probably many others. Seems this hasn't been figured out over in Linux land yet.
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/pci/drm/i915/i915_irq.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/dev/pci/drm/i915/i915_irq.c b/sys/dev/pci/drm/i915/i915_irq.c
index 022566ebe28..a83404ef141 100644
--- a/sys/dev/pci/drm/i915/i915_irq.c
+++ b/sys/dev/pci/drm/i915/i915_irq.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: i915_irq.c,v 1.29 2015/09/23 23:12:12 kettenis Exp $ */
+/* $OpenBSD: i915_irq.c,v 1.30 2015/12/01 20:41:32 kettenis Exp $ */
/* i915_irq.c -- IRQ support for the I915 -*- linux-c -*-
*/
/*
@@ -3019,6 +3019,10 @@ static void gen8_de_irq_postinstall(struct drm_i915_private *dev_priv)
I915_WRITE(GEN8_DE_PORT_IMR, ~GEN8_AUX_CHANNEL_A);
I915_WRITE(GEN8_DE_PORT_IER, GEN8_AUX_CHANNEL_A);
POSTING_READ(GEN8_DE_PORT_IER);
+
+ I915_WRITE(GEN8_DE_MISC_IMR, ~GEN8_DE_MISC_GSE);
+ I915_WRITE(GEN8_DE_MISC_IER, GEN8_DE_MISC_GSE);
+ POSTING_READ(GEN8_DE_MISC_IER);
}
static int gen8_irq_postinstall(struct drm_device *dev)