drm/i915/skl: Implement WaBarrierPerformanceFixDisable
[deliverable/linux.git] / drivers / gpu / drm / i915 / intel_ringbuffer.c
index 3c66d80d050a093e67ce83746faae2b5a2fb68de..dde0bec7aefdd52820a04edb9347c3bf0d1afe41 100644 (file)
@@ -934,6 +934,13 @@ static int chv_init_workarounds(struct intel_engine_cs *ring)
                            GEN6_WIZ_HASHING_MASK,
                            GEN6_WIZ_HASHING_16x4);
 
+       if (INTEL_REVID(dev) == SKL_REVID_C0 ||
+           INTEL_REVID(dev) == SKL_REVID_D0)
+               /* WaBarrierPerformanceFixDisable:skl */
+               WA_SET_BIT_MASKED(HDC_CHICKEN0,
+                                 HDC_FENCE_DEST_SLM_DISABLE |
+                                 HDC_BARRIER_PERFORMANCE_DISABLE);
+
        return 0;
 }
 
This page took 0.027881 seconds and 5 git commands to generate.