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

Suraj Kandpal suraj.kandpal at intel.com
Wed Apr 24 07:38:19 UTC 2024


Schedule darkscreen detection work whenever we hit FIFO
underrun.

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

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);
 }
 
 /**
-- 
2.43.2



More information about the Intel-gfx mailing list