Commit 9856a688 authored by Jouni Högander's avatar Jouni Högander
Browse files

drm/i915/psr: Do not disable Panel Replay in case VRR is enabled



Allow Panel Replay with VRR. All VRR modes are supposed to work with
Panel Replay.

Bspec: 68920, 68925
Signed-off-by: default avatarJouni Högander <jouni.hogander@intel.com>
Reviewed-by: default avatarAnkit Nautiyal <ankit.k.nautiyal@intel.com>
Link: https://lore.kernel.org/r/20250526120512.1702815-13-jouni.hogander@intel.com
parent 8097128a
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
@@ -1579,6 +1579,12 @@ static bool _psr_compute_config(struct intel_dp *intel_dp,
	if (!CAN_PSR(intel_dp))
		return false;

	/*
	 * Currently PSR doesn't work reliably with VRR enabled.
	 */
	if (crtc_state->vrr.enable)
		return false;

	entry_setup_frames = intel_psr_entry_setup_frames(intel_dp, adjusted_mode);

	if (entry_setup_frames >= 0) {
@@ -1696,12 +1702,6 @@ void intel_psr_compute_config(struct intel_dp *intel_dp,
		return;
	}

	/*
	 * Currently PSR/PR doesn't work reliably with VRR enabled.
	 */
	if (crtc_state->vrr.enable)
		return;

	crtc_state->has_panel_replay = _panel_replay_compute_config(intel_dp,
								    crtc_state,
								    conn_state);