<div dir="ltr">Thanks, so feel free to use:<div><br></div><div>Reviewed-by: Rodrigo Vivi <<a href="mailto:rodrigo.vivi@intel.com">rodrigo.vivi@intel.com</a>></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Sep 22, 2014 at 6:21 AM, Damien Lespiau <span dir="ltr"><<a href="mailto:damien.lespiau@intel.com" target="_blank">damien.lespiau@intel.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Tue, Sep 16, 2014 at 06:12:04PM -0700, Rodrigo Vivi wrote:<br>
> I believe this patch should remove the gen9 part of<br>
> ilk_get_aux_clock_divider.<br>
<br>
</span>The previous patch changing ilk_get_aux_clock_divider() got removed<br>
entirely.<br>
<span class=""><br>
> Also there it just returns 0, but here it returns 0 or 1 depending on the<br>
> index.<br>
> This also is incoherent with the commit description.<br>
<br>
</span>Yes, when the index is 0, we need to return a non 0 value (chose 1) to<br>
have the code using this vfunc loop once. Then, when the index is<br>
incremented, we return 0 to stop the loop.<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Damien<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
> On Thu, Sep 4, 2014 at 4:26 AM, Damien Lespiau <<a href="mailto:damien.lespiau@intel.com">damien.lespiau@intel.com</a>><br>
> wrote:<br>
><br>
> We need to provide a vfunc that will make the code in intel_dp_aux_ch()<br>
> loop once to start the AUX transaction. The return value (clock divider)<br>
> is unused on SKL, so just return 1.<br>
><br>
> Signed-off-by: Damien Lespiau <<a href="mailto:damien.lespiau@intel.com">damien.lespiau@intel.com</a>><br>
> ---<br>
> drivers/gpu/drm/i915/intel_dp.c | 14 +++++++++++++-<br>
> 1 file changed, 13 insertions(+), 1 deletion(-)<br>
><br>
> diff --git a/drivers/gpu/drm/i915/intel_dp.c<br>
> b/drivers/gpu/drm/i915/intel_dp.c<br>
> index a95fb47..4560ced 100644<br>
> --- a/drivers/gpu/drm/i915/intel_dp.c<br>
> +++ b/drivers/gpu/drm/i915/intel_dp.c<br>
> @@ -489,6 +489,16 @@ static uint32_t vlv_get_aux_clock_divider(struct<br>
> intel_dp *intel_dp, int index)<br>
> return index ? 0 : 100;<br>
> }<br>
><br>
> +static uint32_t skl_get_aux_clock_divider(struct intel_dp *intel_dp,<br>
> int index)<br>
> +{<br>
> + /*<br>
> + * SKL doesn't need us to program the AUX clock divider<br>
> (Hardware will<br>
> + * derive the clock from CDCLK automatically). We still<br>
> implement the<br>
> + * get_aux_clock_divider vfunc to plug-in into the existing<br>
> code.<br>
> + */<br>
> + return index ? 0 : 1;<br>
> +}<br>
> +<br>
> static uint32_t i9xx_get_aux_send_ctl(struct intel_dp *intel_dp,<br>
> bool has_aux_irq,<br>
> int send_bytes,<br>
> @@ -4726,7 +4736,9 @@ intel_dp_init_connector(struct intel_digital_port<br>
> *intel_dig_port,<br>
> int type;<br>
><br>
> /* intel_dp vfuncs */<br>
> - if (IS_VALLEYVIEW(dev))<br>
> + if (INTEL_INFO(dev)->gen >= 9)<br>
> + intel_dp->get_aux_clock_divider =<br>
> skl_get_aux_clock_divider;<br>
> + else if (IS_VALLEYVIEW(dev))<br>
> intel_dp->get_aux_clock_divider =<br>
> vlv_get_aux_clock_divider;<br>
> else if (IS_HASWELL(dev) || IS_BROADWELL(dev))<br>
> intel_dp->get_aux_clock_divider =<br>
> hsw_get_aux_clock_divider;<br>
> --<br>
> 1.8.3.1<br>
><br>
> _______________________________________________<br>
> Intel-gfx mailing list<br>
> <a href="mailto:Intel-gfx@lists.freedesktop.org">Intel-gfx@lists.freedesktop.org</a><br>
> <a href="http://lists.freedesktop.org/mailman/listinfo/intel-gfx" target="_blank">http://lists.freedesktop.org/mailman/listinfo/intel-gfx</a><br>
><br>
> --<br>
> Rodrigo Vivi<br>
> Blog: <a href="http://blog.vivi.eng.br" target="_blank">http://blog.vivi.eng.br</a><br>
><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div>Rodrigo Vivi</div><div>Blog: <a href="http://blog.vivi.eng.br" target="_blank">http://blog.vivi.eng.br</a></div><div> </div>
</div>