From: Daniel Vetter Date: Thu, 14 Feb 2013 18:46:07 +0000 (+0100) Subject: drm/i915: Use HAS_L3_GPU_CACHE in i915_gem_l3_remap X-Git-Tag: v3.8.1~66 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=855fa5781e10efc6f1184a24e85be2847de6d897;p=profile%2Fivi%2Fkernel-adaptation-intel-automotive.git drm/i915: Use HAS_L3_GPU_CACHE in i915_gem_l3_remap commit eb32e4584d8e9d6cbec20550d4f91396de2cdb55 upstream. 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ä Reviewed-by: Ben Widawsky Signed-off-by: Daniel Vetter Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/gpu/drm/i915/i915_gem.c b/drivers/gpu/drm/i915/i915_gem.c index 3a4199f..de45b60 100644 --- a/drivers/gpu/drm/i915/i915_gem.c +++ b/drivers/gpu/drm/i915/i915_gem.c @@ -3845,7 +3845,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)