All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Jouni Högander" <jouni.hogander@intel.com>
To: intel-gfx@lists.freedesktop.org
Cc: "Animesh Manna" <animesh.manna@intel.com>,
	"Jouni Högander" <jouni.hogander@intel.com>
Subject: [PATCH v5 15/19] drm/i915/psr: Panel replay uses SRD_STATUS to track it's status
Date: Wed,  3 Apr 2024 12:00:09 +0300	[thread overview]
Message-ID: <20240403090013.54296-16-jouni.hogander@intel.com> (raw)
In-Reply-To: <20240403090013.54296-1-jouni.hogander@intel.com>

DP Panel replay uses SRD_STATUS to track it's status despite selective
update mode.

Bspec: 53370, 68920

v3:
  - do not use PSR2_STATUS for PSR1
v2:
  - use intel_dp_is_edp to differentiate
  - modify debugfs status as well

Signed-off-by: Jouni Högander <jouni.hogander@intel.com>
---
 drivers/gpu/drm/i915/display/intel_psr.c | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/drivers/gpu/drm/i915/display/intel_psr.c b/drivers/gpu/drm/i915/display/intel_psr.c
index 111eb7d6bc1c..9e6625470ced 100644
--- a/drivers/gpu/drm/i915/display/intel_psr.c
+++ b/drivers/gpu/drm/i915/display/intel_psr.c
@@ -2849,7 +2849,8 @@ void intel_psr_wait_for_idle_locked(const struct intel_crtc_state *new_crtc_stat
 		if (!intel_dp->psr.enabled)
 			continue;
 
-		if (intel_dp->psr.sel_update_enabled)
+		if (intel_dp_is_edp(intel_dp) &&
+		    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);
@@ -2870,7 +2871,8 @@ static bool __psr_wait_for_idle_locked(struct intel_dp *intel_dp)
 	if (!intel_dp->psr.enabled)
 		return false;
 
-	if (intel_dp->psr.sel_update_enabled) {
+	if (!intel_dp->psr.panel_replay_enabled &&
+	    intel_dp->psr.sel_update_enabled) {
 		reg = EDP_PSR2_STATUS(cpu_transcoder);
 		mask = EDP_PSR2_STATUS_STATE_MASK;
 	} else {
@@ -3489,7 +3491,7 @@ psr_source_status(struct intel_dp *intel_dp, struct seq_file *m)
 	const char *status = "unknown";
 	u32 val, status_val;
 
-	if (intel_dp->psr.sel_update_enabled) {
+	if (intel_dp_is_edp(intel_dp) && intel_dp->psr.sel_update_enabled) {
 		static const char * const live_status[] = {
 			"IDLE",
 			"CAPTURE",
-- 
2.34.1


  parent reply	other threads:[~2024-04-03  9:00 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-04-03  8:59 [PATCH v5 00/19] Panel replay selective update support Jouni Högander
2024-04-03  8:59 ` [PATCH v5 01/19] drm/i915/psr: Add some documentation of variables used in psr code Jouni Högander
2024-04-03  8:59 ` [PATCH v5 02/19] drm/i915/psr: Set intel_crtc_state->has_psr on panel replay as well Jouni Högander
2024-04-03  8:59 ` [PATCH v5 03/19] drm/i915/psr: Intel_psr_pause/resume needs to support panel replay Jouni Högander
2024-04-03  8:59 ` [PATCH v5 04/19] drm/i915/psr: Do not update phy power state in case of non-eDP " Jouni Högander
2024-04-05 11:00   ` Manna, Animesh
2024-04-03  8:59 ` [PATCH v5 05/19] drm/i915/psr: Check possible errors for panel replay as well Jouni Högander
2024-04-03  9:00 ` [PATCH v5 06/19] drm/i915/psr: Do not write registers/bits not applicable for panel replay Jouni Högander
2024-04-05 11:03   ` Manna, Animesh
2024-04-03  9:00 ` [PATCH v5 07/19] drm/i915/psr: Call intel_psr_init_dpcd in intel_dp_detect Jouni Högander
2024-04-05  9:58   ` Manna, Animesh
2024-04-03  9:00 ` [PATCH v5 08/19] drm/i915/psr: Unify panel replay enable/disable sink Jouni Högander
2024-04-05 11:06   ` Manna, Animesh
2024-04-03  9:00 ` [PATCH v5 09/19] drm/i915/psr: Panel replay has to be enabled before link training Jouni Högander
2024-04-03  9:00 ` [PATCH v5 10/19] drm/i915/psr: Rename has_psr2 as has_sel_update Jouni Högander
2024-04-03  9:00 ` [PATCH v5 11/19] drm/i915/psr: Rename psr2_enabled as sel_update_enabled Jouni Högander
2024-04-03  9:00 ` [PATCH v5 12/19] drm/panelreplay: dpcd register definition for panelreplay SU Jouni Högander
2024-04-03  9:00 ` [PATCH v5 13/19] drm/i915/psr: Detect panel replay selective update support Jouni Högander
2024-04-03  9:00 ` [PATCH v5 14/19] drm/i915/psr: Modify intel_dp_get_su_granularity to support panel replay Jouni Högander
2024-04-03  9:00 ` Jouni Högander [this message]
2024-04-03  9:00 ` [PATCH v5 16/19] drm/i915/psr: Do not apply workarounds in case of " Jouni Högander
2024-04-03  9:00 ` [PATCH v5 17/19] drm/i915/psr: Update PSR module parameter descriptions Jouni Högander
2024-04-03  9:00 ` [PATCH v5 18/19] drm/i915/psr: Split intel_psr2_config_valid for panel replay Jouni Högander
2024-04-03  9:00 ` [PATCH v5 19/19] drm/i915/psr: Add panel replay sel update support to debugfs interface Jouni Högander
2024-04-03  9:46 ` ✗ Fi.CI.CHECKPATCH: warning for Panel replay selective update support (rev5) Patchwork
2024-04-03  9:46 ` ✗ Fi.CI.SPARSE: " Patchwork
2024-04-03  9:52 ` ✓ Fi.CI.BAT: success " Patchwork
2024-04-03 16:33 ` ✗ Fi.CI.IGT: failure " Patchwork

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240403090013.54296-16-jouni.hogander@intel.com \
    --to=jouni.hogander@intel.com \
    --cc=animesh.manna@intel.com \
    --cc=intel-gfx@lists.freedesktop.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.