Skip to content

Commit 8f9940d

Browse files
anholtgregkh
authored andcommitted
drm/i915: Turn on another required clock gating bit on gen6.
commit 9ca1d10 upstream. 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> Signed-off-by: Keith Packard <keithp@keithp.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
1 parent 9bdbb71 commit 8f9940d

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
@@ -3403,6 +3403,7 @@
34033403

34043404
#define GEN6_UCGCTL2 0x9404
34053405
# define GEN6_RCPBUNIT_CLOCK_GATE_DISABLE (1 << 12)
3406+
# define GEN6_RCCUNIT_CLOCK_GATE_DISABLE (1 << 11)
34063407

34073408
#define GEN6_RPNSWREQ 0xA008
34083409
#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
@@ -7888,8 +7888,13 @@ static void gen6_init_clock_gating(struct drm_device *dev)
78887888
* some amount of runtime in the Mesa "fire" demo, and Unigine
78897889
* Sanctuary and Tropics, and apparently anything else with
78907890
* alpha test or pixel discard.
7891+
*
7892+
* According to the spec, bit 11 (RCCUNIT) must also be set,
7893+
* but we didn't debug actual testcases to find it out.
78917894
*/
7892-
I915_WRITE(GEN6_UCGCTL2, GEN6_RCPBUNIT_CLOCK_GATE_DISABLE);
7895+
I915_WRITE(GEN6_UCGCTL2,
7896+
GEN6_RCPBUNIT_CLOCK_GATE_DISABLE |
7897+
GEN6_RCCUNIT_CLOCK_GATE_DISABLE);
78937898

78947899
/*
78957900
* According to the spec the following bits should be

0 commit comments

Comments
 (0)