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)
commit8d19d7d9dbc25d1a1ffa602ed9eff25a88c98163
tree2d8cc813de4a5c31ecf8d6fc5f436be142688a20
parent9c2f7a9d6081072e762189a7341934d6e235cad6
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
This page took 0.02508 seconds and 5 git commands to generate.