From: sashiko-bot@kernel.org
To: "Jake Steinman" <j@metarealtyinc.ca>
Cc: intel-gfx@lists.freedesktop.org, intel-xe@lists.freedesktop.org
Subject: Re: [PATCH v2 3/4] drm/i915/alpm: Leave AS SDP Transmission in Active Disable to PSR code
Date: Mon, 23 Nov 2026 15:32:09 +0000 [thread overview]
Message-ID: <sashiko-outbox-229573@kernel.org> (raw)
In-Reply-To: <7b1c4022b174d3806130f5814142760a8693e340.1795263689.git.j@metarealtyinc.ca>
Thank you for your contribution! Sashiko AI review found 2 potential
issues to consider:
- [Medium] drm/i915/alpm: stale AS SDP disable bit in
intel_alpm_configure_pr_as_sdp()
- [Medium] drm/i915/alpm: broken AS SDP state on VRR toggle with
periodic AS SDP
--
commit 37f90c53a8bab894fcb3ca18180ab5863311f8e3
Author: Jake Steinman <j@metarealtyinc.ca>
drm/i915/alpm: Leave AS SDP Transmission in Active Disable to PSR code
This commit changes intel_alpm_configure_pr_as_sdp() to preserve the current
hardware value of PR_ALPM_CTL_AS_SDP_TRANSMISSION_IN_ACTIVE_DISABLE instead
of setting it from crtc_state->disable_as_sdp_when_pr_active.
> diff --git a/drivers/gpu/drm/i915/display/intel_alpm.c b/drivers/gpu/drm/i915/display/intel_alpm.c
> index 910067d271c3c..6f2beb4a4c7c0 100644
> --- a/drivers/gpu/drm/i915/display/intel_alpm.c
> +++ b/drivers/gpu/drm/i915/display/intel_alpm.c
> @@ -467,8 +467,12 @@ static void intel_alpm_configure_pr_as_sdp(struct intel_dp *intel_dp,
> } else {
> pr_alpm_ctl &= ~PR_ALPM_CTL_AS_SDP_SKIP_FRAMES_MASK;
>
> - if (crtc_state->disable_as_sdp_when_pr_active)
> - pr_alpm_ctl |= PR_ALPM_CTL_AS_SDP_TRANSMISSION_IN_ACTIVE_DISABLE;
> + /*
> + * AS SDP Transmission in Active Disable follows frame updates
> + * and is owned by PSR code, keep its current value.
> + */
> + pr_alpm_ctl |= intel_de_read(display, PR_ALPM_CTL(display, cpu_transcoder)) &
> + 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;
[Severity: Medium]
Can PR_ALPM_CTL_AS_SDP_TRANSMISSION_IN_ACTIVE_DISABLE remain stuck set when
a transcoder is later configured with skip_frames == 0 and
!crtc_state->disable_as_sdp_when_pr_active?
Neither intel_psr_disable_locked() nor intel_alpm_disable() clears this bit
in PR_ALPM_CTL, and intel_psr_enable_locked() only writes it when
intel_dp->psr.disable_as_sdp_when_pr_active is true:
drivers/gpu/drm/i915/display/intel_psr.c:intel_psr_enable_locked() {
...
if (intel_dp->psr.disable_as_sdp_when_pr_active)
intel_alpm_pr_as_sdp_in_active_disable(intel_dp, intel_dp->psr.transcoder,
true);
...
}
Once a Panel Replay session sets the bit, switching to a configuration where
disable_as_sdp_when_pr_active is false (such as disabling Panel Replay and
enabling AUX-less LOBF via intel_alpm_lobf_enable(), or modesetting to a
mode where compute_disable_as_sdp_when_pr_active() is false) will preserve
the stale bit in PR_ALPM_CTL and keep Adaptive-Sync SDP transmission
disabled in active states with no path clearing it.
[Severity: Medium]
What happens on a seamless VRR toggle via intel_alpm_pr_as_sdp_update() when
periodic AS SDP (skip_frames > 0) is used?
When VRR is off and skip_frames > 0, the if (skip_frames) branch clears
PR_ALPM_CTL_AS_SDP_TRANSMISSION_IN_ACTIVE_DISABLE in PR_ALPM_CTL, and
compute_disable_as_sdp_when_pr_active() returns false. If Panel Replay was
enabled while VRR was off, intel_dp->psr.disable_as_sdp_when_pr_active (only
latched in intel_psr_enable_locked()) is also false. When VRR is later
enabled seamlessly (skip_frames == 0), reading PR_ALPM_CTL here reads back 0
and PSR frontbuffer flush/idle tracking ignores AS SDP because
intel_dp->psr.disable_as_sdp_when_pr_active is still false, leaving AS SDP
transmission in PR Active permanently enabled while idle and blocking
DC5/DC6.
Conversely, if Panel Replay is enabled with VRR on
(intel_dp->psr.disable_as_sdp_when_pr_active == true) and VRR is seamlessly
disabled (skip_frames > 0), intel_dp->psr.disable_as_sdp_when_pr_active
remains true and intel_psr_pr_as_sdp_suspend_work() can subsequently set
PR_ALPM_CTL_AS_SDP_TRANSMISSION_IN_ACTIVE_DISABLE while non-zero skip_frames
is programmed, violating their mutual exclusion.
--
Sashiko AI review · https://sashiko.dev/#/patchset/cover.1795263689.git.j@metarealtyinc.ca?part=3
next prev parent reply other threads:[~2026-11-23 15:32 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-23 4:13 [PATCH] drm/i915/dp: Don't promise AS SDPs in PR Active when they are disabled Jake Steinman
2026-09-23 14:27 ` sashiko-bot
2026-09-23 15:25 ` Jake Steinman
2026-09-23 15:10 ` ✗ LGCI.VerificationFailed: failure for " Patchwork
2026-09-28 12:23 ` [PATCH] " Jake Steinman
2026-10-06 22:05 ` [RFC PATCH] drm/i915/psr: Send the AS SDP in PR Active while vblank is enabled Jake Steinman
2026-10-07 14:20 ` sashiko-bot
2026-11-20 9:42 ` Hogander, Jouni
2026-11-20 15:03 ` Ville Syrjälä
2026-11-20 16:34 ` Jake Steinman
2026-11-20 17:23 ` Ville Syrjälä
2026-11-21 12:25 ` [PATCH v2 0/4] drm/i915/psr: Send the AS SDP in PR Active while frames are updating Jake Steinman
2026-11-21 12:25 ` [PATCH v2 1/4] drm/i915/alpm: Add a helper to suspend the AS SDP in PR Active Jake Steinman
2026-11-21 12:25 ` [PATCH v2 2/4] drm/i915/psr: Send the AS SDP in PR Active while frames are updating Jake Steinman
2026-11-23 15:45 ` sashiko-bot
2026-11-21 12:25 ` [PATCH v2 3/4] drm/i915/alpm: Leave AS SDP Transmission in Active Disable to PSR code Jake Steinman
2026-11-23 15:32 ` sashiko-bot [this message]
2026-11-21 12:25 ` [PATCH v2 4/4] drm/i915/display: Remove the Panel Replay quirk for Dell XPS 16 DA16260 Jake Steinman
2026-11-23 9:29 ` [RFC PATCH] drm/i915/psr: Send the AS SDP in PR Active while vblank is enabled Hogander, Jouni
2026-11-23 13:32 ` Jake Steinman
2026-10-07 6:41 ` [PATCH] drm/i915/dp: Don't promise AS SDPs in PR Active when they are disabled Hogander, Jouni
2026-10-07 11:49 ` Jake Steinman
2026-10-07 15:21 ` ✗ LGCI.VerificationFailed: failure for drm/i915/dp: Don't promise AS SDPs in PR Active when they are disabled (rev2) 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=sashiko-outbox-229573@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=intel-gfx@lists.freedesktop.org \
--cc=intel-xe@lists.freedesktop.org \
--cc=j@metarealtyinc.ca \
--cc=sashiko-reviews@lists.linux.dev \
/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