Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Jani Nikula <jani.nikula@linux.intel.com>
To: Suraj Kandpal <suraj.kandpal@intel.com>,
	intel-gfx@lists.freedesktop.org, intel-xe@lists.freedesktop.org
Cc: ankit.k.nautiyal@intel.com, uma.shankar@intel.com,
	chaitanya.kumar.borah@intel.com,
	Suraj Kandpal <suraj.kandpal@intel.com>
Subject: Re: [PATCH 08/15] drm/i915/pipelock: Keep SSC, PSR and CMRR off on pipelock tiles
Date: Thu, 26 Nov 2026 10:52:23 +0200	[thread overview]
Message-ID: <aba5a709dd47920e45389b62aa08212f96e605e8@intel.com> (raw)
In-Reply-To: <20261126063459.863698-9-suraj.kandpal@intel.com>

On Thu, 26 Nov 2026, Suraj Kandpal <suraj.kandpal@intel.com> wrote:
> A few features can't be used on a pipelocked transcoder:
>
> - SSC, as every port has its own PLL and the PLLs have to match
> - PSR and panel replay, which pipelock doesn't support
> - CMRR and DC balance, which mess with the vtotal before the
>   secondary has locked
>
> The PLL and these features are computed before we know which tiles end
> up in a sync group, so keep them off for any DP SST tile on platforms
> with pipelock. Tiled monitors don't use them in practice anyway.
> Add intel_pipelock.[ch] for the pipelock specific code, starting with
> the check for such connectors.
>
> Bspec: 73521
> Signed-off-by: Suraj Kandpal <suraj.kandpal@intel.com>
> ---
>  drivers/gpu/drm/i915/Makefile                 |  1 +
>  drivers/gpu/drm/i915/display/intel_lt_phy.c   |  4 ++++
>  drivers/gpu/drm/i915/display/intel_pipelock.c | 17 +++++++++++++++++
>  drivers/gpu/drm/i915/display/intel_pipelock.h | 15 +++++++++++++++
>  drivers/gpu/drm/i915/display/intel_psr.c      |  7 +++++++
>  drivers/gpu/drm/i915/display/intel_vrr.c      |  8 ++++++--
>  drivers/gpu/drm/xe/Makefile                   |  1 +
>  7 files changed, 51 insertions(+), 2 deletions(-)
>  create mode 100644 drivers/gpu/drm/i915/display/intel_pipelock.c
>  create mode 100644 drivers/gpu/drm/i915/display/intel_pipelock.h
>
> diff --git a/drivers/gpu/drm/i915/Makefile b/drivers/gpu/drm/i915/Makefile
> index ba7eecfffdca..a61642c3e71b 100644
> --- a/drivers/gpu/drm/i915/Makefile
> +++ b/drivers/gpu/drm/i915/Makefile
> @@ -305,6 +305,7 @@ i915-y += \
>  	display/intel_pch.o \
>  	display/intel_pch_display.o \
>  	display/intel_pch_refclk.o \
> +	display/intel_pipelock.o \
>  	display/intel_plane.o \
>  	display/intel_pmdemand.o \
>  	display/intel_psr.o \
> diff --git a/drivers/gpu/drm/i915/display/intel_lt_phy.c b/drivers/gpu/drm/i915/display/intel_lt_phy.c
> index 86492651b01d..35fa701eb9be 100644
> --- a/drivers/gpu/drm/i915/display/intel_lt_phy.c
> +++ b/drivers/gpu/drm/i915/display/intel_lt_phy.c
> @@ -20,6 +20,7 @@
>  #include "intel_lt_phy.h"
>  #include "intel_lt_phy_regs.h"
>  #include "intel_panel.h"
> +#include "intel_pipelock.h"
>  #include "intel_psr.h"
>  #include "intel_tc.h"
>  
> @@ -1338,6 +1339,9 @@ intel_lt_phy_pll_is_ssc_enabled(struct intel_crtc_state *crtc_state,
>  		if (intel_panel_use_ssc(display)) {
>  			struct intel_dp *intel_dp = enc_to_intel_dp(encoder);
>  
> +			if (intel_pipelock_connector_possible(intel_dp->attached_connector))
> +				return false;
> +
>  			return (intel_dp->dpcd[DP_MAX_DOWNSPREAD] & DP_MAX_DOWNSPREAD_0_5);
>  		}
>  	}
> diff --git a/drivers/gpu/drm/i915/display/intel_pipelock.c b/drivers/gpu/drm/i915/display/intel_pipelock.c
> new file mode 100644
> index 000000000000..67c643b6626c
> --- /dev/null
> +++ b/drivers/gpu/drm/i915/display/intel_pipelock.c
> @@ -0,0 +1,17 @@
> +// SPDX-License-Identifier: MIT
> +/*
> + * Copyright © 2026 Intel Corporation
> + */
> +

I would pretty much like to mandate that *every* file in display/ *must*
have a DOC: comment explaining what this stuff is about, what the
acronyms are, etc. Obviously not all the existing files have it, but all
new ones should.

You've basically written most of this already in the cover letter and
the commit messages. Add a bit of pixie dust on top and you're done.

> +#include "intel_display_core.h"
> +#include "intel_display_types.h"
> +#include "intel_pipelock.h"
> +
> +bool intel_pipelock_connector_possible(const struct intel_connector *connector)
> +{
> +	struct intel_display *display = to_intel_display(connector);
> +
> +	return HAS_PIPELOCK(display) && connector->base.has_tile &&
> +		connector->base.connector_type == DRM_MODE_CONNECTOR_DisplayPort &&
> +		!connector->mst.dp;
> +}
> diff --git a/drivers/gpu/drm/i915/display/intel_pipelock.h b/drivers/gpu/drm/i915/display/intel_pipelock.h
> new file mode 100644
> index 000000000000..b08b10f8da34
> --- /dev/null
> +++ b/drivers/gpu/drm/i915/display/intel_pipelock.h
> @@ -0,0 +1,15 @@
> +/* SPDX-License-Identifier: MIT */
> +/*
> + * Copyright © 2026 Intel Corporation
> + */
> +
> +#ifndef __INTEL_PIPELOCK_H__
> +#define __INTEL_PIPELOCK_H__
> +
> +#include <linux/types.h>
> +
> +struct intel_connector;
> +
> +bool intel_pipelock_connector_possible(const struct intel_connector *connector);
> +
> +#endif /* __INTEL_PIPELOCK_H__ */
> diff --git a/drivers/gpu/drm/i915/display/intel_psr.c b/drivers/gpu/drm/i915/display/intel_psr.c
> index 438cb1502c26..a0e65b24b65a 100644
> --- a/drivers/gpu/drm/i915/display/intel_psr.c
> +++ b/drivers/gpu/drm/i915/display/intel_psr.c
> @@ -51,6 +51,7 @@
>  #include "intel_dsb.h"
>  #include "intel_frontbuffer.h"
>  #include "intel_hdmi.h"
> +#include "intel_pipelock.h"
>  #include "intel_psr.h"
>  #include "intel_psr_regs.h"
>  #include "intel_quirks.h"
> @@ -1897,6 +1898,12 @@ void intel_psr_compute_config(struct intel_dp *intel_dp,
>  		return;
>  	}
>  
> +	if (intel_pipelock_connector_possible(connector)) {
> +		drm_dbg_kms(display->drm,
> +			    "PSR condition failed: Tiled display with pipelock\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);
> diff --git a/drivers/gpu/drm/i915/display/intel_vrr.c b/drivers/gpu/drm/i915/display/intel_vrr.c
> index e59345bd1d33..47603c141298 100644
> --- a/drivers/gpu/drm/i915/display/intel_vrr.c
> +++ b/drivers/gpu/drm/i915/display/intel_vrr.c
> @@ -25,6 +25,7 @@
>  #include "intel_dmc.h"
>  #include "intel_dmc_regs.h"
>  #include "intel_dp.h"
> +#include "intel_pipelock.h"
>  #include "intel_psr.h"
>  #include "intel_vrr.h"
>  #include "intel_vrr_regs.h"
> @@ -483,6 +484,7 @@ intel_vrr_compute_config(struct intel_crtc_state *crtc_state,
>  	struct intel_connector *connector =
>  		to_intel_connector(conn_state->connector);
>  	struct drm_display_mode *adjusted_mode = &crtc_state->hw.adjusted_mode;
> +	bool pipelock = intel_pipelock_connector_possible(connector);
>  	int vmin, vmax;
>  
>  	if (!HAS_VRR(display))
> @@ -523,7 +525,8 @@ intel_vrr_compute_config(struct intel_crtc_state *crtc_state,
>  		 * the fixed refresh rate path. It is generic across transcoders
>  		 * and gated on platform support and a valid debugfs ratio.
>  		 */
> -		intel_vrr_cmrr_compute_config(crtc_state);
> +		if (!pipelock)
> +			intel_vrr_cmrr_compute_config(crtc_state);
>  		intel_vrr_compute_fixed_rr_timings(crtc_state);
>  	}
>  
> @@ -536,7 +539,8 @@ intel_vrr_compute_config(struct intel_crtc_state *crtc_state,
>  			 crtc_state->hw.adjusted_mode.crtc_vsync_end);
>  	}
>  
> -	intel_vrr_dc_balance_compute_config(crtc_state);
> +	if (!pipelock)
> +		intel_vrr_dc_balance_compute_config(crtc_state);
>  }
>  
>  static int
> diff --git a/drivers/gpu/drm/xe/Makefile b/drivers/gpu/drm/xe/Makefile
> index 52f0d5dd5468..15154987d6a0 100644
> --- a/drivers/gpu/drm/xe/Makefile
> +++ b/drivers/gpu/drm/xe/Makefile
> @@ -329,6 +329,7 @@ xe-$(CONFIG_DRM_XE_DISPLAY) += \
>  	i915-display/intel_parent.o \
>  	i915-display/intel_pch.o \
>  	i915-display/intel_pfit.o \
> +	i915-display/intel_pipelock.o \
>  	i915-display/intel_plane.o \
>  	i915-display/intel_pmdemand.o \
>  	i915-display/intel_pps.o \

-- 
Jani Nikula, Intel

  reply	other threads:[~2026-11-26  8:58 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-26  6:34 [PATCH 00/15] drm/i915/display: Sync tiled displays with pipelock Suraj Kandpal
2026-11-26  6:34 ` [PATCH 01/15] drm/i915/display: Rename port sync master/slave to primary/secondary Suraj Kandpal
2026-11-26  6:43   ` sashiko-bot
2026-11-26  6:34 ` [PATCH 02/15] drm/i915/display: Add HAS_PIPELOCK() Suraj Kandpal
2026-11-26  6:34 ` [PATCH 03/15] drm/i915/display: Add pipelock bits to TRANS_DDI_FUNC_CTL2 Suraj Kandpal
2026-11-26  8:45   ` Jani Nikula
2026-11-26  6:34 ` [PATCH 04/15] drm/i915/ddi: Program pipelock in TRANS_DDI_FUNC_CTL2 Suraj Kandpal
2026-11-26  6:34 ` [PATCH 05/15] drm/i915/ddi: Don't hold the DP link in idle with pipelock Suraj Kandpal
2026-11-26  6:34 ` [PATCH 06/15] drm/i915/display: Enable the pipelock primary before its secondaries Suraj Kandpal
2026-11-26  6:34 ` [PATCH 07/15] drm/i915/display: Read out and verify pipelock state Suraj Kandpal
2026-11-26  6:34 ` [PATCH 08/15] drm/i915/pipelock: Keep SSC, PSR and CMRR off on pipelock tiles Suraj Kandpal
2026-11-26  8:52   ` Jani Nikula [this message]
2026-11-26  9:14     ` Kandpal, Suraj
2026-11-26  6:34 ` [PATCH 09/15] drm/i915/pipelock: Compute pipelock groups for DP tiled displays Suraj Kandpal
2026-11-26  8:56   ` Jani Nikula
2026-11-26  9:16     ` Kandpal, Suraj
2026-11-26  6:34 ` [PATCH 10/15] drm/i915/vrr: Split out setting the guardband Suraj Kandpal
2026-11-26  6:44   ` sashiko-bot
2026-11-26  8:58   ` Jani Nikula
2026-11-26  9:17     ` Kandpal, Suraj
2026-11-26  6:34 ` [PATCH 11/15] drm/i915/pipelock: Equalize the guardband across a pipelock group Suraj Kandpal
2026-11-26  6:49   ` sashiko-bot
2026-11-26  6:34 ` [PATCH 12/15] drm/i915/dp: Apply link training fallback to the whole tile group Suraj Kandpal
2026-11-26  7:06   ` sashiko-bot
2026-11-26  6:34 ` [PATCH 13/15] drm/i915/display: Show transcoder sync state in i915_display_info Suraj Kandpal
2026-11-26  6:34 ` [PATCH 14/15] drm/i915/display: Use pipelock on PTL Suraj Kandpal
2026-11-26  6:54   ` sashiko-bot
2026-11-26  6:34 ` [PATCH 15/15] drm/i915/ddi: Disable port sync " Suraj Kandpal
2026-11-26  6:42 ` ✗ CI.checkpatch: warning for drm/i915/display: Sync tiled displays with pipelock Patchwork
2026-11-26  6:45 ` ✓ CI.KUnit: success " Patchwork
2026-11-26  7:26 ` ✓ Xe.CI.BAT: " Patchwork
2026-11-26 12:54 ` ✓ Xe.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=aba5a709dd47920e45389b62aa08212f96e605e8@intel.com \
    --to=jani.nikula@linux.intel.com \
    --cc=ankit.k.nautiyal@intel.com \
    --cc=chaitanya.kumar.borah@intel.com \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=intel-xe@lists.freedesktop.org \
    --cc=suraj.kandpal@intel.com \
    --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