drm/i915/psr: Do not wait for PSR being idle on on Panel Replay
authorJouni Högander <jouni.hogander@intel.com>
Fri, 6 Sep 2024 07:00:33 +0000 (10:00 +0300)
committerJoonas Lahtinen <joonas.lahtinen@linux.intel.com>
Mon, 16 Sep 2024 06:11:40 +0000 (09:11 +0300)
commit9498f2e24ee0133d486667c9fa4c27ecdaadc272
treea17efc59fecb88b609fe2d00c0d5405ebd092b3b
parentbf05aeac230e390a5aee4bd3dc978b0c4d7e745f
drm/i915/psr: Do not wait for PSR being idle on on Panel Replay

We do not have ALPM on DP Panel Replay. Due to this SRD_STATUS[SRD State]
doesn't change from SRDENT_ON after Panel Replay is enabled until it gets
disabled.

On eDP Panel Replay DEEP_SLEEP is not reached.
_psr2_ready_for_pipe_update_locked is waiting DEEP_SLEEP bit getting reset.

Take these into account in Panel Replay code by not waiting PSR getting
idle after enabling VBI.

Fixes: 29fb595d4875 ("drm/i915/psr: Panel replay uses SRD_STATUS to track it's status")
Cc: Animesh Manna <animesh.manna@intel.com>
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/20240906070033.289015-5-jouni.hogander@intel.com
(cherry picked from commit a2d98feb4b0013ef4f9db0d8f642a8ac1f5ecbb9)
Signed-off-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
drivers/gpu/drm/i915/display/intel_psr.c