Intel-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Rodrigo Vivi <rodrigo.vivi@intel.com>
To: "Nautiyal, Ankit K" <ankit.k.nautiyal@intel.com>
Cc: Suraj Kandpal <suraj.kandpal@intel.com>,
	<intel-xe@lists.freedesktop.org>,
	 <intel-gfx@lists.freedesktop.org>
Subject: Re: [PATCH v2 3/3] drm/i915/lt_phy: program DDI_CLK_VALFREQ with DDI clock frequency
Date: Wed, 12 Aug 2026 13:26:31 -0400	[thread overview]
Message-ID: <anysx7B33SpyqkBR@intel.com> (raw)
In-Reply-To: <6710db81-c507-4abc-a5f8-6f2678b9f780@intel.com>

On Wed, Aug 12, 2026 at 09:20:12AM +0530, Nautiyal, Ankit K wrote:
> 
> On 8/11/2026 11:28 PM, Suraj Kandpal wrote:
> > DDI_CLK_VALFREQ is programmed with the port clock, which for DP is the
> > symbol clock computed assuming 8b/10b encoding (link_rate / 10). For
> > DP 128b/132b (UHBR) rates and for HDMI FRL the port clock needs to
> > be modified.
> > On silicon DDI_CLK_VALFREQ is a scratch register with no
> > functional impact, so the bug is not observed.
> > Use intel_ddi_link_symbol_clock() to write the correct DDI clock in
> > kHz
> > 
> > Fixes: 5ec58d714935 ("drm/i915/lt_phy: Add .enable_clock hook on DDI")

Next time, please be mindful about the -fixes, stable, and customer trees
and keep new helper in the same patch as the fixes.

Thanks,
Rodrigo.

> > Signed-off-by: Suraj Kandpal <suraj.kandpal@intel.com>
> 
> Reviewed-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
> 
> 
> > ---
> >   drivers/gpu/drm/i915/display/intel_lt_phy.c | 6 ++++--
> >   1 file changed, 4 insertions(+), 2 deletions(-)
> > 
> > diff --git a/drivers/gpu/drm/i915/display/intel_lt_phy.c b/drivers/gpu/drm/i915/display/intel_lt_phy.c
> > index 8fc6d230493f..86492651b01d 100644
> > --- a/drivers/gpu/drm/i915/display/intel_lt_phy.c
> > +++ b/drivers/gpu/drm/i915/display/intel_lt_phy.c
> > @@ -1976,7 +1976,8 @@ void intel_lt_phy_pll_enable(struct intel_encoder *encoder,
> >   		 * Change. We handle this step in bxt_set_cdclk().
> >   		 */
> >   		/* 10. Program DDI_CLK_VALFREQ to match intended DDI clock frequency. */
> > -		intel_de_write(display, DDI_CLK_VALFREQ(encoder->port), port_clock);
> > +		intel_de_write(display, DDI_CLK_VALFREQ(encoder->port),
> > +			       intel_ddi_link_symbol_clock(encoder, port_clock));
> >   		/* 11. Program PORT_CLOCK_CTL[PCLK PLL Request LN0] = 1. */
> >   		intel_de_rmw(display, XELPDP_PORT_CLOCK_CTL(display, port),
> > @@ -2023,7 +2024,8 @@ void intel_lt_phy_pll_enable(struct intel_encoder *encoder,
> >   			     lane_phy_pulse_status,
> >   			     lane_phy_pulse_status);
> >   	} else {
> > -		intel_de_write(display, DDI_CLK_VALFREQ(encoder->port), port_clock);
> > +		intel_de_write(display, DDI_CLK_VALFREQ(encoder->port),
> > +			       intel_ddi_link_symbol_clock(encoder, port_clock));
> >   	}
> >   	/*

  reply	other threads:[~2026-08-12 17:26 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-11 17:58 [PATCH v2 0/3] Fix value being written to DDI_CLK_VALFREQ Suraj Kandpal
2026-08-11 17:58 ` [PATCH v2 1/3] drm/i915/ddi: add helper to compute DDI clock frequency Suraj Kandpal
2026-08-12  3:43   ` Nautiyal, Ankit K
2026-08-11 17:58 ` [PATCH v2 2/3] drm/i915/cx0: program DDI_CLK_VALFREQ with " Suraj Kandpal
2026-08-12  3:49   ` Nautiyal, Ankit K
2026-08-12  4:24     ` Kandpal, Suraj
2026-08-12  9:03       ` Jani Nikula
2026-08-12  9:11         ` Kandpal, Suraj
2026-08-11 17:58 ` [PATCH v2 3/3] drm/i915/lt_phy: " Suraj Kandpal
2026-08-12  3:50   ` Nautiyal, Ankit K
2026-08-12 17:26     ` Rodrigo Vivi [this message]
2026-08-11 19:39 ` ✓ i915.CI.BAT: success for Fix value being written to DDI_CLK_VALFREQ (rev2) Patchwork
2026-08-12  0:12 ` ✓ 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=anysx7B33SpyqkBR@intel.com \
    --to=rodrigo.vivi@intel.com \
    --cc=ankit.k.nautiyal@intel.com \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=intel-xe@lists.freedesktop.org \
    --cc=suraj.kandpal@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