All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] drm/i915: set more FBC chicken bits
@ 2011-01-17 21:35 Jesse Barnes
  2011-01-17 21:35 ` [PATCH 2/2] drm/i915: make the blitter report buffer modifications to the FBC unit Jesse Barnes
  2011-01-18  9:58 ` [PATCH 1/2] drm/i915: set more FBC chicken bits Chris Wilson
  0 siblings, 2 replies; 6+ messages in thread
From: Jesse Barnes @ 2011-01-17 21:35 UTC (permalink / raw)
  To: intel-gfx

Add a couple of missing workaround bits for ILK & SNB.  These disable
clock gating on a couple of units that would otherwise prevent FBC from
working.

Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
---
 drivers/gpu/drm/i915/i915_reg.h      |    2 ++
 drivers/gpu/drm/i915/intel_display.c |    4 +++-
 2 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/drivers/gpu/drm/i915/i915_reg.h b/drivers/gpu/drm/i915/i915_reg.h
index 40a407f..6abb15f 100644
--- a/drivers/gpu/drm/i915/i915_reg.h
+++ b/drivers/gpu/drm/i915/i915_reg.h
@@ -2626,6 +2626,8 @@
 #define DISPLAY_PORT_PLL_BIOS_2         0x46014
 
 #define PCH_DSPCLK_GATE_D	0x42020
+# define DPFCUNIT_CLOCK_GATE_DISABLE		(1 << 9)
+# define DPFCRUNIT_CLOCK_GATE_DISABLE		(1 << 8)
 # define DPFDUNIT_CLOCK_GATE_DISABLE		(1 << 7)
 # define DPARBUNIT_CLOCK_GATE_DISABLE		(1 << 5)
 
diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
index 25d9688..0ad9499 100644
--- a/drivers/gpu/drm/i915/intel_display.c
+++ b/drivers/gpu/drm/i915/intel_display.c
@@ -6281,7 +6281,9 @@ void intel_enable_clock_gating(struct drm_device *dev)
 
 		if (IS_GEN5(dev)) {
 			/* Required for FBC */
-			dspclk_gate |= DPFDUNIT_CLOCK_GATE_DISABLE;
+			dspclk_gate |= DPFCUNIT_CLOCK_GATE_DISABLE |
+				DPFCRUNIT_CLOCK_GATE_DISABLE |
+				DPFDUNIT_CLOCK_GATE_DISABLE;
 			/* Required for CxSR */
 			dspclk_gate |= DPARBUNIT_CLOCK_GATE_DISABLE;
 
-- 
1.7.1

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2011-01-18 17:34 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-17 21:35 [PATCH 1/2] drm/i915: set more FBC chicken bits Jesse Barnes
2011-01-17 21:35 ` [PATCH 2/2] drm/i915: make the blitter report buffer modifications to the FBC unit Jesse Barnes
2011-01-17 21:38   ` Jesse Barnes
2011-01-18  9:58 ` [PATCH 1/2] drm/i915: set more FBC chicken bits Chris Wilson
2011-01-18 16:36   ` Jesse Barnes
2011-01-18 17:34   ` 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.