[Intel-gfx] [PATCH 06/10] drm/i915: Round to closest when computing the VGA dotclock for LPT-H
Paulo Zanoni
przanoni at gmail.com
Wed Dec 2 05:45:32 PST 2015
2015-12-01 11:08 GMT-02:00 <ville.syrjala at linux.intel.com>:
> From: Ville Syrjälä <ville.syrjala at linux.intel.com>
>
> Bspec says we should round to closest when computong the LPT-H VGA
s/computong/computing/
Reviewed-by: Paulo Zanoni <paulo.r.zanoni at intel.com>
> dotclock, so let's do that.
>
> Signed-off-by: Ville Syrjälä <ville.syrjala at linux.intel.com>
> ---
> drivers/gpu/drm/i915/intel_display.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
> index c429029e3bed..55419e4d032c 100644
> --- a/drivers/gpu/drm/i915/intel_display.c
> +++ b/drivers/gpu/drm/i915/intel_display.c
> @@ -3976,7 +3976,7 @@ static void lpt_program_iclkip(struct drm_crtc *crtc)
> u32 iclk_pi_range = 64;
> u32 desired_divisor, msb_divisor_value, pi_value;
>
> - desired_divisor = (iclk_virtual_root_freq / clock);
> + desired_divisor = DIV_ROUND_CLOSEST(iclk_virtual_root_freq, clock);
> msb_divisor_value = desired_divisor / iclk_pi_range;
> pi_value = desired_divisor % iclk_pi_range;
>
> --
> 2.4.10
>
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/intel-gfx
--
Paulo Zanoni
More information about the Intel-gfx
mailing list