]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
drm/i915: Fix unsigned overflow when calculating total data rate, v2.
authorMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Mon, 22 Oct 2018 10:20:00 +0000 (12:20 +0200)
committerMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Wed, 24 Oct 2018 08:28:44 +0000 (10:28 +0200)
commit24719e94ca2a9397f1385da4bce6a7adea1868a7
tree037c6e60b76e5b8b4ca341664bf3fde890c83655
parent3aae21fc2ed4e2b6b417e81a0d39bfa590e8510d
drm/i915: Fix unsigned overflow when calculating total data rate, v2.

On gen11, we can definitely smash the 32-bits barrier with just a
when we enable all planes in the next patch.

Changes since v1:
- Use div64_u64 (ickle).

Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20181022102000.30255-1-maarten.lankhorst@linux.intel.com
drivers/gpu/drm/i915/intel_pm.c