]> git.karo-electronics.de Git - linux-beck.git/commitdiff
drm/i915: Disable semaphore wait event idle message on BDW
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 27 Feb 2014 19:59:01 +0000 (21:59 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 5 Mar 2014 20:30:33 +0000 (21:30 +0100)
According to BSpec we need to always set this magic bit in ring buffer
mode.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Mika Kuoppala <mika.kuoppala@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_reg.h
drivers/gpu/drm/i915/intel_pm.c

index aa8390978e636675fad5d3907fdf238eba7f1327..d11a9ea5884d5136f93451ab977c7d547757e9d9 100644 (file)
 #define   GEN6_BLITTER_LOCK_SHIFT                      16
 #define   GEN6_BLITTER_FBC_NOTIFY                      (1<<3)
 
+#define GEN6_RC_SLEEP_PSMI_CONTROL     0x2050
+#define   GEN8_RC_SEMA_IDLE_MSG_DISABLE        (1 << 12)
+
 #define GEN6_BSD_SLEEP_PSMI_CONTROL    0x12050
 #define   GEN6_BSD_SLEEP_MSG_DISABLE   (1 << 0)
 #define   GEN6_BSD_SLEEP_FLUSH_DISABLE (1 << 2)
index bb2ca355c1b051bb9b66237963916efa0baca5e3..739eabc814e9119a9ed4f6989bfb36432d9150b9 100644 (file)
@@ -4867,6 +4867,9 @@ static void gen8_init_clock_gating(struct drm_device *dev)
         */
        I915_WRITE(GEN7_GT_MODE,
                   GEN6_WIZ_HASHING_MASK | GEN6_WIZ_HASHING_16x4);
+
+       I915_WRITE(GEN6_RC_SLEEP_PSMI_CONTROL,
+                  _MASKED_BIT_ENABLE(GEN8_RC_SEMA_IDLE_MSG_DISABLE));
 }
 
 static void haswell_init_clock_gating(struct drm_device *dev)