From: "Hogander, Jouni" <jouni.hogander@intel.com>
To: "intel-xe@lists.freedesktop.org" <intel-xe@lists.freedesktop.org>,
"Manna, Animesh" <animesh.manna@intel.com>,
"intel-gfx@lists.freedesktop.org"
<intel-gfx@lists.freedesktop.org>
Cc: "Nikula, Jani" <jani.nikula@intel.com>, "B, Jeevan" <jeevan.b@intel.com>
Subject: Re: [PATCH v10 10/11] drm/i915/alpm: Add intel_psr_need_alpm() to simplify alpm check
Date: Wed, 23 Apr 2025 10:35:01 +0000 [thread overview]
Message-ID: <b79ac246190e719d1bd88d714c1ff8f95bbd2bed.camel@intel.com> (raw)
In-Reply-To: <20250423092334.2294483-11-animesh.manna@intel.com>
On Wed, 2025-04-23 at 14:53 +0530, Animesh Manna wrote:
> Simplify the alpm check which will be used multiple places like
> source configuration, sink enablement etc.
Reviewed-by: Jouni Högander <jouni.hogander@intel.com>
>
> Signed-off-by: Animesh Manna <animesh.manna@intel.com>
> ---
> drivers/gpu/drm/i915/display/intel_alpm.c | 5 +++--
> drivers/gpu/drm/i915/display/intel_psr.c | 6 ++++++
> drivers/gpu/drm/i915/display/intel_psr.h | 1 +
> 3 files changed, 10 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/i915/display/intel_alpm.c
> b/drivers/gpu/drm/i915/display/intel_alpm.c
> index 24b666e6d8f9..c4b6da2e6ccf 100644
> --- a/drivers/gpu/drm/i915/display/intel_alpm.c
> +++ b/drivers/gpu/drm/i915/display/intel_alpm.c
> @@ -13,6 +13,7 @@
> #include "intel_display_types.h"
> #include "intel_dp.h"
> #include "intel_dp_aux.h"
> +#include "intel_psr.h"
> #include "intel_psr_regs.h"
>
> bool intel_alpm_aux_wake_supported(struct intel_dp *intel_dp)
> @@ -331,8 +332,8 @@ static void lnl_alpm_configure(struct intel_dp
> *intel_dp,
> enum port port = dp_to_dig_port(intel_dp)->base.port;
> u32 alpm_ctl;
>
> - if (DISPLAY_VER(display) < 20 ||
> - (!crtc_state->has_sel_update &&
> !intel_dp_is_edp(intel_dp)))
> + if (DISPLAY_VER(display) < 20 ||
> (!intel_psr_needs_alpm(intel_dp, crtc_state) &&
> + !crtc_state->has_lobf))
> return;
>
> mutex_lock(&intel_dp->alpm_parameters.lock);
> diff --git a/drivers/gpu/drm/i915/display/intel_psr.c
> b/drivers/gpu/drm/i915/display/intel_psr.c
> index 43ed166007eb..1c5ec3f0b066 100644
> --- a/drivers/gpu/drm/i915/display/intel_psr.c
> +++ b/drivers/gpu/drm/i915/display/intel_psr.c
> @@ -3949,3 +3949,9 @@ void intel_psr_connector_debugfs_add(struct
> intel_connector *connector)
> debugfs_create_file("i915_psr_status", 0444, root,
> connector,
> &i915_psr_status_fops);
> }
> +
> +bool intel_psr_needs_alpm(struct intel_dp *intel_dp, const struct
> intel_crtc_state *crtc_state)
> +{
> + return intel_dp_is_edp(intel_dp) && (crtc_state-
> >has_sel_update ||
> + crtc_state-
> >has_panel_replay);
> +}
> diff --git a/drivers/gpu/drm/i915/display/intel_psr.h
> b/drivers/gpu/drm/i915/display/intel_psr.h
> index a43a374cff55..cabaec334640 100644
> --- a/drivers/gpu/drm/i915/display/intel_psr.h
> +++ b/drivers/gpu/drm/i915/display/intel_psr.h
> @@ -69,5 +69,6 @@ void intel_psr_trigger_frame_change_event(struct
> intel_dsb *dsb,
> struct intel_crtc *crtc);
> void intel_psr_connector_debugfs_add(struct intel_connector
> *connector);
> void intel_psr_debugfs_register(struct intel_display *display);
> +bool intel_psr_needs_alpm(struct intel_dp *intel_dp, const struct
> intel_crtc_state *crtc_state);
>
> #endif /* __INTEL_PSR_H__ */
next prev parent reply other threads:[~2025-04-23 10:35 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-04-23 9:23 [PATCH v10 00/11] LOBF enablement fix Animesh Manna
2025-04-23 9:23 ` [PATCH v10 01/11] drm/i915/alpm: use variable from intel_crtc_state instead of intel_psr Animesh Manna
2025-04-23 9:23 ` [PATCH v10 02/11] drm/i915/lobf: Add lobf enablement in post plane update Animesh Manna
2025-04-23 9:23 ` [PATCH v10 03/11] drm/i915/lobf: Add debug print for LOBF Animesh Manna
2025-04-23 9:23 ` [PATCH v10 04/11] drm/i915/lobf: Disintegrate alpm_disable from psr_disable Animesh Manna
2025-04-23 9:23 ` [PATCH v10 05/11] drm/i915/lobf: Add fixed refresh rate check in compute_config() Animesh Manna
2025-04-23 9:23 ` [PATCH v10 06/11] drm/i915/lobf: Update lobf if any change in dependent parameters Animesh Manna
2025-04-23 10:31 ` Hogander, Jouni
2025-04-23 9:23 ` [PATCH v10 07/11] drm/i915/lobf: Add debug interface for lobf Animesh Manna
2025-04-23 9:23 ` [PATCH v10 08/11] drm/i915/lobf: Add mutex for alpm update Animesh Manna
2025-04-23 9:23 ` [PATCH v10 09/11] drm/i915/lobf: Check for sink error and disable LOBF Animesh Manna
2025-04-23 9:23 ` [PATCH v10 10/11] drm/i915/alpm: Add intel_psr_need_alpm() to simplify alpm check Animesh Manna
2025-04-23 10:35 ` Hogander, Jouni [this message]
2025-04-23 9:23 ` [PATCH v10 11/11] drm/i915/display: Disintegrate sink alpm enable from psr with lobf Animesh Manna
2025-04-23 10:39 ` Hogander, Jouni
2025-04-23 9:52 ` ✓ CI.Patch_applied: success for LOBF enablement fix (rev9) Patchwork
2025-04-23 9:53 ` ✗ CI.checkpatch: warning " Patchwork
2025-04-23 9:54 ` ✓ CI.KUnit: success " Patchwork
2025-04-23 10:02 ` ✓ CI.Build: " Patchwork
2025-04-23 10:04 ` ✗ CI.Hooks: failure " Patchwork
2025-04-23 10:05 ` ✗ CI.checksparse: warning " Patchwork
2025-04-23 16:11 ` ✓ CI.Patch_applied: success " Patchwork
2025-04-23 16:12 ` ✗ CI.checkpatch: warning " Patchwork
2025-04-23 16:13 ` ✓ CI.KUnit: success " Patchwork
2025-04-23 16:33 ` ✓ CI.Build: " Patchwork
2025-04-23 16:35 ` ✗ CI.Hooks: failure " Patchwork
2025-04-23 16:37 ` ✗ CI.checksparse: warning " Patchwork
2025-04-24 0:48 ` ✗ Xe.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=b79ac246190e719d1bd88d714c1ff8f95bbd2bed.camel@intel.com \
--to=jouni.hogander@intel.com \
--cc=animesh.manna@intel.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=intel-xe@lists.freedesktop.org \
--cc=jani.nikula@intel.com \
--cc=jeevan.b@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox