]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Fix threshold for choosing 32 vs. 64 precisions for VLV DDL values
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 27 Jun 2014 21:40:34 +0000 (00:40 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 7 Aug 2014 09:07:22 +0000 (11:07 +0200)
commit898ec8cd3a18e5c2af4e5a434cf8cdfca0d4aa83
tree7e0502982fb9511b95aa691395ed777296c935f5
parentbbae0cd59e419b89ea4aec78e65c28fcfe5a8d2a
drm/i915: Fix threshold for choosing 32 vs. 64 precisions for VLV DDL values

The DDL registers can hold 7bit numbers. Make the most of those seven
bits by adjusting the threshold where we switch between the 64 vs. 32
precision multipliers.

Also we compute 'entries' to make the decision about precision, and then
we recompute the same value to calculate the actual drain latency. Just
use the already calculate 'entries' there.

Reviewed-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_pm.c