Skip to content

Commit

Permalink
drm/i915/psr: Prevent DP Panel Replay as well when CRC is enable
Browse files Browse the repository at this point in the history
We are seeing timeouts in opening CRC fd when testing on setup where DP
Panel Replay can be enabled. Fix these by checking if CRC is enabled for DP
Panel Replay as well.

Signed-off-by: Jouni Högander <jouni.hogander@intel.com>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Link: https://lore.kernel.org/r/20250331090747.2964028-1-jouni.hogander@intel.com
  • Loading branch information
Jouni Högander committed Apr 2, 2025
1 parent 544813f commit d354d52
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions drivers/gpu/drm/i915/display/intel_psr.c
Original file line number Diff line number Diff line change
Expand Up @@ -1595,6 +1595,12 @@ _panel_replay_compute_config(struct intel_dp *intel_dp,
return false;
}

if (crtc_state->crc_enabled) {
drm_dbg_kms(display->drm,
"Panel Replay not enabled because it would inhibit pipe CRC calculation\n");
return false;
}

if (!intel_dp_is_edp(intel_dp))
return true;

Expand Down Expand Up @@ -1625,12 +1631,6 @@ _panel_replay_compute_config(struct intel_dp *intel_dp,
if (!alpm_config_valid(intel_dp, crtc_state, true))
return false;

if (crtc_state->crc_enabled) {
drm_dbg_kms(display->drm,
"Panel Replay not enabled because it would inhibit pipe CRC calculation\n");
return false;
}

return true;
}

Expand Down

0 comments on commit d354d52

Please sign in to comment.