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 4/8] drm/i915/psr: Do not update phy power state in case of non-eDP panel replay
Date: Fri,  5 Apr 2024 14:35:58 +0300	[thread overview]
Message-ID: <20240405113602.992714-5-jouni.hogander@intel.com> (raw)
In-Reply-To: <20240405113602.992714-1-jouni.hogander@intel.com>

Currently panel replay is supporting only main link on mode -> Do not
update phy power state for non-eDP panel replay.

Bspec: 53370

v2: use intel_dp_is_edp to differentiate

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

diff --git a/drivers/gpu/drm/i915/display/intel_psr.c b/drivers/gpu/drm/i915/display/intel_psr.c
index bd99b9953274..07c1ddec2d86 100644
--- a/drivers/gpu/drm/i915/display/intel_psr.c
+++ b/drivers/gpu/drm/i915/display/intel_psr.c
@@ -1930,13 +1930,16 @@ static void intel_psr_enable_locked(struct intel_dp *intel_dp,
 	if (!psr_interrupt_error_check(intel_dp))
 		return;
 
-	if (intel_dp->psr.panel_replay_enabled)
+	if (intel_dp->psr.panel_replay_enabled) {
 		drm_dbg_kms(&dev_priv->drm, "Enabling Panel Replay\n");
-	else
+	} else {
 		drm_dbg_kms(&dev_priv->drm, "Enabling PSR%s\n",
 			    intel_dp->psr.psr2_enabled ? "2" : "1");
+	}
+
+	if (intel_dp_is_edp(intel_dp))
+		intel_snps_phy_update_psr_power_state(&dig_port->base, true);
 
-	intel_snps_phy_update_psr_power_state(&dig_port->base, true);
 	intel_psr_enable_sink(intel_dp);
 	intel_psr_enable_source(intel_dp, crtc_state);
 	intel_dp->psr.enabled = true;
@@ -2041,7 +2044,8 @@ static void intel_psr_disable_locked(struct intel_dp *intel_dp)
 				     CLKGATE_DIS_MISC_DMASC_GATING_DIS, 0);
 	}
 
-	intel_snps_phy_update_psr_power_state(&dp_to_dig_port(intel_dp)->base, false);
+	if (intel_dp_is_edp(intel_dp))
+		intel_snps_phy_update_psr_power_state(&dp_to_dig_port(intel_dp)->base, false);
 
 	/* Panel Replay on eDP is always using ALPM aux less. */
 	if (intel_dp->psr.panel_replay_enabled && intel_dp_is_edp(intel_dp)) {
-- 
2.34.1


  parent reply	other threads:[~2024-04-05 11:36 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-04-05 11:35 [PATCH 0/8] Panel Replay fixes and clean ups Jouni Högander
2024-04-05 11:35 ` [PATCH 1/8] drm/i915/psr: Add some documentation of variables used in psr code Jouni Högander
2024-04-05 11:35 ` [PATCH 2/8] drm/i915/psr: Set intel_crtc_state->has_psr on panel replay as well Jouni Högander
2024-04-05 11:35 ` [PATCH 3/8] drm/i915/psr: Intel_psr_pause/resume needs to support panel replay Jouni Högander
2024-04-05 11:35 ` Jouni Högander [this message]
2024-04-05 11:35 ` [PATCH 5/8] drm/i915/psr: Check possible errors for panel replay as well Jouni Högander
2024-04-05 11:36 ` [PATCH 6/8] drm/i915/psr: Do not write registers/bits not applicable for panel replay Jouni Högander
2024-04-05 11:36 ` [PATCH 7/8] drm/i915/psr: Unify panel replay enable/disable sink Jouni Högander
2024-04-05 11:36 ` [PATCH 8/8] drm/i915/psr: Panel replay has to be enabled before link training Jouni Högander
2024-04-05 12:56 ` ✗ Fi.CI.CHECKPATCH: warning for Panel Replay fixes and clean ups Patchwork
2024-04-05 13:03 ` ✓ Fi.CI.BAT: success " Patchwork
2024-04-05 18:03 ` ✗ Fi.CI.IGT: failure " Patchwork
2024-04-08  7:22   ` Hogander, Jouni
2024-04-08  7:54 ` [PATCH 0/8] " Hogander, Jouni

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=20240405113602.992714-5-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.