Skip to content

Commit 9ca1d10

Browse files
anholtkeith-packard
authored andcommitted
drm/i915: Turn on another required clock gating bit on gen6.
Unlike the previous one, I don't have known testcases it fixes. I'd rather not go through the same debug cycle on whatever testcases those might be. Signed-off-by: Eric Anholt <eric@anholt.net> Cc: stable@kernel.org Signed-off-by: Keith Packard <keithp@keithp.com>
1 parent 406478d commit 9ca1d10

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

‎drivers/gpu/drm/i915/i915_reg.h‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3446,6 +3446,7 @@
34463446

34473447
#define GEN6_UCGCTL2 0x9404
34483448
# define GEN6_RCPBUNIT_CLOCK_GATE_DISABLE (1 << 12)
3449+
# define GEN6_RCCUNIT_CLOCK_GATE_DISABLE (1 << 11)
34493450

34503451
#define GEN6_RPNSWREQ 0xA008
34513452
#define GEN6_TURBO_DISABLE (1<<31)

‎drivers/gpu/drm/i915/intel_display.c‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8154,8 +8154,13 @@ static void gen6_init_clock_gating(struct drm_device *dev)
81548154
* some amount of runtime in the Mesa "fire" demo, and Unigine
81558155
* Sanctuary and Tropics, and apparently anything else with
81568156
* alpha test or pixel discard.
8157+
*
8158+
* According to the spec, bit 11 (RCCUNIT) must also be set,
8159+
* but we didn't debug actual testcases to find it out.
81578160
*/
8158-
I915_WRITE(GEN6_UCGCTL2, GEN6_RCPBUNIT_CLOCK_GATE_DISABLE);
8161+
I915_WRITE(GEN6_UCGCTL2,
8162+
GEN6_RCPBUNIT_CLOCK_GATE_DISABLE |
8163+
GEN6_RCCUNIT_CLOCK_GATE_DISABLE);
81598164

81608165
/*
81618166
* According to the spec the following bits should be

0 commit comments

Comments
 (0)