]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
drm/i915/dp: Use crtc_state->enhanced_framing properly on ivb/hsw CPU eDP
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 25 Mar 2026 13:58:45 +0000 (15:58 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 30 Mar 2026 15:56:58 +0000 (18:56 +0300)
Looks like I missed the drm_dp_enhanced_frame_cap() in the ivb/hsw CPU
eDP code when I introduced crtc_state->enhanced_framing. Fix it up so
that the state we program to the hardware is guaranteed to match what
we computed earlier.

Cc: stable@vger.kernel.org
Fixes: 3072a24c778a ("drm/i915: Introduce crtc_state->enhanced_framing")
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patch.msgid.link/20260325135849.12603-3-ville.syrjala@linux.intel.com
Reviewed-by: Michał Grzelak <michal.grzelak@intel.com>
drivers/gpu/drm/i915/display/g4x_dp.c

index d7de329abf19d9b463bac0e41408f59a9571e1f0..5e74d8a3ba5c8947d883d6ec7cd62419480f303b 100644 (file)
@@ -136,7 +136,7 @@ static void intel_dp_prepare(struct intel_encoder *encoder,
                        intel_dp->DP |= DP_SYNC_VS_HIGH;
                intel_dp->DP |= DP_LINK_TRAIN_OFF_CPT;
 
-               if (drm_dp_enhanced_frame_cap(intel_dp->dpcd))
+               if (pipe_config->enhanced_framing)
                        intel_dp->DP |= DP_ENHANCED_FRAMING;
 
                intel_dp->DP |= DP_PIPE_SEL_IVB(crtc->pipe);