drm/i915: WaEnableForceRestoreInCtxtDescForVCS is for video engines only
authorMichel Thierry <[email protected]>
Fri, 4 Sep 2015 11:59:14 +0000 (12:59 +0100)
committerDaniel Vetter <[email protected]>
Mon, 14 Sep 2015 08:24:57 +0000 (10:24 +0200)
Also check for correct revision id in each Gen9 platform (SKL until B0
and BXT until A0).

Cc: Nick Hoath <[email protected]>
Signed-off-by: Michel Thierry <[email protected]>
Reviewed-by: Arun Siluvery <[email protected]>
Tested-by: Daniele Ceraolo Spurio <[email protected]>
Signed-off-by: Daniel Vetter <[email protected]>
drivers/gpu/drm/i915/intel_lrc.c

index 28a712e7d2d04126ab29ff2bdf0c791aff5572cc..d8b605fc4aa9bc79eba5e686d92b40a20a81f88a 100644 (file)
@@ -301,10 +301,10 @@ uint64_t intel_lr_context_descriptor(struct intel_context *ctx,
        /* desc |= GEN8_CTX_FORCE_RESTORE; */
 
        /* WaEnableForceRestoreInCtxtDescForVCS:skl */
-       if (IS_GEN9(dev) &&
-           INTEL_REVID(dev) <= SKL_REVID_B0 &&
-           (ring->id == BCS || ring->id == VCS ||
-           ring->id == VECS || ring->id == VCS2))
+       /* WaEnableForceRestoreInCtxtDescForVCS:bxt */
+       if (((IS_SKYLAKE(dev) && INTEL_REVID(dev) <= SKL_REVID_B0) ||
+            (IS_BROXTON(dev) && INTEL_REVID(dev) == BXT_REVID_A0)) &&
+           (ring->id == VCS || ring->id == VCS2))
                desc |= GEN8_CTX_FORCE_RESTORE;
 
        return desc;