Skip to content

Commit 4466302

Browse files
aknautiyalrodrigovivi
authored andcommitted
drm/i915/dp: fix the Adaptive sync Operation mode for SDP
Currently we support Adaptive sync operation mode with dynamic frame rate, but instead the operation mode with fixed rate is set. This was initially set correctly in the earlier version of changes but later got changed, while defining a macro for the same. Fixes: a5bd599 ("drm/i915/display: Compute AS SDP parameters") Cc: Mitul Golani <[email protected]> Cc: Ankit Nautiyal <[email protected]> Cc: Jani Nikula <[email protected]> Reviewed-by: Mitul Golani <[email protected]> Signed-off-by: Ankit Nautiyal <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected] (cherry picked from commit c580686) Signed-off-by: Rodrigo Vivi <[email protected]>
1 parent 5796526 commit 4466302

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/gpu/drm/i915/display/intel_dp.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2829,7 +2829,6 @@ static void intel_dp_compute_as_sdp(struct intel_dp *intel_dp,
28292829

28302830
crtc_state->infoframes.enable |= intel_hdmi_infoframe_enable(DP_SDP_ADAPTIVE_SYNC);
28312831

2832-
/* Currently only DP_AS_SDP_AVT_FIXED_VTOTAL mode supported */
28332832
as_sdp->sdp_type = DP_SDP_ADAPTIVE_SYNC;
28342833
as_sdp->length = 0x9;
28352834
as_sdp->duration_incr_ms = 0;
@@ -2840,7 +2839,7 @@ static void intel_dp_compute_as_sdp(struct intel_dp *intel_dp,
28402839
as_sdp->target_rr = drm_mode_vrefresh(adjusted_mode);
28412840
as_sdp->target_rr_divider = true;
28422841
} else {
2843-
as_sdp->mode = DP_AS_SDP_AVT_FIXED_VTOTAL;
2842+
as_sdp->mode = DP_AS_SDP_AVT_DYNAMIC_VTOTAL;
28442843
as_sdp->vtotal = adjusted_mode->vtotal;
28452844
as_sdp->target_rr = 0;
28462845
}

0 commit comments

Comments
 (0)