From: Imre Deak <imre.deak@intel.com>
To: "Kannan, Vandana" <vandana.kannan@intel.com>
Cc: intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH] drm/i915/bxt: Port PLL programming BUN
Date: Tue, 05 May 2015 19:49:10 +0300 [thread overview]
Message-ID: <1430844550.21211.81.camel@intel.com> (raw)
In-Reply-To: <5548F378.5030407@intel.com>
On ti, 2015-05-05 at 22:14 +0530, Kannan, Vandana wrote:
>
> On 5/5/2015 9:14 PM, Imre Deak wrote:
> > On ma, 2015-05-04 at 20:50 +0530, Vandana Kannan wrote:
> >> BUN 1: prop_coeff, int_coeff, tdctargetcnt programming updated and tied to
> >> VCO frequencies. Program i_lockthresh in PORT_PLL_9.
> >>
> >> VCO calculated based on the formula:
> >> Desired Output = Port bit rate in MHz (DisplayPort HBR2 is 5400 MHz)
> >> Fast Clock = Desired Output / 2
> >> VCO = Fast Clock * P1 * P2
> >>
> >> Prop_coeff, int_coeff, and tdctargetcnt modified according to above
> >> calculation.
> >>
> >> BUN 2: Port PLLs require additional programming at certain frequencies -
> >> DCO amplitude in PORT_PLL_10
> >>
> >> Review comments from Siva which were addressed in the initial version of the
> >> patch.
> >> - Change PORT_PLL_LOCK_THRESHOLD to PORT_PLL_LOCK_THRESHOLD_MASK
> >> - Calculate for HDMI
> >> - Correct values for vco = 5.4
> >> - return in case of invalid vco range
> >>
> >> Signed-off-by: Vandana Kannan <vandana.kannan@intel.com>
> >> Cc: Sivakumar Thulasimani <sivakumar.thulasimani@intel.com>
> >> ---
> >> drivers/gpu/drm/i915/i915_drv.h | 2 +-
> >> drivers/gpu/drm/i915/i915_reg.h | 6 ++++
> >> drivers/gpu/drm/i915/intel_ddi.c | 72 +++++++++++++++++++++++++++++++---------
> >> 3 files changed, 63 insertions(+), 17 deletions(-)
> >>
>
> [...]
>
> >>
> >> /* Recalibrate with new settings */
> >> temp = I915_READ(BXT_PORT_PLL_EBB_4(port));
> >> @@ -2415,6 +2454,7 @@ static bool bxt_ddi_pll_get_hw_state(struct drm_i915_private *dev_priv,
> >> hw_state->pll3 = I915_READ(BXT_PORT_PLL(port, 3));
> >> hw_state->pll6 = I915_READ(BXT_PORT_PLL(port, 6));
> >> hw_state->pll8 = I915_READ(BXT_PORT_PLL(port, 8));
> >> + hw_state->pll10 = I915_READ(BXT_PORT_PLL(port, 10));
> >> /*
> >> * While we write to the group register to program all lanes at once we
> >> * can read only lane registers. We configure all lanes the same way, so
> >
> > We should also read out pll10 in bxt_ddi_pll_get_hw_state() for
> > consistency.
> >
> I have added a readout above for pll10 or am I missing something ?
> Agree with all other comments, will resend the patch with the changes made.
Ah sorry, I was blind. Ignore my comment about it.
--Imre
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
prev parent reply other threads:[~2015-05-05 16:49 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-04 15:20 [PATCH] drm/i915/bxt: Port PLL programming BUN Vandana Kannan
2015-05-05 0:13 ` shuang.he
2015-05-05 4:53 ` Sivakumar Thulasimani
2015-05-05 15:44 ` Imre Deak
2015-05-05 16:44 ` Kannan, Vandana
2015-05-05 16:49 ` Imre Deak [this message]
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=1430844550.21211.81.camel@intel.com \
--to=imre.deak@intel.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=vandana.kannan@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.