From: "Ville Syrjälä" <ville.syrjala@linux.intel.com>
To: Mika Kahola <mika.kahola@intel.com>
Cc: intel-gfx@lists.freedesktop.org, intel-xe@lists.freedesktop.org
Subject: Re: [PATCH 2/3] drm/i915/flipq: Allow flip queue commits with PSR2/PR on Xe3+
Date: Tue, 24 Nov 2026 18:43:28 +0200 [thread overview]
Message-ID: <awW-sD_8TBSd-a7c@intel.com> (raw)
In-Reply-To: <20261124141300.2600962-3-mika.kahola@intel.com>
On Tue, Nov 24, 2026 at 02:12:59PM +0000, Mika Kahola wrote:
> Allow PSR2 and Panel Replay with the flip queue on PTL+, where the
> selective fetch and SU region programming go through the DSB and the
> DMC generates the frame change event.
>
> PSR1 stays excluded as it can't use the pipe DMC interrupt. LNL is
> left out as it has no DMC generated push, and its flip queue trigger
> is scanline based while PIPEDSL reads 0 in PSR2 deep sleep.
>
> Joined pipes are left out as well. They share one transcoder, but
> each pipe DMC would send its own push.
>
> Signed-off-by: Mika Kahola <mika.kahola@intel.com>
> ---
> drivers/gpu/drm/i915/display/intel_display.c | 2 +-
> drivers/gpu/drm/i915/display/intel_flipq.c | 27 ++++++++++++++++++++
> drivers/gpu/drm/i915/display/intel_flipq.h | 1 +
> 3 files changed, 29 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/i915/display/intel_display.c b/drivers/gpu/drm/i915/display/intel_display.c
> index 6de618d6735aa..c6875169ef225 100644
> --- a/drivers/gpu/drm/i915/display/intel_display.c
> +++ b/drivers/gpu/drm/i915/display/intel_display.c
> @@ -7524,7 +7524,7 @@ intel_atomic_commit_type(struct intel_atomic_state *state,
> /* TODO handle VRR with flip queue */
> if (intel_flipq_supported(display) &&
> !new_crtc_state->vrr.enable &&
> - !new_crtc_state->has_psr &&
> + intel_flipq_psr_supported(new_crtc_state) &&
I do not see anything in this series that would prevent the DMC
from sleeping, and thus being unable to actually process the flip
queue.
> !intel_crtc_needs_color_update(new_crtc_state))
> return INTEL_COMMIT_FLIPQ;
>
> diff --git a/drivers/gpu/drm/i915/display/intel_flipq.c b/drivers/gpu/drm/i915/display/intel_flipq.c
> index ab51795ca4dd1..24be0a3ec2e96 100644
> --- a/drivers/gpu/drm/i915/display/intel_flipq.c
> +++ b/drivers/gpu/drm/i915/display/intel_flipq.c
> @@ -127,6 +127,33 @@ bool intel_flipq_supported(struct intel_display *display)
> return DISPLAY_VER(display) >= 30 && intel_vrr_always_use_vrr_tg(display);
> }
>
> +/*
> + * The flip queue completion is signalled via the pipe DMC interrupt,
> + * which isn't available with PSR1. PSR2 and Panel Replay can be used
> + * with the flip queue on PTL+, where the selective fetch and SU region
> + * programming go through the DSB and the DMC generates the frame
> + * change event (see PTL_FQ_NEED_PUSH).
> + *
> + * Joined pipes share one transcoder, but each pipe DMC would send
> + * its own push, so keep them on the DSB path.
> + */
> +bool intel_flipq_psr_supported(const struct intel_crtc_state *crtc_state)
> +{
> + struct intel_display *display = to_intel_display(crtc_state);
> +
> + if (!crtc_state->has_psr)
> + return true;
> +
> + if (DISPLAY_VER(display) < 30 ||
> + !HAS_PSR_TRANS_PUSH_FRAME_CHANGE(display))
> + return false;
> +
> + if (crtc_state->joiner_pipes)
> + return false;
> +
> + return crtc_state->has_sel_update || crtc_state->has_panel_replay;
> +}
> +
> void intel_flipq_init(struct intel_display *display)
> {
> struct intel_crtc *crtc;
> diff --git a/drivers/gpu/drm/i915/display/intel_flipq.h b/drivers/gpu/drm/i915/display/intel_flipq.h
> index 06e84bbc2e07c..b5370191c472b 100644
> --- a/drivers/gpu/drm/i915/display/intel_flipq.h
> +++ b/drivers/gpu/drm/i915/display/intel_flipq.h
> @@ -17,6 +17,7 @@ struct intel_display;
> struct intel_dsb;
>
> bool intel_flipq_supported(struct intel_display *display);
> +bool intel_flipq_psr_supported(const struct intel_crtc_state *crtc_state);
> void intel_flipq_init(struct intel_display *display);
> void intel_flipq_reset(struct intel_display *display, enum pipe pipe);
>
> --
> 2.43.0
--
Ville Syrjälä
Intel
next prev parent reply other threads:[~2026-11-24 16:54 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-24 14:12 [PATCH 0/3] drm/i915: Enable flip queue with PSR2 and Panel Replay Mika Kahola
2026-11-24 14:12 ` [PATCH 1/3] drm/i915/flipq: Let the DMC send the PSR frame change Mika Kahola
2026-11-24 14:12 ` [PATCH 2/3] drm/i915/flipq: Allow flip queue commits with PSR2/PR on Xe3+ Mika Kahola
2026-11-24 16:43 ` Ville Syrjälä [this message]
2026-11-24 14:13 ` [PATCH 3/3] drm/i915/cmtg: Include flip queue exec time in the DC3co exit latency Mika Kahola
2026-11-24 14:56 ` ✗ CI.KUnit: failure for drm/i915: Enable flip queue with PSR2 and Panel Replay Patchwork
2026-11-25 1:53 ` ✓ i915.CI.BAT: success " Patchwork
2026-11-25 19:38 ` ✓ i915.CI.Full: " 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=awW-sD_8TBSd-a7c@intel.com \
--to=ville.syrjala@linux.intel.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=intel-xe@lists.freedesktop.org \
--cc=mika.kahola@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.