aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJouni Högander <jouni.hogander@intel.com>2024-04-09 11:57:59 +0300
committerJouni Högander <jouni.hogander@intel.com>2024-04-11 12:09:48 +0300
commit3a487d111d065f212f863f2327fdbd3fc311f363 (patch)
treefcd1f25f822e2254a7213743aed6e1a03c3349a2
parentdrm/i915/mtl: Add DP FEC BS jitter WA (diff)
downloadlinux-3a487d111d065f212f863f2327fdbd3fc311f363.tar.xz
linux-3a487d111d065f212f863f2327fdbd3fc311f363.zip
drm/i915/psr: Use crtc_state->port_clock instead of intel_dp->link_rate
Intel_dp->link_rate is not yet set at this point. Instead use crtc_state->port_clock. Fixes: 0dd21f836983 ("drm/i915/psr: Silence period and lfps half cycle") Signed-off-by: Jouni Högander <jouni.hogander@intel.com> Reviewed-by: Animesh Manna <animesh.manna@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20240409085759.178235-1-jouni.hogander@intel.com
-rw-r--r--drivers/gpu/drm/i915/display/intel_psr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/display/intel_psr.c b/drivers/gpu/drm/i915/display/intel_psr.c
index 7af974bb41ca..f5b33335a9ae 100644
--- a/drivers/gpu/drm/i915/display/intel_psr.c
+++ b/drivers/gpu/drm/i915/display/intel_psr.c
@@ -1276,7 +1276,7 @@ static int _lnl_compute_aux_less_alpm_params(struct intel_dp *intel_dp,
aux_less_wake_lines = intel_usecs_to_scanlines(&crtc_state->hw.adjusted_mode,
aux_less_wake_time);
- if (!_lnl_get_silence_period_and_lfps_half_cycle(intel_dp->link_rate,
+ if (!_lnl_get_silence_period_and_lfps_half_cycle(crtc_state->port_clock,
&silence_period,
&lfps_half_cycle))
return false;