From: "Nautiyal, Ankit K" <ankit.k.nautiyal@intel.com>
To: "Jouni Högander" <jouni.hogander@intel.com>,
intel-gfx@lists.freedesktop.org, intel-xe@lists.freedesktop.org
Subject: Re: [PATCH 05/11] drm/i915/psr: Add interface to check if AUXLess ALPM is needed by PSR
Date: Tue, 20 May 2025 14:49:09 +0530 [thread overview]
Message-ID: <eed933f2-257b-4b19-a1b9-e083b6f28b22@intel.com> (raw)
In-Reply-To: <9b6b80a9-37c3-4c12-a857-84bd9107ee9a@intel.com>
On 5/20/2025 2:22 PM, Nautiyal, Ankit K wrote:
>
> On 5/2/2025 2:28 PM, Jouni Högander wrote:
>> Currently we spread ugly PSR details into ALPM code to check if AUXLess
>> ALPM is needed. Prepare to hide these details to PSR code by adding new
>> interface for checking if AUXLess ALPM is needed.
>>
>> Signed-off-by: Jouni Högander <jouni.hogander@intel.com>
>> ---
>> drivers/gpu/drm/i915/display/intel_psr.c | 14 ++++++++++++++
>> drivers/gpu/drm/i915/display/intel_psr.h | 2 ++
>> 2 files changed, 16 insertions(+)
>>
>> diff --git a/drivers/gpu/drm/i915/display/intel_psr.c
>> b/drivers/gpu/drm/i915/display/intel_psr.c
>> index 2d78d64b8db8d..8d8fe1c34479d 100644
>> --- a/drivers/gpu/drm/i915/display/intel_psr.c
>> +++ b/drivers/gpu/drm/i915/display/intel_psr.c
>> @@ -4227,3 +4227,17 @@ bool intel_psr_needs_alpm(struct intel_dp
>> *intel_dp, const struct intel_crtc_sta
>> return intel_dp_is_edp(intel_dp) && (crtc_state->has_sel_update ||
>> crtc_state->has_panel_replay);
>> }
>> +
>> +/**
>> + * intel_psr_needs_alpm_aux_less - Check if PSR needs ALPM AUXLess
>> + * @intel_dp: Intel DP
>> + * @crtc_state: CRTC status
>
> I think you mean crtc state.
>
>
>> + *
>> + * This returns true if PSR needs AUXLess ALPM. I.e. if it's Panel
>> Replay in
>> + * eDP.
>
> Lets use `Return:` as per kernel docs.
Or we can just drop the kernel doc comments, and have regular comments
for smaller helpers like this.
Same for the subsequent patches.
Regards,
Ankit
>
> Patch LGTM.
>
> Reviewed-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
>
>> + */
>> +bool intel_psr_needs_alpm_aux_less(struct intel_dp *intel_dp,
>> + const struct intel_crtc_state *crtc_state)
>> +{
>> + return intel_dp_is_edp(intel_dp) && 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 73c3fa40844bc..0cf53184f13f9 100644
>> --- a/drivers/gpu/drm/i915/display/intel_psr.h
>> +++ b/drivers/gpu/drm/i915/display/intel_psr.h
>> @@ -77,5 +77,7 @@ int intel_psr_min_vblank_delay(const struct
>> intel_crtc_state *crtc_state);
>> 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);
>> +bool intel_psr_needs_alpm_aux_less(struct intel_dp *intel_dp,
>> + const struct intel_crtc_state *crtc_state);
>> #endif /* __INTEL_PSR_H__ */
next prev parent reply other threads:[~2025-05-20 9:19 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 [this message]
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
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=eed933f2-257b-4b19-a1b9-e083b6f28b22@intel.com \
--to=ankit.k.nautiyal@intel.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=intel-xe@lists.freedesktop.org \
--cc=jouni.hogander@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