drm/i915: Use HAS_L3_GPU_CACHE in i915_gem_l3_remap
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 14 Feb 2013 18:46:07 +0000 (19:46 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 19 Feb 2013 23:21:47 +0000 (00:21 +0100)
Yet another remnant ... this might explain why l3 remapping didn't
really work on HSW.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=57441
Spotted-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Cc: stable@vger.kernel.org
Reviewed-by: Ben Widawsky <ben@bwidawsk.net>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_gem.c

index a3678018af369216ca59569f2e7059efc46cb948..8413ffced81573c0144aafeac992218755b71cc9 100644 (file)
@@ -3872,7 +3872,7 @@ void i915_gem_l3_remap(struct drm_device *dev)
        u32 misccpctl;
        int i;
 
-       if (!IS_IVYBRIDGE(dev))
+       if (!HAS_L3_GPU_CACHE(dev))
                return;
 
        if (!dev_priv->l3_parity.remap_info)