drm/i915: MI_PREDICATE_RESULT_2 is HSW only
Subsystems (2)
PATCH 1/1 drm/i915: MI_PREDICATE_RESULT_2 is HSW only
From: Ville Syrjälä <[email protected]>
The MI_PREDICATE_RESULT_2 register exits only on HSW. On other platforms the same offset is either reserved, or contains some other register. So write the register only on HSW.
--- drivers/gpu/drm/i915/i915_gem.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-)
drivers/gpu/drm/i915/i915_gem.c +3 -4
@@ -4442,10 +4442,9 @@ i915_gem_init_hw(struct drm_device *dev)if (dev_priv->ellc_size)I915_WRITE (HSW_IDICR ,I915_READ (HSW_IDICR ) |IDIHASHMSK (0xf )); -if (IS_HSW_GT3 (dev)) -I915_WRITE (MI_PREDICATE_RESULT_2 ,LOWER_SLICE_ENABLED ); -else -I915_WRITE (MI_PREDICATE_RESULT_2 ,LOWER_SLICE_DISABLED ); +if (IS_HASWELL (dev)) +I915_WRITE (MI_PREDICATE_RESULT_2 ,IS_HSW_GT3 (dev) ? +LOWER_SLICE_ENABLED :LOWER_SLICE_DISABLED );if (HAS_PCH_NOP (dev)) {u32 temp =I915_READ (GEN7_MSG_CTL );
Signature · 6 lines
1.8.3.2 _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 7 lines · On Fri, Nov 29, 2013 at 02:56:12PM +0200, [email protected] wrote:
From: Ville Syrjälä <[email protected]>
The
MI_PREDICATE_RESULT_2register exits only on HSW. On other platforms the same offset is either reserved, or contains some other register. So write the register only on HSW.Signed-off-by Ville Syrjälä <[email protected]>
Couldn't find a conflict, but we all agree that writing to registers that do not exist is just a recipe for disaster.
-Chris
Signature · 1 line
Chris Wilson, Intel Open Source Technology Centre
Quoted 7 lines · Chris Wilson
Quoted 6 lines · On Fri, Nov 29, 2013 at 02:56:12PM +0200, [email protected] wrote:
From: Ville Syrjälä <[email protected]>
The
MI_PREDICATE_RESULT_2register exits only on HSW. On other platforms the same offset is either reserved, or contains some other register. So write the register only on HSW.
Quoted 6 lines
Quoted 1 line
Signed-off-by Ville Syrjälä <[email protected]>Couldn't find a conflict, but we all agree that writing to registers that do not exist is just a recipe for disaster.
Reviewed-by Chris Wilson <[email protected]>
Oops, actually merged this one but then accidentally replied to the vmap fix. Both are now in -fixes.
-Daniel
Signature · 3 lines
Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch