Intel-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Hogander, Jouni" <jouni.hogander@intel.com>
To: "intel-xe@lists.freedesktop.org" <intel-xe@lists.freedesktop.org>,
	"Nautiyal, Ankit K" <ankit.k.nautiyal@intel.com>,
	"intel-gfx@lists.freedesktop.org"
	<intel-gfx@lists.freedesktop.org>
Subject: Re: [PATCH 06/11] drm/i915/alpm: Add new interface to check if AUXLess ALPM is used
Date: Tue, 20 May 2025 16:57:32 +0000	[thread overview]
Message-ID: <6f5f321d40ff36cd404349f74b97f388804877d5.camel@intel.com> (raw)
In-Reply-To: <66e576a4-9500-4faa-a7a5-d716e0c9e670@intel.com>

On Tue, 2025-05-20 at 14:24 +0530, Nautiyal, Ankit K wrote:
> 
> On 5/2/2025 2:28 PM, Jouni Högander wrote:
> > we need to know if AUXLess ALPM is used when preparing for link
> > training. Add new interface for this and use it in existing code
> > where
> > possible.
> > 
> > Signed-off-by: Jouni Högander <jouni.hogander@intel.com>
> > ---
> >   drivers/gpu/drm/i915/display/intel_alpm.c | 18 ++++++++++++++++--
> >   drivers/gpu/drm/i915/display/intel_alpm.h |  2 ++
> >   2 files changed, 18 insertions(+), 2 deletions(-)
> > 
> > diff --git a/drivers/gpu/drm/i915/display/intel_alpm.c
> > b/drivers/gpu/drm/i915/display/intel_alpm.c
> > index 5e5bc91ca7b76..4a8d4b34fa89e 100644
> > --- a/drivers/gpu/drm/i915/display/intel_alpm.c
> > +++ b/drivers/gpu/drm/i915/display/intel_alpm.c
> > @@ -26,6 +26,21 @@ bool intel_alpm_aux_less_wake_supported(struct
> > intel_dp *intel_dp)
> >   	return intel_dp->alpm_dpcd & DP_ALPM_AUX_LESS_CAP;
> >   }
> >   
> > +/**
> > + * intel_alpm_is_alpm_aux_less - Check if AUXLess ALPM is used
> > + * @intel_dp: Intel DP
> > + * @crtc_state: CRTC status
> 
> crtc state
> 
> 
> > + *
> > + * Check if AUXLess ALPM is used by LOBF (Link Off Between Frames)
> > or by PSR
> > + * (Panel Self Refresh)
> 
> Similar to comment in previous patch lets use `Return:` in line with 
> kernel doc.

Decided to left out these kernel doc comments completely on this patch
as well. Thank you for you review.

BR,

Jouni Högander

> 
> Patch LGTM.
> 
> Reviewed-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
> 
> > + */
> > +bool intel_alpm_is_alpm_aux_less(struct intel_dp *intel_dp,
> > +				 const struct intel_crtc_state
> > *crtc_state)
> > +{
> > +	return intel_psr_needs_alpm_aux_less(intel_dp, crtc_state)
> > ||
> > +		(crtc_state->has_lobf &&
> > intel_alpm_aux_less_wake_supported(intel_dp));
> > +}
> > +
> >   void intel_alpm_init(struct intel_dp *intel_dp)
> >   {
> >   	u8 dpcd;
> > @@ -341,8 +356,7 @@ static void lnl_alpm_configure(struct intel_dp
> > *intel_dp,
> >   	 * Panel Replay on eDP is always using ALPM aux less. I.e.
> > no need to
> >   	 * check panel support at this point.
> >   	 */
> > -	if ((crtc_state->has_panel_replay &&
> > intel_dp_is_edp(intel_dp)) ||
> > -	    (crtc_state->has_lobf &&
> > intel_alpm_aux_less_wake_supported(intel_dp))) {
> > +	if (intel_alpm_is_alpm_aux_less(intel_dp, crtc_state)) {
> >   		alpm_ctl = ALPM_CTL_ALPM_ENABLE |
> >   			ALPM_CTL_ALPM_AUX_LESS_ENABLE |
> >   			ALPM_CTL_AUX_LESS_SLEEP_HOLD_TIME_50_SYMBO
> > LS |
> > diff --git a/drivers/gpu/drm/i915/display/intel_alpm.h
> > b/drivers/gpu/drm/i915/display/intel_alpm.h
> > index d7126d65b60fb..83bbe0b7ff100 100644
> > --- a/drivers/gpu/drm/i915/display/intel_alpm.h
> > +++ b/drivers/gpu/drm/i915/display/intel_alpm.h
> > @@ -30,6 +30,8 @@ void intel_alpm_post_plane_update(struct
> > intel_atomic_state *state,
> >   void intel_alpm_lobf_debugfs_add(struct intel_connector
> > *connector);
> >   bool intel_alpm_aux_wake_supported(struct intel_dp *intel_dp);
> >   bool intel_alpm_aux_less_wake_supported(struct intel_dp
> > *intel_dp);
> > +bool intel_alpm_is_alpm_aux_less(struct intel_dp *intel_dp,
> > +				 const struct intel_crtc_state
> > *crtc_state);
> >   void intel_alpm_disable(struct intel_dp *intel_dp);
> >   bool intel_alpm_get_error(struct intel_dp *intel_dp);
> >   #endif


  reply	other threads:[~2025-05-20 16:58 UTC|newest]

Thread overview: 37+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-05-02  8:58 [PATCH 00/11] Panel Replay + Adaptive sync Jouni Högander
2025-05-02  8:58 ` [PATCH 01/11] drm/dp: Add Panel Replay capability bits from DP2.1 specification Jouni Högander
2025-05-02  9:19   ` Jani Nikula
2025-05-02  9:28     ` Hogander, Jouni
2025-05-20  8:36   ` Nautiyal, Ankit K
2025-05-20 16:53     ` Hogander, Jouni
2025-05-02  8:58 ` [PATCH 02/11] drm/i915/psr: Read both Panel Replay capability registers from DPCD Jouni Högander
2025-05-20  8:45   ` Nautiyal, Ankit K
2025-05-20 16:54     ` Hogander, Jouni
2025-05-02  8:58 ` [PATCH 03/11] drm/i915/alpm: Add PR_ALPM_CTL register definitions Jouni Högander
2025-05-20  8:46   ` Nautiyal, Ankit K
2025-05-02  8:58 ` [PATCH 04/11] drm/i915/alpm: Write PR_ALPM_CTL register Jouni Högander
2025-05-20  8:49   ` Nautiyal, Ankit K
2025-05-20 16:55     ` Hogander, Jouni
2025-05-02  8:58 ` [PATCH 05/11] drm/i915/psr: Add interface to check if AUXLess ALPM is needed by PSR Jouni Högander
2025-05-20  8:52   ` Nautiyal, Ankit K
2025-05-20  9:19     ` Nautiyal, Ankit K
2025-05-20 16:56     ` Hogander, Jouni
2025-05-02  8:58 ` [PATCH 06/11] drm/i915/alpm: Add new interface to check if AUXLess ALPM is used Jouni Högander
2025-05-20  8:54   ` Nautiyal, Ankit K
2025-05-20 16:57     ` Hogander, Jouni [this message]
2025-05-02  8:58 ` [PATCH 07/11] drm/i915/alpm: Move port alpm configuration Jouni Högander
2025-05-20  9:00   ` Nautiyal, Ankit K
2025-05-20 16:59     ` Hogander, Jouni
2025-05-02  8:58 ` [PATCH 08/11] drm/i915/display: Add PHY_CMN1_CONTROL register definitions Jouni Högander
2025-05-20  9:01   ` Nautiyal, Ankit K
2025-05-02  8:59 ` [PATCH 09/11] drm/i915/display: Add function to configure LFPS sending Jouni Högander
2025-05-20  9:08   ` Nautiyal, Ankit K
2025-05-20 17:01     ` Hogander, Jouni
2025-05-02  8:59 ` [PATCH 10/11] drm/i915/psr: Fix using wrong mask in REG_FIELD_PREP Jouni Högander
2025-05-20  9:09   ` Nautiyal, Ankit K
2025-05-02  8:59 ` [PATCH 11/11] drm/i915/psr: Do not disable Panel Replay in case VRR is enabled Jouni Högander
2025-05-20  9:13   ` Nautiyal, Ankit K
2025-05-02 13:08 ` ✗ Fi.CI.CHECKPATCH: warning for Panel Replay + Adaptive sync Patchwork
2025-05-02 13:08 ` ✗ Fi.CI.SPARSE: " Patchwork
2025-05-02 13:30 ` ✓ i915.CI.BAT: success " Patchwork
2025-05-02 18:19 ` ✗ i915.CI.Full: 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=6f5f321d40ff36cd404349f74b97f388804877d5.camel@intel.com \
    --to=jouni.hogander@intel.com \
    --cc=ankit.k.nautiyal@intel.com \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=intel-xe@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox