Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Nautiyal, Ankit K" <ankit.k.nautiyal@intel.com>
To: Jani Nikula <jani.nikula@intel.com>,
	<intel-gfx@lists.freedesktop.org>,
	<intel-xe@lists.freedesktop.org>
Subject: Re: [PATCH 3/4] drm/i915/dp: Limit compute config joining to pipes that can actually join
Date: Mon, 10 Aug 2026 17:11:30 +0530	[thread overview]
Message-ID: <d6520a08-8dbc-4a1e-80d5-62f969cf88c1@intel.com> (raw)
In-Reply-To: <dc1c7fc45d4da7d3fd1bd8b94c30c78d69aa0742.1786105831.git.jani.nikula@intel.com>


On 8/7/2026 6:04 PM, Jani Nikula wrote:
> Skip joining for pipes that can't work as joiner primary pipe for the
> number of pipes being joined. This limits the invalid combos early,
> instead of ending up with crtc_state->joiner_pipes that would fail
> during modeset. Before, crtc_state->joiner pipes could have ended up
> including pipes that do not exist on the platform.
>
> Cc: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
> Signed-off-by: Jani Nikula <jani.nikula@intel.com>

LGTM.

Reviewed-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com>

> ---
>   drivers/gpu/drm/i915/display/intel_dp.c     | 5 +++++
>   drivers/gpu/drm/i915/display/intel_dp_mst.c | 4 ++++
>   2 files changed, 9 insertions(+)
>
> diff --git a/drivers/gpu/drm/i915/display/intel_dp.c b/drivers/gpu/drm/i915/display/intel_dp.c
> index e1604bc895e5..6b60e0a1c8ee 100644
> --- a/drivers/gpu/drm/i915/display/intel_dp.c
> +++ b/drivers/gpu/drm/i915/display/intel_dp.c
> @@ -2910,6 +2910,7 @@ intel_dp_compute_link_config(struct intel_encoder *encoder,
>   			     struct drm_connector_state *conn_state,
>   			     bool respect_downstream_limits)
>   {
> +	struct intel_display *display = to_intel_display(encoder);
>   	struct intel_crtc *crtc = to_intel_crtc(crtc_state->uapi.crtc);
>   	struct intel_connector *connector =
>   		to_intel_connector(conn_state->connector);
> @@ -2924,6 +2925,10 @@ intel_dp_compute_link_config(struct intel_encoder *encoder,
>   		return -EINVAL;
>   
>   	for_each_joiner_candidate(connector, adjusted_mode, num_joined_pipes) {
> +		/* If the pipe can't be a joiner primary, skip early. */
> +		if (!(intel_joiner_valid_primary_pipe_mask(display, num_joined_pipes) & BIT(crtc->pipe)))
> +			continue;
> +
>   		/*
>   		 * NOTE:
>   		 * The crtc_state->joiner_pipes should have been set at the end
> diff --git a/drivers/gpu/drm/i915/display/intel_dp_mst.c b/drivers/gpu/drm/i915/display/intel_dp_mst.c
> index 3be1643f8d03..379666692bc8 100644
> --- a/drivers/gpu/drm/i915/display/intel_dp_mst.c
> +++ b/drivers/gpu/drm/i915/display/intel_dp_mst.c
> @@ -770,6 +770,10 @@ static int mst_stream_compute_config(struct intel_atomic_state *state,
>   		return ret;
>   
>   	for_each_joiner_candidate(connector, adjusted_mode, num_joined_pipes) {
> +		/* If the pipe can't be a joiner primary, skip early. */
> +		if (!(intel_joiner_valid_primary_pipe_mask(display, num_joined_pipes) & BIT(crtc->pipe)))
> +			continue;
> +
>   		if (num_joined_pipes > 1)
>   			pipe_config->joiner_pipes = GENMASK(crtc->pipe + num_joined_pipes - 1,
>   							    crtc->pipe);

  reply	other threads:[~2026-08-10 11:41 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-07 12:34 [PATCH 0/4] drm/i915/display: Limit invalid joiner combinations harder Jani Nikula
2026-08-07 12:34 ` [PATCH 1/4] drm/i915/display: Limit max joined dotclock on joiner pipes available Jani Nikula
2026-08-10 11:17   ` Nautiyal, Ankit K
2026-08-11 12:47     ` Jani Nikula
2026-08-07 12:34 ` [PATCH 2/4] drm/i915/dp: Limit for_each_joiner_candidate() " Jani Nikula
2026-08-10 11:36   ` Nautiyal, Ankit K
2026-08-07 12:34 ` [PATCH 3/4] drm/i915/dp: Limit compute config joining to pipes that can actually join Jani Nikula
2026-08-10 11:41   ` Nautiyal, Ankit K [this message]
2026-08-07 12:34 ` [PATCH 4/4] drm/i915/debugfs: Reject invalid force_joined_pipes harder Jani Nikula
2026-08-10 11:43   ` Nautiyal, Ankit K
2026-08-07 13:00 ` ✗ CI.checkpatch: warning for drm/i915/display: Limit invalid joiner combinations harder Patchwork
2026-08-07 13:01 ` ✓ CI.KUnit: success " Patchwork
2026-08-07 13:44 ` ✓ Xe.CI.BAT: " Patchwork
2026-08-07 22:40 ` ✗ Xe.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=d6520a08-8dbc-4a1e-80d5-62f969cf88c1@intel.com \
    --to=ankit.k.nautiyal@intel.com \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=intel-xe@lists.freedesktop.org \
    --cc=jani.nikula@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