aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/i915_reg.h
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2013-04-12 14:10:13 -0400
committerDaniel Vetter <daniel.vetter@ffwll.ch>2013-04-18 03:43:26 -0400
commit3ebecd07d382c022e93c560c56114eec1d6d2cdd (patch)
tree279980d6bd4ffa910e67d9c108234d15430d4f5d /drivers/gpu/drm/i915/i915_reg.h
parent3a3b4f984b230d815d9f956f296a6145f1dfebb7 (diff)
drm/i915: Scale ring, rather than ia, frequency on Haswell
Haswell introduces a separate frequency domain for the ring (uncore). So where we used to increase the CPU (IA) clock with GPU busyness, we now need to scale the ring frequency directly instead. As the ring limits our memory bandwidth, it is vital for performance that when the GPU is busy, we increase the frequency of the ring to increase the available memory bandwidth. v2: Fix the algorithm to actually use the scaled gpu frequency for the ring. v3: s/max_ring_freq/min_ring_freq/ as that is what it is Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Cc: Jesse Barnes <jbarnes@virtuousgeek.org> Reviewed-by: Jesse Barnes <jbarnes@virtuousgeek.org> [danvet: Add space checkpatch complained about.] 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.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_reg.h b/drivers/gpu/drm/i915/i915_reg.h
index e0fc0706e034..077d40f37b97 100644
--- a/drivers/gpu/drm/i915/i915_reg.h
+++ b/drivers/gpu/drm/i915/i915_reg.h
@@ -1210,6 +1210,9 @@
1210 1210
1211#define MCHBAR_MIRROR_BASE_SNB 0x140000 1211#define MCHBAR_MIRROR_BASE_SNB 0x140000
1212 1212
1213/* Memory controller frequency in MCHBAR for Haswell (possible SNB+) */
1214#define DCLK 0x5e04
1215
1213/** 915-945 and GM965 MCH register controlling DRAM channel access */ 1216/** 915-945 and GM965 MCH register controlling DRAM channel access */
1214#define DCC 0x10200 1217#define DCC 0x10200
1215#define DCC_ADDRESSING_MODE_SINGLE_CHANNEL (0 << 0) 1218#define DCC_ADDRESSING_MODE_SINGLE_CHANNEL (0 << 0)
@@ -4390,6 +4393,7 @@
4390#define GEN6_DECODE_RC6_VID(vids) (((vids) * 5) + 245) 4393#define GEN6_DECODE_RC6_VID(vids) (((vids) * 5) + 245)
4391#define GEN6_PCODE_DATA 0x138128 4394#define GEN6_PCODE_DATA 0x138128
4392#define GEN6_PCODE_FREQ_IA_RATIO_SHIFT 8 4395#define GEN6_PCODE_FREQ_IA_RATIO_SHIFT 8
4396#define GEN6_PCODE_FREQ_RING_RATIO_SHIFT 16
4393 4397
4394#define VLV_IOSF_DOORBELL_REQ 0x182100 4398#define VLV_IOSF_DOORBELL_REQ 0x182100
4395#define IOSF_DEVFN_SHIFT 24 4399#define IOSF_DEVFN_SHIFT 24