Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Hogander, Jouni" <jouni.hogander@intel.com>
To: "intel-xe@lists.freedesktop.org" <intel-xe@lists.freedesktop.org>,
	"Kahola, Mika" <mika.kahola@intel.com>,
	"intel-gfx@lists.freedesktop.org"
	<intel-gfx@lists.freedesktop.org>
Subject: Re: [PATCH v3 8/9] drm/i915/psr: Allow Panel Replay and PSR2 with joiner
Date: Mon, 26 Oct 2026 06:56:07 +0000	[thread overview]
Message-ID: <65340b056d48a5dc511ac636a1b3efea2a1f479e.camel@intel.com> (raw)
In-Reply-To: <20261023100052.683192-9-mika.kahola@intel.com>

On Fri, 2026-10-23 at 10:00 +0000, Mika Kahola wrote:
> PSR is rejected outright whenever the joiner is in use. Panel Replay
> and
> PSR2 selective update do work with the joiner, so only keep rejecting
> plain PSR1.
> 
> The eDP Panel Replay pipe A/B restriction only looks at the primary
> pipe. joiner_pipes is a contiguous mask anchored at the primary pipe,
> so
> a joined config on pipe B extends to pipe C, which has no PSR/Panel
> Replay register block. Test the whole joined pipe mask instead, which
> is
> a no-op without the joiner.
> 
> PSR1/PSR2 have no equivalent pipe A/B check today. That is a
> pre-existing gap independent of the joiner and is left alone here.
> 
> v2: Drop psr_joiner_config_valid(), it duplicated the existing eDP
> Panel
>     Replay pipe A/B check and wrongly applied it to DP Panel Replay
> (Jouni)
>     Extend that existing check to the joined pipe mask instead
> (Jouni)
>     Keep only the joiner specific checks: PSR1 and YUV 4:2:0 (Jouni)
> 
> Signed-off-by: Mika Kahola <mika.kahola@intel.com>

I couldn't find any mention in Bspec about joiner and PSR2 + HW
tracking. Anyways Not sure if there is even need for handling that case
. There is probably no eDP panels with need for joiner in that old HW:

Reviewed-by: Jouni Högander <jouni.hogander@intel.com>

> ---
>  drivers/gpu/drm/i915/display/intel_psr.c | 34 +++++++++++++++-------
> --
>  1 file changed, 21 insertions(+), 13 deletions(-)
> 
> diff --git a/drivers/gpu/drm/i915/display/intel_psr.c
> b/drivers/gpu/drm/i915/display/intel_psr.c
> index f1d52c39d8834..288836d4a993c 100644
> --- a/drivers/gpu/drm/i915/display/intel_psr.c
> +++ b/drivers/gpu/drm/i915/display/intel_psr.c
> @@ -1598,6 +1598,13 @@ static bool
> intel_sel_update_config_valid(struct intel_crtc_state *crtc_state,
>  	struct intel_dp *intel_dp = intel_attached_dp(connector);
>  	struct intel_display *display = to_intel_display(intel_dp);
>  
> +	if (crtc_state->joiner_pipes && !crtc_state-
> >dsc.compression_enable &&
> +	    crtc_state->output_format ==
> INTEL_OUTPUT_FORMAT_YCBCR420) {
> +		drm_dbg_kms(display->drm,
> +			    "Selective update not enabled,
> uncompressed joiner does not support YUV 4:2:0\n");
> +		goto unsupported;
> +	}
> +
>  	if (HAS_PSR2_SEL_FETCH(display) &&
>  	    !intel_psr2_sel_fetch_config_valid(intel_dp, crtc_state)
> &&
>  	    !HAS_PSR_HW_TRACKING(display)) {
> @@ -1745,8 +1752,8 @@ static bool _panel_replay_compute_config(struct
> intel_crtc_state *crtc_state,
>  
>  	/* Remaining checks are for eDP only */
>  
> -	if (to_intel_crtc(crtc_state->uapi.crtc)->pipe != PIPE_A &&
> -	    to_intel_crtc(crtc_state->uapi.crtc)->pipe != PIPE_B)
> +	/* Every joined pipe needs its own PSR/Panel Replay register
> block. */
> +	if (intel_crtc_joined_pipe_mask(crtc_state) & ~(BIT(PIPE_A)
> | BIT(PIPE_B)))
>  		return false;
>  
>  	/* 128b/132b Panel Replay is not supported on eDP */
> @@ -1890,17 +1897,6 @@ void intel_psr_compute_config(struct intel_dp
> *intel_dp,
>  		return;
>  	}
>  
> -	/*
> -	 * FIXME figure out what is wrong with PSR+joiner and
> -	 * fix it. Presumably something related to the fact that
> -	 * PSR is a transcoder level feature.
> -	 */
> -	if (crtc_state->joiner_pipes) {
> -		drm_dbg_kms(display->drm,
> -			    "PSR disabled due to joiner\n");
> -		return;
> -	}
> -
>  	/* Only used for state verification. */
>  	crtc_state->panel_replay_dsc_support = connector-
> >dp.panel_replay_caps.dsc_support;
>  	crtc_state->has_panel_replay =
> _panel_replay_compute_config(crtc_state, conn_state);
> @@ -1912,6 +1908,14 @@ void intel_psr_compute_config(struct intel_dp
> *intel_dp,
>  		return;
>  
>  	crtc_state->has_sel_update =
> intel_sel_update_config_valid(crtc_state, conn_state);
> +
> +	/* Plain PSR1 is not supported with joiner. */
> +	if (crtc_state->joiner_pipes && !crtc_state-
> >has_panel_replay &&
> +	    !crtc_state->has_sel_update) {
> +		drm_dbg_kms(display->drm,
> +			    "PSR disabled, PSR1 not supported with
> joiner\n");
> +		crtc_state->has_psr = false;
> +	}
>  }
>  
>  void intel_psr_get_config(struct intel_encoder *encoder,
> @@ -4755,6 +4759,10 @@ void intel_psr_compute_config_late(struct
> intel_dp *intel_dp,
>  		crtc_state->has_sel_update = false;
>  		crtc_state->enable_psr2_su_region_et = false;
>  		crtc_state->enable_psr2_sel_fetch = false;
> +
> +		/* Plain PSR1 is not supported with joiner. */
> +		if (crtc_state->joiner_pipes)
> +			crtc_state->has_psr = false;
>  	}
>  
>  	/* Wa_18037818876 */


  reply	other threads:[~2026-10-26  6:56 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-23 10:00 [PATCH v3 0/9] drm/i915/psr: PSR2 and Panel Replay with the joiner Mika Kahola
2026-10-23 10:00 ` [PATCH v3 1/9] drm/i915/psr: Track all joined pipes for frontbuffer tracking Mika Kahola
2026-10-23 10:33   ` Hogander, Jouni
2026-10-23 10:00 ` [PATCH v3 2/9] drm/i915/psr: Exclude the joiner secondary from active_non_psr_pipes Mika Kahola
2026-10-23 11:21   ` Hogander, Jouni
2026-10-23 10:00 ` [PATCH v3 3/9] drm/i915/psr: Take the selective fetch area from pipe_src Mika Kahola
2026-10-23 12:09   ` Hogander, Jouni
2026-10-23 10:00 ` [PATCH v3 4/9] drm/i915/psr: Split the selective fetch calculation into helpers Mika Kahola
2026-10-23 12:14   ` Hogander, Jouni
2026-10-23 10:00 ` [PATCH v3 5/9] drm/i915/psr: Derive the alignment loop condition from the SU area Mika Kahola
2026-10-23 12:29   ` Hogander, Jouni
2026-10-23 10:00 ` [PATCH v3 6/9] drm/i915/psr: Merge the selective fetch area across joined pipes Mika Kahola
2026-10-23 12:43   ` Hogander, Jouni
2026-10-23 10:00 ` [PATCH v3 7/9] drm/i915/psr: Resolve the PSR encoders through the joiner primary Mika Kahola
2026-10-26  6:18   ` Hogander, Jouni
2026-10-23 10:00 ` [PATCH v3 8/9] drm/i915/psr: Allow Panel Replay and PSR2 with joiner Mika Kahola
2026-10-26  6:56   ` Hogander, Jouni [this message]
2026-10-23 10:00 ` [PATCH v3 9/9] drm/i915/display: Allow forcing the joiner on eDP Mika Kahola
2026-10-23 10:11 ` ✓ CI.KUnit: success for drm/i915/psr: PSR2 and Panel Replay with the joiner Patchwork
2026-10-23 10:55 ` ✓ Xe.CI.BAT: " Patchwork
2026-10-23 14:45 ` ✗ Xe.CI.FULL: failure " Patchwork
2026-10-26  8:06 ` [PATCH v3 0/9] " Kahola, Mika

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=65340b056d48a5dc511ac636a1b3efea2a1f479e.camel@intel.com \
    --to=jouni.hogander@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox