]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/skl+: Use scaling amount for plane data rate calculation (v4)
authorKumar, Mahesh <mahesh1.kumar@intel.com>
Thu, 19 May 2016 22:03:01 +0000 (15:03 -0700)
committerMatt Roper <matthew.d.roper@intel.com>
Wed, 1 Jun 2016 14:37:39 +0000 (07:37 -0700)
commit99cb33b3feff0f39da645e38633b2831aea36b6a
tree2d8cc813de4a5c31ecf8d6fc5f436be142688a20
parentd251a6cdc42690e4c3dd82a2428f8df959842472
drm/i915/skl+: Use scaling amount for plane data rate calculation (v4)

if downscaling is enabled plane data rate increases according to scaling
amount. take scaling amount under consideration while calculating plane
data rate

v2: Address Matt's comments, where data rate was overridden because of
missing else.

v3 (by Matt):
 - Add braces to 'else' branch to match kernel coding style
 - Adjust final calculation now that skl_plane_downscale_amount()
   returns 16.16 fixed point value instead of a decimal fixed point

v4 (by Matt):
 - Avoid integer overflow by making sure final multiplication is
   treated as 64-bit.

Cc: matthew.d.roper@intel.com
Signed-off-by: Kumar, Mahesh <mahesh1.kumar@intel.com>
Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
Reviewed-by: Kumar Mahesh <mahesh1.kumar@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1463695381-21368-1-git-send-email-matthew.d.roper@intel.com
drivers/gpu/drm/i915/intel_pm.c