Commit 68c6198b authored by Arun Siluvery's avatar Arun Siluvery Committed by Daniel Vetter

drm/i915/gen8: Move INSTPM WA to common function

Signed-off-by: default avatarArun Siluvery <arun.siluvery@linux.intel.com>
Reviewed-by: default avatarVille Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
parent e9a64ada
...@@ -802,6 +802,10 @@ static int wa_add(struct drm_i915_private *dev_priv, ...@@ -802,6 +802,10 @@ static int wa_add(struct drm_i915_private *dev_priv,
static int gen8_init_workarounds(struct intel_engine_cs *ring) static int gen8_init_workarounds(struct intel_engine_cs *ring)
{ {
struct drm_device *dev = ring->dev;
struct drm_i915_private *dev_priv = dev->dev_private;
WA_SET_BIT_MASKED(INSTPM, INSTPM_FORCE_ORDERING);
return 0; return 0;
} }
...@@ -816,8 +820,6 @@ static int bdw_init_workarounds(struct intel_engine_cs *ring) ...@@ -816,8 +820,6 @@ static int bdw_init_workarounds(struct intel_engine_cs *ring)
if (ret) if (ret)
return ret; return ret;
WA_SET_BIT_MASKED(INSTPM, INSTPM_FORCE_ORDERING);
/* WaDisableAsyncFlipPerfMode:bdw */ /* WaDisableAsyncFlipPerfMode:bdw */
WA_SET_BIT_MASKED(MI_MODE, ASYNC_FLIP_PERF_DISABLE); WA_SET_BIT_MASKED(MI_MODE, ASYNC_FLIP_PERF_DISABLE);
...@@ -887,8 +889,6 @@ static int chv_init_workarounds(struct intel_engine_cs *ring) ...@@ -887,8 +889,6 @@ static int chv_init_workarounds(struct intel_engine_cs *ring)
if (ret) if (ret)
return ret; return ret;
WA_SET_BIT_MASKED(INSTPM, INSTPM_FORCE_ORDERING);
/* WaDisableAsyncFlipPerfMode:chv */ /* WaDisableAsyncFlipPerfMode:chv */
WA_SET_BIT_MASKED(MI_MODE, ASYNC_FLIP_PERF_DISABLE); WA_SET_BIT_MASKED(MI_MODE, ASYNC_FLIP_PERF_DISABLE);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment