[Intel-gfx] [PATCH 6/9] drm/i915: make intel_ddi_get_cdclk_freq return values in KHz

Chris Wilson chris at chris-wilson.co.uk
Sun May 5 09:20:25 CEST 2013

On Fri, May 03, 2013 at 05:23:42PM -0300, Paulo Zanoni wrote:
> From: Paulo Zanoni <paulo.r.zanoni at intel.com>
> With this, that 338 can finally become the correct 337500.
> Due to the change we need to adjust the intel_dp_aux_ch function to
> set the correct value, so adjust the division and also use
> DIV_ROUND_CLOSEST instead of the old "round down" behavior because the
> spec says the value "should be programmed to get as close as possible
> to the ideal rate of 2MHz".

Can you please demonstrate an instance where this code produces a
different value? And only then correct the constants.

Chris Wilson, Intel Open Source Technology Centre

More information about the Intel-gfx mailing list