Patch "drm/i915/psr: Do not wait for PSR being idle on on Panel Replay" has been added to the 6.11-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    drm/i915/psr: Do not wait for PSR being idle on on Panel Replay

to the 6.11-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     drm-i915-psr-do-not-wait-for-psr-being-idle-on-on-pa.patch
and it can be found in the queue-6.11 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit fc9fac7f40cb6c5ee5a238f1c36504407799c023
Author: Jouni Högander <jouni.hogander@xxxxxxxxx>
Date:   Fri Sep 6 10:00:33 2024 +0300

    drm/i915/psr: Do not wait for PSR being idle on on Panel Replay
    
    [ Upstream commit 9498f2e24ee0133d486667c9fa4c27ecdaadc272 ]
    
    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@xxxxxxxxx>
    Signed-off-by: Jouni Högander <jouni.hogander@xxxxxxxxx>
    Reviewed-by: Animesh Manna <animesh.manna@xxxxxxxxx>
    Link: https://patchwork.freedesktop.org/patch/msgid/20240906070033.289015-5-jouni.hogander@xxxxxxxxx
    (cherry picked from commit a2d98feb4b0013ef4f9db0d8f642a8ac1f5ecbb9)
    Signed-off-by: Joonas Lahtinen <joonas.lahtinen@xxxxxxxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/gpu/drm/i915/display/intel_psr.c b/drivers/gpu/drm/i915/display/intel_psr.c
index 9cb1cdaaeefa7..d404ad93e91c7 100644
--- a/drivers/gpu/drm/i915/display/intel_psr.c
+++ b/drivers/gpu/drm/i915/display/intel_psr.c
@@ -2746,13 +2746,6 @@ static int _psr1_ready_for_pipe_update_locked(struct intel_dp *intel_dp)
 				       EDP_PSR_STATUS_STATE_MASK, 50);
 }
 
-static int _panel_replay_ready_for_pipe_update_locked(struct intel_dp *intel_dp)
-{
-	return intel_dp_is_edp(intel_dp) ?
-		_psr2_ready_for_pipe_update_locked(intel_dp) :
-		_psr1_ready_for_pipe_update_locked(intel_dp);
-}
-
 /**
  * intel_psr_wait_for_idle_locked - wait for PSR be ready for a pipe update
  * @new_crtc_state: new CRTC state
@@ -2775,12 +2768,10 @@ void intel_psr_wait_for_idle_locked(const struct intel_crtc_state *new_crtc_stat
 
 		lockdep_assert_held(&intel_dp->psr.lock);
 
-		if (!intel_dp->psr.enabled)
+		if (!intel_dp->psr.enabled || intel_dp->psr.panel_replay_enabled)
 			continue;
 
-		if (intel_dp->psr.panel_replay_enabled)
-			ret = _panel_replay_ready_for_pipe_update_locked(intel_dp);
-		else if (intel_dp->psr.sel_update_enabled)
+		if (intel_dp->psr.sel_update_enabled)
 			ret = _psr2_ready_for_pipe_update_locked(intel_dp);
 		else
 			ret = _psr1_ready_for_pipe_update_locked(intel_dp);




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux