summaryrefslogtreecommitdiff
path: root/kernels/linux-libre-rt/i915-bogus-warning-from-i915-when-running-on-PREEMPT_RT.patch
diff options
context:
space:
mode:
Diffstat (limited to 'kernels/linux-libre-rt/i915-bogus-warning-from-i915-when-running-on-PREEMPT_RT.patch')
-rw-r--r--kernels/linux-libre-rt/i915-bogus-warning-from-i915-when-running-on-PREEMPT_RT.patch31
1 files changed, 31 insertions, 0 deletions
diff --git a/kernels/linux-libre-rt/i915-bogus-warning-from-i915-when-running-on-PREEMPT_RT.patch b/kernels/linux-libre-rt/i915-bogus-warning-from-i915-when-running-on-PREEMPT_RT.patch
new file mode 100644
index 000000000..9d0fe86cc
--- /dev/null
+++ b/kernels/linux-libre-rt/i915-bogus-warning-from-i915-when-running-on-PREEMPT_RT.patch
@@ -0,0 +1,31 @@
+From: Clark Williams <williams@redhat.com>
+Date: Thu, 21 May 2015 12:51:53 -0500
+Subject: [PATCH] [rt] i915: bogus warning from i915 when running on PREEMPT_RT
+
+The i915 driver has a 'WARN_ON(!in_interrupt())' in the display
+handler, which whines constanly on the RT kernel (since the interrupt
+is actually handled in a threaded handler and not actual interrupt
+context).
+
+Change the WARN_ON to WARN_ON_NORT
+
+Signed-off-by: Clark Williams <williams@redhat.com>
+---
+ drivers/gpu/drm/i915/intel_display.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
+index f75173c20f47..30b1d16caa0d 100644
+--- a/drivers/gpu/drm/i915/intel_display.c
++++ b/drivers/gpu/drm/i915/intel_display.c
+@@ -9745,7 +9745,7 @@ void intel_check_page_flip(struct drm_device *dev, int pipe)
+ struct drm_crtc *crtc = dev_priv->pipe_to_crtc_mapping[pipe];
+ struct intel_crtc *intel_crtc = to_intel_crtc(crtc);
+
+- WARN_ON(!in_interrupt());
++ WARN_ON_NONRT(!in_interrupt());
+
+ if (crtc == NULL)
+ return;
+--
+2.1.0