From: Dibin Moolakadan Subrahmanian <dibin.moolakadan.subrahmanian@intel.com>
To: Uma Shankar <uma.shankar@intel.com>,
<intel-gfx@lists.freedesktop.org>,
<intel-xe@lists.freedesktop.org>
Cc: <animesh.manna@intel.com>
Subject: Re: [PATCH 2/2] drm/i915/display: Keep AS SDP flowing when skip frames is enabled
Date: Tue, 4 Aug 2026 12:51:32 +0530 [thread overview]
Message-ID: <01943e93-7481-4721-ba09-ee0f0d4ea723@intel.com> (raw)
In-Reply-To: <20260803185305.562609-3-uma.shankar@intel.com>
On 8/4/2026 12:23 AM, Uma Shankar wrote:
> The AS SDP skip-frame mechanism relies on the AS SDP still being
> transmitted (just less often) while Panel Replay is active, so the source
> must not stop sending it in the PR active state, nor enter the DC3CO idle
> protocol which would suppress it entirely.
>
> When a non-zero skip-frame count is programmed, leave both
> PR_ALPM_CTL_AS_SDP_TRANSMISSION_IN_ACTIVE_DISABLE and
> PR_ALPM_CTL_USE_DC3CO_IDLE_PROTOCOL cleared. The previous behaviour
> (honouring disable_as_sdp_when_pr_active and the DC3CO idle protocol) is
> retained for the non skip-frame case.
>
> Assisted-by: Claude:claude-opus-4-8
> Signed-off-by: Naladala Ramanaidu <ramanaidu.naladala@intel.com>
> Signed-off-by: Uma Shankar <uma.shankar@intel.com>
> ---
> drivers/gpu/drm/i915/display/intel_alpm.c | 28 +++++++++++++++--------
> 1 file changed, 19 insertions(+), 9 deletions(-)
>
> diff --git a/drivers/gpu/drm/i915/display/intel_alpm.c b/drivers/gpu/drm/i915/display/intel_alpm.c
> index 0f98f02a1848..7e2292f93e1e 100644
> --- a/drivers/gpu/drm/i915/display/intel_alpm.c
> +++ b/drivers/gpu/drm/i915/display/intel_alpm.c
> @@ -439,21 +439,31 @@ static void lnl_alpm_configure(struct intel_dp *intel_dp,
>
> if (intel_dp->as_sdp_supported) {
> u32 pr_alpm_ctl = get_pr_alpm_as_sdp_transmission_time(crtc_state);
> + u32 skip_frames = 0;
> +
> + /* AS SDP skip frames field only exists on Xe3LPD+ */
> + if (DISPLAY_VER(display) >= 35)
> + skip_frames = intel_pr_as_sdp_skip_frames(crtc_state);
>
> if (crtc_state->link_off_after_as_sdp_when_pr_active)
> pr_alpm_ctl |= PR_ALPM_CTL_ALLOW_LINK_OFF_BETWEEN_AS_SDP_AND_SU;
> - if (crtc_state->disable_as_sdp_when_pr_active)
> - pr_alpm_ctl |= PR_ALPM_CTL_AS_SDP_TRANSMISSION_IN_ACTIVE_DISABLE;
>
> - if (intel_display_power_dc3co_allowed(display))
> - pr_alpm_ctl |= PR_ALPM_CTL_USE_DC3CO_IDLE_PROTOCOL;
> - else
> + /*
> + * Skip frames needs the AS SDP to keep flowing during PR
> + * active, so it is mutually exclusive with disabling AS SDP
> + * transmission in active and with the DC3CO idle protocol.
> + */
> + if (skip_frames) {
> + pr_alpm_ctl |= PR_ALPM_CTL_AS_SDP_SKIP_FRAMES(skip_frames);
> + pr_alpm_ctl &= ~PR_ALPM_CTL_AS_SDP_TRANSMISSION_IN_ACTIVE_DISABLE;
> pr_alpm_ctl &= ~PR_ALPM_CTL_USE_DC3CO_IDLE_PROTOCOL;
> + } else {
> + if (crtc_state->disable_as_sdp_when_pr_active)
> + pr_alpm_ctl |= PR_ALPM_CTL_AS_SDP_TRANSMISSION_IN_ACTIVE_DISABLE;
>
> - /* AS SDP skip frames field only exists on Xe3LPD+ */
> - if (DISPLAY_VER(display) >= 35)
> - pr_alpm_ctl |= PR_ALPM_CTL_AS_SDP_SKIP_FRAMES(
> - intel_pr_as_sdp_skip_frames(crtc_state));
> + if (intel_display_power_dc3co_allowed(display))
> + pr_alpm_ctl |= PR_ALPM_CTL_USE_DC3CO_IDLE_PROTOCOL;
Do we also need to clear the AS SDP skip frame bits here?
Otherwise, LGTM.
Regards,
Dibin
> + }
>
> intel_de_write(display, PR_ALPM_CTL(display, cpu_transcoder),
> pr_alpm_ctl);
next prev parent reply other threads:[~2026-08-04 7:21 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-03 18:53 [PATCH 0/2] drm/i915/display: Enable AS SDP Skip Frames Uma Shankar
2026-08-03 18:39 ` ✗ CI.checkpatch: warning for drm/i915/display: Enable AS SDP Skip Frames (rev2) Patchwork
2026-08-03 18:40 ` ✓ CI.KUnit: success " Patchwork
2026-08-03 18:53 ` [PATCH 1/2] drm/i915/display: Enable AS SDP Skip Frames Uma Shankar
2026-08-03 18:53 ` [PATCH 2/2] drm/i915/display: Keep AS SDP flowing when skip frames is enabled Uma Shankar
2026-08-04 7:21 ` Dibin Moolakadan Subrahmanian [this message]
2026-08-04 7:50 ` Shankar, Uma
2026-08-03 21:25 ` ✓ Xe.CI.FULL: success for drm/i915/display: Enable AS SDP Skip Frames (rev2) Patchwork
2026-08-04 12:03 ` ✗ CI.checkpatch: warning " Patchwork
2026-08-04 12:05 ` ✓ CI.KUnit: success " 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=01943e93-7481-4721-ba09-ee0f0d4ea723@intel.com \
--to=dibin.moolakadan.subrahmanian@intel.com \
--cc=animesh.manna@intel.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=intel-xe@lists.freedesktop.org \
--cc=uma.shankar@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