diff options
author | Jesse Barnes <jbarnes@virtuousgeek.org> | 2011-06-29 16:34:36 -0400 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2011-06-29 16:47:29 -0400 |
commit | 1c70c0cebd1295a42fec75045b8a6b4419cedef3 (patch) | |
tree | 4d647dcde647e0852736aa356ca4f4fc13a0085a /drivers/gpu/drm/i915/i915_debugfs.c | |
parent | 8eb2c0ee67f4853c0e433394f65ef8143a748c80 (diff) |
drm/i915: enable ring freq scaling, RC6 and graphics turbo on Ivy Bridge v3
They use the same register interfaces, so we can simply enable the
existing code on IVB.
v2:
- resolve conflict with ring freq scaling, we can enable it too
v3:
- resolve conflict again, this time on drm-intel-next
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'drivers/gpu/drm/i915/i915_debugfs.c')
-rw-r--r-- | drivers/gpu/drm/i915/i915_debugfs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/i915/i915_debugfs.c b/drivers/gpu/drm/i915/i915_debugfs.c index 8a5a032ec696..ed627307ab51 100644 --- a/drivers/gpu/drm/i915/i915_debugfs.c +++ b/drivers/gpu/drm/i915/i915_debugfs.c | |||
@@ -865,7 +865,7 @@ static int i915_cur_delayinfo(struct seq_file *m, void *unused) | |||
865 | MEMSTAT_VID_SHIFT); | 865 | MEMSTAT_VID_SHIFT); |
866 | seq_printf(m, "Current P-state: %d\n", | 866 | seq_printf(m, "Current P-state: %d\n", |
867 | (rgvstat & MEMSTAT_PSTATE_MASK) >> MEMSTAT_PSTATE_SHIFT); | 867 | (rgvstat & MEMSTAT_PSTATE_MASK) >> MEMSTAT_PSTATE_SHIFT); |
868 | } else if (IS_GEN6(dev)) { | 868 | } else if (IS_GEN6(dev) || IS_GEN7(dev)) { |
869 | u32 gt_perf_status = I915_READ(GEN6_GT_PERF_STATUS); | 869 | u32 gt_perf_status = I915_READ(GEN6_GT_PERF_STATUS); |
870 | u32 rp_state_limits = I915_READ(GEN6_RP_STATE_LIMITS); | 870 | u32 rp_state_limits = I915_READ(GEN6_RP_STATE_LIMITS); |
871 | u32 rp_state_cap = I915_READ(GEN6_RP_STATE_CAP); | 871 | u32 rp_state_cap = I915_READ(GEN6_RP_STATE_CAP); |
@@ -1131,7 +1131,7 @@ static int i915_ring_freq_table(struct seq_file *m, void *unused) | |||
1131 | int ret; | 1131 | int ret; |
1132 | int gpu_freq, ia_freq; | 1132 | int gpu_freq, ia_freq; |
1133 | 1133 | ||
1134 | if (!IS_GEN6(dev)) { | 1134 | if (!(IS_GEN6(dev) || IS_GEN7(dev))) { |
1135 | seq_printf(m, "unsupported on this chipset\n"); | 1135 | seq_printf(m, "unsupported on this chipset\n"); |
1136 | return 0; | 1136 | return 0; |
1137 | } | 1137 | } |