Skip to contentSkip to conversation

drm/i915: enable DOP level clock gating

PATCH In review Ben Widawsky 2 participants 3 messages Apr 22, 2012 – Apr 24, 2012

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/i915: enable DOP level clock gating

Rebased after new intel_pm split. This needs testing from QA to see how it impacts power consumption.

Cc "Zhang, Ouping" <[email protected]>
---
 drivers/gpu/drm/i915/i915_reg.h |    3 +++
 drivers/gpu/drm/i915/intel_pm.c |    4 ++++
 2 files changed, 7 insertions(+)
drivers/gpu/drm/i915/i915_reg.h +3 -0
index 5ac9837..024e390 100644
@@ -4030,6 +4030,9 @@
 #define   GEN6_RC6			3
 #define   GEN6_RC7			4
 
+#define GEN7_MISCCPCTL			0x9424
+#define   GEN7_DOP_CLOCK_GATE_ENABLE	(1<<0)
+
 #define G4X_AUD_VID_DID			0x62020
 #define INTEL_AUDIO_DEVCL		0x808629FB
 #define INTEL_AUDIO_DEVBLC		0x80862801
drivers/gpu/drm/i915/intel_pm.c +4 -0
index 36940a3..188206a 100644
@@ -2776,6 +2776,10 @@ static void ivybridge_init_clock_gating(struct drm_device *dev)
 	}
 
 	gen7_setup_fixed_func_scheduler(dev_priv);
+
+	if (i915_powersave)
+		I915_WRITE(GEN7_MISCCPCTL,
+			I915_READ(GEN7_MISCCPCTL) | GEN7_DOP_CLOCK_GATE_ENABLE);
 }
 
 static void valleyview_init_clock_gating(struct drm_device *dev)
Signature · 1 line
1.7.10
#1 lore raw
Quoted 5 lines · Ben Widawsky

Rebased after new intel_pm split. This needs testing from QA to see how it impacts power consumption.

Cc "Zhang, Ouping" <[email protected]>

I've seen the internal power testing results and nothing seems to change. And you've mentioned in an earlier version of this that this regresses openarena throughput. So I guess I can drop this?
-Daniel

Quoted 41 lines
---
 drivers/gpu/drm/i915/i915_reg.h |    3 +++
 drivers/gpu/drm/i915/intel_pm.c |    4 ++++
 2 files changed, 7 insertions(+)
drivers/gpu/drm/i915/i915_reg.h +3 -0
index 5ac9837..024e390 100644
@@ -4030,6 +4030,9 @@
 #define   GEN6_RC6			3
 #define   GEN6_RC7			4
 
+#define GEN7_MISCCPCTL			0x9424
+#define   GEN7_DOP_CLOCK_GATE_ENABLE	(1<<0)
+
 #define G4X_AUD_VID_DID			0x62020
 #define INTEL_AUDIO_DEVCL		0x808629FB
 #define INTEL_AUDIO_DEVBLC		0x80862801
drivers/gpu/drm/i915/intel_pm.c +4 -0
index 36940a3..188206a 100644
@@ -2776,6 +2776,10 @@ static void ivybridge_init_clock_gating(struct drm_device *dev)
 	}
 
 	gen7_setup_fixed_func_scheduler(dev_priv);
+
+	if (i915_powersave)
+		I915_WRITE(GEN7_MISCCPCTL,
+			I915_READ(GEN7_MISCCPCTL) | GEN7_DOP_CLOCK_GATE_ENABLE);
 }
 
 static void valleyview_init_clock_gating(struct drm_device *dev)
Signature · 6 lines
1.7.10

_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Signature · 3 lines
Daniel Vetter
Mail: [email protected]
Mobile: +41 (0)79 365 57 48
#2 lore raw
Quoted 4 lines · On Tue, 24 Apr 2012 16:03:24 +0200 Daniel Vetter <[email protected]> wrote:
Quoted 3 lines · Ben Widawsky

Rebased after new intel_pm split. This needs testing from QA to see how it impacts power consumption.

Quoted 8 lines
Quoted 2 lines
Cc "Zhang, Ouping" <[email protected]>

I've seen the internal power testing results and nothing seems to change. And you've mentioned in an earlier version of this that this regresses openarena throughput. So I guess I can drop this?
-Daniel

Let's not "drop" it. Put it on the back burner. I'm following up with the design engineers, and may run my own tests. There was surprise by some with the results we got.

Ben