From: Jani Nikula <jani.nikula@intel.com>
To: Vandita Kulkarni <vandita.kulkarni@intel.com>,
intel-gfx@lists.freedesktop.org
Cc: ville.syrjala@intel.com
Subject: Re: [PATCH 1/6] drm/i915/icl: Calculate DPLL params for DSI
Date: Tue, 27 Nov 2018 12:14:41 +0200 [thread overview]
Message-ID: <87bm6abze6.fsf@intel.com> (raw)
In-Reply-To: <1543311548-19149-2-git-send-email-vandita.kulkarni@intel.com>
On Tue, 27 Nov 2018, Vandita Kulkarni <vandita.kulkarni@intel.com> wrote:
> From: Madhav Chauhan <madhav.chauhan@intel.com>
>
> This patch calculates various DPLL dividers and
> parameters for DSI encoder and adjust AFE clock
> for DSI. For DSI, 8x clock is AFE clock.
>
> v2: Extend haswell_crtc_compute_clock() for Gen11 DSI
>
> v3: Rebase
>
> v4: use port clock instead of bitrate.
>
> v5: Reabse and remove divide by 5
>
> Signed-off-by: Madhav Chauhan <madhav.chauhan@intel.com>
> Signed-off-by: Vandita Kulkarni <vandita.kulkarni@intel.com>
> ---
> drivers/gpu/drm/i915/intel_display.c | 4 +++-
> drivers/gpu/drm/i915/intel_dpll_mgr.c | 6 +++---
> 2 files changed, 6 insertions(+), 4 deletions(-)
>
> diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
> index 27bdf91..1318faf 100644
> --- a/drivers/gpu/drm/i915/intel_display.c
> +++ b/drivers/gpu/drm/i915/intel_display.c
> @@ -9303,10 +9303,12 @@ void hsw_disable_pc8(struct drm_i915_private *dev_priv)
> static int haswell_crtc_compute_clock(struct intel_crtc *crtc,
> struct intel_crtc_state *crtc_state)
> {
> + struct drm_i915_private *dev_priv = to_i915(crtc->base.dev);
> struct intel_atomic_state *state =
> to_intel_atomic_state(crtc_state->base.state);
>
> - if (!intel_crtc_has_type(crtc_state, INTEL_OUTPUT_DSI)) {
> + if (!intel_crtc_has_type(crtc_state, INTEL_OUTPUT_DSI) ||
> + IS_ICELAKE(dev_priv)) {
> struct intel_encoder *encoder =
> intel_get_crtc_new_encoder(state, crtc_state);
>
> diff --git a/drivers/gpu/drm/i915/intel_dpll_mgr.c b/drivers/gpu/drm/i915/intel_dpll_mgr.c
> index 901e150..e3cb0db 100644
> --- a/drivers/gpu/drm/i915/intel_dpll_mgr.c
> +++ b/drivers/gpu/drm/i915/intel_dpll_mgr.c
> @@ -2523,10 +2523,10 @@ static bool icl_calc_dpll_state(struct intel_crtc_state *crtc_state,
>
> if (intel_port_is_tc(dev_priv, encoder->port))
> ret = icl_calc_tbt_pll(dev_priv, clock, &pll_params);
> - else if (intel_crtc_has_type(crtc_state, INTEL_OUTPUT_HDMI))
> - ret = cnl_ddi_calculate_wrpll(clock, dev_priv, &pll_params);
> - else
> + else if (intel_crtc_has_type(crtc_state, INTEL_OUTPUT_DP))
I think this breaks EDP and DP MST. Probably just safest to add
|| intel_crtc_has_type(crtc_state, INTEL_OUTPUT_DSI)
alongside the HDMI branch.
BR,
Jani.
> ret = icl_calc_dp_combo_pll(dev_priv, clock, &pll_params);
> + else
> + ret = cnl_ddi_calculate_wrpll(clock, dev_priv, &pll_params);
>
> if (!ret)
> return false;
--
Jani Nikula, Intel Open Source Graphics Center
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
next prev parent reply other threads:[~2018-11-27 10:14 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-11-27 9:39 [PATCH 0/6] ICL DSI PLL enable Vandita Kulkarni
2018-11-27 9:39 ` [PATCH 1/6] drm/i915/icl: Calculate DPLL params for DSI Vandita Kulkarni
2018-11-27 10:14 ` Jani Nikula [this message]
2018-11-27 10:43 ` Chauhan, Madhav
2018-11-27 9:39 ` [PATCH 2/6] drm/i915/icl: Use the same pll functions for dsi Vandita Kulkarni
2018-11-27 10:48 ` Chauhan, Madhav
2018-11-27 9:39 ` [PATCH 3/6] drm/i915/icl: Get port clock from pll Vandita Kulkarni
2018-11-27 11:02 ` Chauhan, Madhav
2018-11-27 9:39 ` [PATCH 4/6] drm/i915/icl: Gate clocks for DSI Vandita Kulkarni
2018-11-27 14:06 ` Imre Deak
2018-11-27 14:49 ` Imre Deak
2018-11-27 9:39 ` [PATCH 5/6] drm/i915/icl: Ungate DSI clocks Vandita Kulkarni
2018-11-27 9:39 ` [PATCH 6/6] drm/i915/icl: Update port clock in compute config Vandita Kulkarni
2018-11-27 11:20 ` Chauhan, Madhav
2018-11-27 10:08 ` ✗ Fi.CI.BAT: failure for ICL DSI PLL enable (rev2) Patchwork
2018-11-27 11:27 ` [PATCH 0/6] ICL DSI PLL enable Chauhan, Madhav
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=87bm6abze6.fsf@intel.com \
--to=jani.nikula@intel.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=vandita.kulkarni@intel.com \
--cc=ville.syrjala@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