Commit 72c22283 authored by Jouni Högander's avatar Jouni Högander

drm/i915/psr: Intel_psr_pause/resume needs to support panel replay

Currently intel_psr_pause and intel_psr_resume do nothing in case of panel
replay. Change them to perform pause and return also in case of panel
replay.
Signed-off-by: default avatarJouni Högander <jouni.hogander@intel.com>
Reviewed-by: default avatarAnimesh Manna <animesh.manna@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240405113602.992714-4-jouni.hogander@intel.com
parent 5afa6e49
...@@ -2104,7 +2104,7 @@ void intel_psr_pause(struct intel_dp *intel_dp) ...@@ -2104,7 +2104,7 @@ void intel_psr_pause(struct intel_dp *intel_dp)
struct drm_i915_private *dev_priv = dp_to_i915(intel_dp); struct drm_i915_private *dev_priv = dp_to_i915(intel_dp);
struct intel_psr *psr = &intel_dp->psr; struct intel_psr *psr = &intel_dp->psr;
if (!CAN_PSR(intel_dp)) if (!CAN_PSR(intel_dp) && !CAN_PANEL_REPLAY(intel_dp))
return; return;
mutex_lock(&psr->lock); mutex_lock(&psr->lock);
...@@ -2137,7 +2137,7 @@ void intel_psr_resume(struct intel_dp *intel_dp) ...@@ -2137,7 +2137,7 @@ void intel_psr_resume(struct intel_dp *intel_dp)
{ {
struct intel_psr *psr = &intel_dp->psr; struct intel_psr *psr = &intel_dp->psr;
if (!CAN_PSR(intel_dp)) if (!CAN_PSR(intel_dp) && !CAN_PANEL_REPLAY(intel_dp))
return; return;
mutex_lock(&psr->lock); mutex_lock(&psr->lock);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment