diff mbox series

[RFC,3/3] drm/i915: Schedule darkscreen detection work

Message ID 20240424073829.824312-5-suraj.kandpal@intel.com (mailing list archive)
State New, archived
Headers show
Series Enable darkscreen detection | expand

Commit Message

Suraj Kandpal April 24, 2024, 7:38 a.m. UTC
Schedule darkscreen detection work whenever we hit FIFO
underrun.

Signed-off-by: Suraj Kandpal <suraj.kandpal@intel.com>
---
 drivers/gpu/drm/i915/display/intel_fifo_underrun.c | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

diff --git a/drivers/gpu/drm/i915/display/intel_fifo_underrun.c b/drivers/gpu/drm/i915/display/intel_fifo_underrun.c
index 09a7fa6c0c37..a6acd086d924 100644
--- a/drivers/gpu/drm/i915/display/intel_fifo_underrun.c
+++ b/drivers/gpu/drm/i915/display/intel_fifo_underrun.c
@@ -27,6 +27,7 @@ 
 
 #include "i915_drv.h"
 #include "i915_reg.h"
+#include "intel_darkscreen.h"
 #include "intel_de.h"
 #include "intel_display_irq.h"
 #include "intel_display_trace.h"
@@ -438,6 +439,7 @@  void intel_cpu_fifo_underrun_irq_handler(struct drm_i915_private *dev_priv,
 	}
 
 	intel_fbc_handle_fifo_underrun_irq(dev_priv);
+	intel_darkscreen_schedule_work(crtc);
 }
 
 /**