]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Fix potential overflows in ilk ips calculations
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 21 Oct 2020 13:14:41 +0000 (16:14 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 21 Oct 2020 20:20:19 +0000 (23:20 +0300)
commit48447b7566f39be60998a7f9a32232b520085653
tree7b4819819cacbf6f7f47b2f7b079119cd90a8e1f
parent993fa8a33c8262efacf55e7a7c666c455a164f21
drm/i915: Fix potential overflows in ilk ips calculations

A bunch of the ips calculations require 64bit math. In particular
'corr' and 'corr2' look like they can overflow on 32bit systems.
Switch to explicit u64 for those.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20201021131443.25616-3-ville.syrjala@linux.intel.com
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
drivers/gpu/drm/i915/gt/intel_rps.c