drm/i915/bxt: limit WaDisableMaskBasedCammingInRCC to stepping A
authorImre Deak <imre.deak@intel.com>
Tue, 19 May 2015 12:04:59 +0000 (15:04 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 20 May 2015 09:26:10 +0000 (11:26 +0200)
Also make the WA comment consistent with the rest, where the stepping
info is not shown.

Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: Damien Lespiau <damien.lespiau@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_ringbuffer.c

index 9b96ed7de9bbb79284a666c376abb70ba0b91c94..461b9befa776945cca24470932eb5430e3986830 100644 (file)
@@ -961,12 +961,9 @@ static int gen9_init_workarounds(struct intel_engine_cs *ring)
        WA_CLR_BIT_MASKED(GEN9_HALF_SLICE_CHICKEN5,
                          GEN9_CCS_TLB_PREFETCH_ENABLE);
 
-       /*
-        * FIXME: don't apply the following on BXT for stepping C. On BXT A0
-        * the flag reads back as 0.
-        */
-       /* WaDisableMaskBasedCammingInRCC:sklC,bxtA */
-       if (INTEL_REVID(dev) == SKL_REVID_C0 || IS_BROXTON(dev))
+       /* WaDisableMaskBasedCammingInRCC:skl,bxt */
+       if ((IS_SKYLAKE(dev) && INTEL_REVID(dev) == SKL_REVID_C0) ||
+           (IS_BROXTON(dev) && INTEL_REVID(dev) < BXT_REVID_B0))
                WA_SET_BIT_MASKED(SLICE_ECO_CHICKEN0,
                                  PIXEL_MASK_CAMMING_DISABLE);