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: next-20130220~64^2~20 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=512f6ed3bab157a2053def52b0ae45fb4950ef21;p=karo-tx-linux.git drm/i915: Use HAS_L3_GPU_CACHE in i915_gem_l3_remap 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ä Cc: stable@vger.kernel.org Reviewed-by: Ben Widawsky Signed-off-by: Daniel Vetter --- diff --git a/drivers/gpu/drm/i915/i915_gem.c b/drivers/gpu/drm/i915/i915_gem.c index a3678018af36..8413ffced815 100644 --- a/drivers/gpu/drm/i915/i915_gem.c +++ b/drivers/gpu/drm/i915/i915_gem.c @@ -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)