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: "Ville Syrjälä" <ville.syrjala@linux.intel.com>,
	"Animesh Manna" <animesh.manna@intel.com>,
	"Arun R Murthy" <arun.r.murthy@intel.com>,
	"Jouni Högander" <jouni.hogander@intel.com>
Subject: [PATCH v5 5/5] drm/i915/psr: Do not write ALPM configuration for PSR1 or DP2.0 Panel Replay
Date: Fri, 22 Mar 2024 12:30:00 +0200	[thread overview]
Message-ID: <20240322103000.103332-6-jouni.hogander@intel.com> (raw)
In-Reply-To: <20240322103000.103332-1-jouni.hogander@intel.com>

No need to write ALPM configuration for DP2.0 Panel Replay or PSR1.

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

diff --git a/drivers/gpu/drm/i915/display/intel_psr.c b/drivers/gpu/drm/i915/display/intel_psr.c
index 62d16455243f..a3a4620250d4 100644
--- a/drivers/gpu/drm/i915/display/intel_psr.c
+++ b/drivers/gpu/drm/i915/display/intel_psr.c
@@ -1723,7 +1723,8 @@ static void lnl_alpm_configure(struct intel_dp *intel_dp)
 	struct intel_psr *psr = &intel_dp->psr;
 	u32 alpm_ctl;
 
-	if (DISPLAY_VER(dev_priv) < 20)
+	if (DISPLAY_VER(dev_priv) < 20 || (!intel_dp->psr.psr2_enabled &&
+					   !intel_dp_is_edp(intel_dp)))
 		return;
 
 	/*
-- 
2.34.1


  parent reply	other threads:[~2024-03-22 10:30 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-22 10:29 [PATCH v5 0/5] ALPM AUX-Less Jouni Högander
2024-03-22 10:29 ` [PATCH v5 1/5] drm/i915/psr: Add missing ALPM AUX-Less register definitions Jouni Högander
2024-03-22 10:29 ` [PATCH v5 2/5] drm/i915/psr: Calculate aux less wake time Jouni Högander
2024-03-22 10:29 ` [PATCH v5 3/5] drm/i915/psr: Silence period and lfps half cycle Jouni Högander
2024-03-22 10:29 ` [PATCH v5 4/5] drm/i915/psr: Enable ALPM on source side for eDP Panel replay Jouni Högander
2024-03-22 10:30 ` Jouni Högander [this message]
2024-03-22 11:14 ` ✗ Fi.CI.CHECKPATCH: warning for ALPM AUX-Less (rev5) Patchwork
2024-03-22 11:14 ` ✗ Fi.CI.SPARSE: " Patchwork
2024-03-22 11:27 ` ✗ Fi.CI.BAT: failure " Patchwork
2024-03-22 14:57 ` ✗ Fi.CI.CHECKPATCH: warning for ALPM AUX-Less (rev6) Patchwork
2024-03-22 14:57 ` ✗ Fi.CI.SPARSE: " Patchwork
2024-03-22 15:11 ` ✓ Fi.CI.BAT: success " Patchwork
2024-03-23  8:44 ` ✗ Fi.CI.IGT: failure " Patchwork
2024-03-28  5:33 ` [PATCH v5 0/5] ALPM AUX-Less Manna, Animesh
2024-04-02  9:22   ` 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=20240322103000.103332-6-jouni.hogander@intel.com \
    --to=jouni.hogander@intel.com \
    --cc=animesh.manna@intel.com \
    --cc=arun.r.murthy@intel.com \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=ville.syrjala@linux.intel.com \
    /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.