drm/i915: Set INSTPM_FORCE_ORDERING via LRI on gen8, drop it on gen9+
INSTPM is saved in the logical context so we should initialize it using LRIs on gen8. It actually defaults to 1 starting from HSW, but let's keep the write around anyway. Also drop the INSTPM_FORCE_ORDERING setup entirely on gen9+ since it's now a reserved bit. Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Reviewed-by: Damien Lespiau <damien.lespiau@intel.com> Signed-off-by: Jani Nikula <jani.nikula@intel.com>
This commit is contained in:
Родитель
64987fc59d
Коммит
9cc8302061
|
@ -800,6 +800,8 @@ static int bdw_init_workarounds(struct intel_engine_cs *ring)
|
||||||
struct drm_device *dev = ring->dev;
|
struct drm_device *dev = ring->dev;
|
||||||
struct drm_i915_private *dev_priv = dev->dev_private;
|
struct drm_i915_private *dev_priv = dev->dev_private;
|
||||||
|
|
||||||
|
WA_SET_BIT_MASKED(INSTPM, INSTPM_FORCE_ORDERING);
|
||||||
|
|
||||||
/* WaDisablePartialInstShootdown:bdw */
|
/* WaDisablePartialInstShootdown:bdw */
|
||||||
/* WaDisableThreadStallDopClockGating:bdw (pre-production) */
|
/* WaDisableThreadStallDopClockGating:bdw (pre-production) */
|
||||||
WA_SET_BIT_MASKED(GEN8_ROW_CHICKEN,
|
WA_SET_BIT_MASKED(GEN8_ROW_CHICKEN,
|
||||||
|
@ -861,6 +863,8 @@ static int chv_init_workarounds(struct intel_engine_cs *ring)
|
||||||
struct drm_device *dev = ring->dev;
|
struct drm_device *dev = ring->dev;
|
||||||
struct drm_i915_private *dev_priv = dev->dev_private;
|
struct drm_i915_private *dev_priv = dev->dev_private;
|
||||||
|
|
||||||
|
WA_SET_BIT_MASKED(INSTPM, INSTPM_FORCE_ORDERING);
|
||||||
|
|
||||||
/* WaDisablePartialInstShootdown:chv */
|
/* WaDisablePartialInstShootdown:chv */
|
||||||
/* WaDisableThreadStallDopClockGating:chv */
|
/* WaDisableThreadStallDopClockGating:chv */
|
||||||
WA_SET_BIT_MASKED(GEN8_ROW_CHICKEN,
|
WA_SET_BIT_MASKED(GEN8_ROW_CHICKEN,
|
||||||
|
@ -1132,7 +1136,7 @@ static int init_render_ring(struct intel_engine_cs *ring)
|
||||||
_MASKED_BIT_DISABLE(CM0_STC_EVICT_DISABLE_LRA_SNB));
|
_MASKED_BIT_DISABLE(CM0_STC_EVICT_DISABLE_LRA_SNB));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (INTEL_INFO(dev)->gen >= 6)
|
if (INTEL_INFO(dev)->gen >= 6 && INTEL_INFO(dev)->gen < 8)
|
||||||
I915_WRITE(INSTPM, _MASKED_BIT_ENABLE(INSTPM_FORCE_ORDERING));
|
I915_WRITE(INSTPM, _MASKED_BIT_ENABLE(INSTPM_FORCE_ORDERING));
|
||||||
|
|
||||||
if (HAS_L3_DPF(dev))
|
if (HAS_L3_DPF(dev))
|
||||||
|
|
Загрузка…
Ссылка в новой задаче