* [PATCH] drm/i915: enable ring freq scaling, RC6 and graphics turbo on Ivy Bridge
@ 2011-06-29 19:16 Jesse Barnes
2011-06-29 20:28 ` Keith Packard
0 siblings, 1 reply; 3+ messages in thread
From: Jesse Barnes @ 2011-06-29 19:16 UTC (permalink / raw)
To: intel-gfx
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
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
---
drivers/gpu/drm/i915/i915_debugfs.c | 4 ++--
drivers/gpu/drm/i915/intel_display.c | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/gpu/drm/i915/i915_debugfs.c b/drivers/gpu/drm/i915/i915_debugfs.c
index 8a5a032..ed62730 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)
MEMSTAT_VID_SHIFT);
seq_printf(m, "Current P-state: %d\n",
(rgvstat & MEMSTAT_PSTATE_MASK) >> MEMSTAT_PSTATE_SHIFT);
- } else if (IS_GEN6(dev)) {
+ } else if (IS_GEN6(dev) || IS_GEN7(dev)) {
u32 gt_perf_status = I915_READ(GEN6_GT_PERF_STATUS);
u32 rp_state_limits = I915_READ(GEN6_RP_STATE_LIMITS);
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)
int ret;
int gpu_freq, ia_freq;
- if (!IS_GEN6(dev)) {
+ if (!(IS_GEN6(dev) || IS_GEN7(dev))) {
seq_printf(m, "unsupported on this chipset\n");
return 0;
}
diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
index 30dc105..c5cd042 100644
--- a/drivers/gpu/drm/i915/intel_display.c
+++ b/drivers/gpu/drm/i915/intel_display.c
@@ -7980,7 +7980,7 @@ void intel_modeset_init(struct drm_device *dev)
intel_init_emon(dev);
}
- if (IS_GEN6(dev))
+ if (IS_GEN6(dev) || IS_GEN7(dev)) {
gen6_enable_rps(dev_priv);
gen6_update_ring_freq(dev_priv);
}
@@ -8024,7 +8024,7 @@ void intel_modeset_cleanup(struct drm_device *dev)
if (IS_IRONLAKE_M(dev))
ironlake_disable_drps(dev);
- if (IS_GEN6(dev))
+ if (IS_GEN6(dev) || IS_GEN7(dev))
gen6_disable_rps(dev);
if (IS_IRONLAKE_M(dev))
--
1.7.4.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] drm/i915: enable ring freq scaling, RC6 and graphics turbo on Ivy Bridge
2011-06-29 19:16 [PATCH] drm/i915: enable ring freq scaling, RC6 and graphics turbo on Ivy Bridge Jesse Barnes
@ 2011-06-29 20:28 ` Keith Packard
2011-06-29 20:35 ` Jesse Barnes
0 siblings, 1 reply; 3+ messages in thread
From: Keith Packard @ 2011-06-29 20:28 UTC (permalink / raw)
To: Jesse Barnes, intel-gfx
[-- Attachment #1.1: Type: text/plain, Size: 261 bytes --]
On Wed, 29 Jun 2011 12:16:31 -0700, Jesse Barnes <jbarnes@virtuousgeek.org> wrote:
> They use the same register interfaces, so we can simply enable the
> existing code on IVB.
This doesn't apply cleanly to drm-intel-next
--
keith.packard@intel.com
[-- Attachment #1.2: Type: application/pgp-signature, Size: 189 bytes --]
[-- Attachment #2: Type: text/plain, Size: 159 bytes --]
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] drm/i915: enable ring freq scaling, RC6 and graphics turbo on Ivy Bridge
2011-06-29 20:28 ` Keith Packard
@ 2011-06-29 20:35 ` Jesse Barnes
0 siblings, 0 replies; 3+ messages in thread
From: Jesse Barnes @ 2011-06-29 20:35 UTC (permalink / raw)
To: Keith Packard; +Cc: intel-gfx
On Wed, 29 Jun 2011 13:28:58 -0700
Keith Packard <keithp@keithp.com> wrote:
> On Wed, 29 Jun 2011 12:16:31 -0700, Jesse Barnes <jbarnes@virtuousgeek.org> wrote:
>
> > They use the same register interfaces, so we can simply enable the
> > existing code on IVB.
>
> This doesn't apply cleanly to drm-intel-next
v3 should apply to d-i-n; I had cherry picked to create one that would
apply but must have messed up the hunks.
--
Jesse Barnes, Intel Open Source Technology Center
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-06-29 20:35 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-29 19:16 [PATCH] drm/i915: enable ring freq scaling, RC6 and graphics turbo on Ivy Bridge Jesse Barnes
2011-06-29 20:28 ` Keith Packard
2011-06-29 20:35 ` Jesse Barnes
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.