drm/i915: Fix initial pipe underrun state tracking
[deliverable/linux.git] / drivers / gpu / drm / i915 / intel_display.c
index 7be5984431bb6252e62cd99263f480944e8e713b..b433b891f8a2cc1f9a30f4e239b6bdb43af240ac 100644 (file)
@@ -11499,6 +11499,17 @@ static void intel_sanitize_crtc(struct intel_crtc *crtc)
                        encoder->base.crtc = NULL;
                }
        }
+       if (crtc->active) {
+               /*
+                * We start out with underrun reporting disabled to avoid races.
+                * For correct bookkeeping mark this on active crtcs.
+                *
+                * No protection against concurrent access is required - at
+                * worst a fifo underrun happens which also sets this to false.
+                */
+               crtc->cpu_fifo_underrun_disabled = true;
+               crtc->pch_fifo_underrun_disabled = true;
+       }
 }
 
 static void intel_sanitize_encoder(struct intel_encoder *encoder)
This page took 0.03565 seconds and 5 git commands to generate.