drm/i915/dg2: Configure PCON in DP pre-enable path
authorAnkit Nautiyal <ankit.k.nautiyal@intel.com>
Thu, 5 Aug 2021 16:36:47 +0000 (09:36 -0700)
committerMatt Roper <matthew.d.roper@intel.com>
Wed, 11 Aug 2021 15:27:19 +0000 (08:27 -0700)
Add the functions to configure HDMI2.1 pcon for DG2, before DP link
training.

Signed-off-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
Reviewed-by: José Roberto de Souza <jose.souza@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210805163647.801064-10-matthew.d.roper@intel.com
drivers/gpu/drm/i915/display/intel_ddi.c

index d8162951b78f8404fd2d2efdea4b06dd7b0fac4e..e932fd0fe7e20becbc6d2d929c3d6883a78f12e4 100644 (file)
@@ -2402,6 +2402,7 @@ static void dg2_ddi_pre_enable_dp(struct intel_atomic_state *state,
        if (!is_mst)
                intel_dp_set_power(intel_dp, DP_SET_POWER_D0);
 
+       intel_dp_configure_protocol_converter(intel_dp, crtc_state);
        intel_dp_sink_set_decompression_state(intel_dp, crtc_state, true);
        /*
         * DDI FEC: "anticipates enabling FEC encoding sets the FEC_READY bit
@@ -2409,6 +2410,8 @@ static void dg2_ddi_pre_enable_dp(struct intel_atomic_state *state,
         * training
         */
        intel_dp_sink_set_fec_ready(intel_dp, crtc_state);
+       intel_dp_check_frl_training(intel_dp);
+       intel_dp_pcon_dsc_configure(intel_dp, crtc_state);
 
        /*
         * 5.h Follow DisplayPort specification training sequence (see notes for