drm/i915: Move the TRANS_DDI_FUNC_CTL enable to a later point
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 17 Apr 2020 13:47:18 +0000 (16:47 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 20 Apr 2020 18:21:10 +0000 (21:21 +0300)
No reason that I can see why we should enable TRANS_DDI_FUNC_CTL
before we set up the watermarks of configure the mbus stuff.
In fact reordering these seems to match the bspec sequence better,
and crucially will allow us to push the TRANS_DDI_FUNC_CTL enable
into the encoder enable hook as a followup.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200417134720.16654-2-ville.syrjala@linux.intel.com
Acked-by: Chris Wilson <chris@chris-wilson.co.uk>
Acked-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/display/intel_display.c

index bae1d89875d6e7384cde4fbc2f12db8af77af78c..55e7c499e7c7f50e16fa590372506d079e7ec056 100644 (file)
@@ -7071,15 +7071,15 @@ static void hsw_crtc_enable(struct intel_atomic_state *state,
        if (INTEL_GEN(dev_priv) >= 11)
                icl_set_pipe_chicken(crtc);
 
-       if (!transcoder_is_dsi(cpu_transcoder))
-               intel_ddi_enable_transcoder_func(new_crtc_state);
-
        if (dev_priv->display.initial_watermarks)
                dev_priv->display.initial_watermarks(state, crtc);
 
        if (INTEL_GEN(dev_priv) >= 11)
                icl_pipe_mbus_enable(crtc);
 
+       if (!transcoder_is_dsi(cpu_transcoder))
+               intel_ddi_enable_transcoder_func(new_crtc_state);
+
        intel_encoders_enable(state, crtc);
 
        if (psl_clkgate_wa) {