All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jani Nikula <jani.nikula@linux.intel.com>
To: Ville Syrjala <ville.syrjala@linux.intel.com>,
	intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH 2/3] drm/i915/dsi: Don't set/read the DSI C clock divider on GLK
Date: Fri, 04 Apr 2025 16:21:03 +0300	[thread overview]
Message-ID: <87cydsyse8.fsf@intel.com> (raw)
In-Reply-To: <20250314150136.22564-2-ville.syrjala@linux.intel.com>

On Fri, 14 Mar 2025, Ville Syrjala <ville.syrjala@linux.intel.com> wrote:
> From: Ville Syrjälä <ville.syrjala@linux.intel.com>
>
> GLK doesn't use the DSI C clock at all, no need to program
> the divider for it. Bspec even says: "Do not program this field".
>
> However looks like some firmware versions program this and
> some do not. In order to avoid bogus fastset mismatches
> we should also filter it out during readout.
>
> Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
> ---
>  drivers/gpu/drm/i915/display/vlv_dsi_pll.c | 6 +++++-
>  1 file changed, 5 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/i915/display/vlv_dsi_pll.c b/drivers/gpu/drm/i915/display/vlv_dsi_pll.c
> index 2ed47e7d1051..0c88924bc2cd 100644
> --- a/drivers/gpu/drm/i915/display/vlv_dsi_pll.c
> +++ b/drivers/gpu/drm/i915/display/vlv_dsi_pll.c
> @@ -356,6 +356,8 @@ u32 bxt_dsi_get_pclk(struct intel_encoder *encoder,
>  	u32 pclk;
>  
>  	config->dsi_pll.ctrl = intel_de_read(dev_priv, BXT_DSI_PLL_CTL);
> +	if (IS_GEMINILAKE(dev_priv))
> +		config->dsi_pll.ctrl &= ~BXT_DSIC_16X_BY2;

~BXT_DSIC_16X_MASK ?

Other than that,

Reviewed-by: Jani Nikula <jani.nikula@intel.com>

Also needs a rebase on struct intel_display changes...


>  
>  	pclk = bxt_dsi_pclk(encoder, config);
>  
> @@ -514,7 +516,9 @@ int bxt_dsi_pll_compute(struct intel_encoder *encoder,
>  	 * Spec says both have to be programmed, even if one is not getting
>  	 * used. Configure MIPI_CLOCK_CTL dividers in modeset
>  	 */
> -	config->dsi_pll.ctrl = dsi_ratio | BXT_DSIA_16X_BY2 | BXT_DSIC_16X_BY2;
> +	config->dsi_pll.ctrl = dsi_ratio | BXT_DSIA_16X_BY2;
> +	if (!IS_GEMINILAKE(dev_priv))
> +		config->dsi_pll.ctrl |= BXT_DSIC_16X_BY2;
>  
>  	/* As per recommendation from hardware team,
>  	 * Prog PVD ratio =1 if dsi ratio <= 50

-- 
Jani Nikula, Intel

  reply	other threads:[~2025-04-04 13:21 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-03-14 15:01 [PATCH 1/3] drm/i915/dsi: Fix off by one in BXT_MIPI_TRANS_VTOTAL Ville Syrjala
2025-03-14 15:01 ` [PATCH 2/3] drm/i915/dsi: Don't set/read the DSI C clock divider on GLK Ville Syrjala
2025-04-04 13:21   ` Jani Nikula [this message]
2025-03-14 15:01 ` [PATCH 3/3] drm/i915/dsi: Assert that vfp+vsync+vbp == vtotal on BXT/GLK Ville Syrjala
2025-04-04 13:21   ` Jani Nikula
2025-03-14 19:19 ` ✗ Fi.CI.CHECKPATCH: warning for series starting with [1/3] drm/i915/dsi: Fix off by one in BXT_MIPI_TRANS_VTOTAL Patchwork
2025-03-14 19:19 ` ✗ Fi.CI.SPARSE: " Patchwork
2025-03-14 19:41 ` ✓ i915.CI.BAT: success " Patchwork
2025-03-19 16:28 ` ✗ i915.CI.Full: failure " Patchwork
2025-04-04 13:13 ` [PATCH 1/3] " Jani Nikula
2025-04-04 13:14   ` Jani Nikula

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=87cydsyse8.fsf@intel.com \
    --to=jani.nikula@linux.intel.com \
    --cc=intel-gfx@lists.freedesktop.org \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.