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,
	ville.syrjala@linux.intel.com
Cc: ankit.k.nautiyal@intel.com, uma.shankar@intel.com,
	chaitanya.kumar.borah@intel.com,
	Suraj Kandpal <suraj.kandpal@intel.com>
Subject: Re: [PATCH 03/15] drm/i915/display: Add pipelock bits to TRANS_DDI_FUNC_CTL2
Date: Thu, 26 Nov 2026 10:45:51 +0200	[thread overview]
Message-ID: <df3bd5280450f28450d2e486c067dfc9418f35e7@intel.com> (raw)
In-Reply-To: <20261126063459.863698-4-suraj.kandpal@intel.com>

On Thu, 26 Nov 2026, Suraj Kandpal <suraj.kandpal@intel.com> wrote:
> Add the genlock enable, genlock mode, per-frame sync and timing
> generator start delay fields used to set up a pipelock secondary.
> The primary select field is shared with port sync.
>
> Bspec: 73521, 69965
> Signed-off-by: Suraj Kandpal <suraj.kandpal@intel.com>
> ---
>  drivers/gpu/drm/i915/display/intel_display_regs.h | 6 ++++++
>  1 file changed, 6 insertions(+)
>
> diff --git a/drivers/gpu/drm/i915/display/intel_display_regs.h b/drivers/gpu/drm/i915/display/intel_display_regs.h
> index f213bdffcc8d..05477fb4885f 100644
> --- a/drivers/gpu/drm/i915/display/intel_display_regs.h
> +++ b/drivers/gpu/drm/i915/display/intel_display_regs.h
> @@ -2558,6 +2558,12 @@ enum skl_power_gate {
>  #define _TRANS_DDI_FUNC_CTL2_DSI0	0x6b404
>  #define _TRANS_DDI_FUNC_CTL2_DSI1	0x6bc04
>  #define TRANS_DDI_FUNC_CTL2(dev_priv, tran)	_MMIO_TRANS2(dev_priv, tran, _TRANS_DDI_FUNC_CTL2_A)
> +#define  GENLOCK_ENABLE				REG_BIT(31)
> +#define  GENLOCK_MODE_MASK			REG_GENMASK(30, 29)
> +#define  GENLOCK_MODE_LOCAL_SECONDARY		REG_FIELD_PREP(GENLOCK_MODE_MASK, 0)
> +#define  PIPELOCK_PER_FRAME_SYNC		REG_BIT(28)
> +#define  TG_START_DELAY_MASK			REG_GENMASK(27, 16)
> +#define  TG_START_DELAY(x)			REG_FIELD_PREP(TG_START_DELAY_MASK, (x))

At some point we had the convention of suffixing the register bits and
fields per platform introduced. See big comment near top of i915_reg.h.

I'm not sure that's the cleanest. But the information was useful while
reading the code. Maybe we should have end of the line comments to the
same effect, similar to the DPCD spec version annotations?

Ville, thoughts?

BR,
Jani.


>  #define  PORT_SYNC_MODE_ENABLE			REG_BIT(4)
>  #define  CMTG_SECONDARY_MODE			REG_BIT(3)
>  #define  PORT_SYNC_MODE_MASTER_SELECT_MASK	REG_GENMASK(2, 0)

-- 
Jani Nikula, Intel

  reply	other threads:[~2026-11-26  8:46 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 [this message]
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
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=df3bd5280450f28450d2e486c067dfc9418f35e7@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 \
    --cc=ville.syrjala@linux.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