aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/i915_reg.h
diff options
context:
space:
mode:
authorJesse Barnes <jbarnes@virtuousgeek.org>2013-09-26 20:55:58 -0400
committerDaniel Vetter <daniel.vetter@ffwll.ch>2013-10-01 01:45:44 -0400
commite454a05da623c26544721b159caaacdb6dfe448c (patch)
treeb7d34646a994884941f515b452a8cad00839b431 /drivers/gpu/drm/i915/i915_reg.h
parent49798eb2fe7240900d0a22a4e8d2b8e2f2ea6684 (diff)
drm/i915/vlv: use correct units for rc6 residency v2
We need to use the clock control reg to figure out how many CZ clks are in 30ns and use that as the basis for our RC6 residency calculations. v2: use ULL everywhere for consistency (Chris) factor out bias for clarity (Chris) References: https://bugs.freedesktop.org/show_bug.cgi?id=69692 Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org> Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/i915_reg.h')
-rw-r--r--drivers/gpu/drm/i915/i915_reg.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_reg.h b/drivers/gpu/drm/i915/i915_reg.h
index c15cc749ca2c..96fd2ce6aa02 100644
--- a/drivers/gpu/drm/i915/i915_reg.h
+++ b/drivers/gpu/drm/i915/i915_reg.h
@@ -1805,6 +1805,9 @@
1805 */ 1805 */
1806#define HSW_CXT_TOTAL_SIZE (17 * PAGE_SIZE) 1806#define HSW_CXT_TOTAL_SIZE (17 * PAGE_SIZE)
1807 1807
1808#define VLV_CLK_CTL2 0x101104
1809#define CLK_CTL2_CZCOUNT_30NS_SHIFT 28
1810
1808/* 1811/*
1809 * Overlay regs 1812 * Overlay regs
1810 */ 1813 */