From patchwork Thu Feb 14 18:46:07 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Daniel Vetter X-Patchwork-Id: 2142561 Return-Path: X-Original-To: patchwork-intel-gfx@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by patchwork2.kernel.org (Postfix) with ESMTP id 6724CDF283 for ; Thu, 14 Feb 2013 18:45:17 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 498C3E5DB2 for ; Thu, 14 Feb 2013 10:45:17 -0800 (PST) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mail-ea0-f178.google.com (mail-ea0-f178.google.com [209.85.215.178]) by gabe.freedesktop.org (Postfix) with ESMTP id D9FFDE6A6B for ; Thu, 14 Feb 2013 10:43:55 -0800 (PST) Received: by mail-ea0-f178.google.com with SMTP id a14so1184062eaa.37 for ; Thu, 14 Feb 2013 10:43:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ffwll.ch; s=google; h=x-received:from:to:cc:subject:date:message-id:x-mailer:mime-version :content-type:content-transfer-encoding; bh=3Ikm5j1BRXHQl+xo4cjQmJxssVvqhOfxO5zFMjv2Ag4=; b=B/iJ+eV1Hw0uSFIMIGpR5AuEs1csoMf0hlohAg5xfQJksvmqD8pg27osvJVcoDyem7 Y0pLPicDq152sZur0uEXMgqnPOV8NgpbdRh0VINmNsMNDGx1mkCS5kHfGTaN3R10GnPE Z1qX2u3J8uvR+oX9bhIN91hdWR/8dX1AXjZPU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer:mime-version :content-type:content-transfer-encoding:x-gm-message-state; bh=3Ikm5j1BRXHQl+xo4cjQmJxssVvqhOfxO5zFMjv2Ag4=; b=fw3ikzXcPzY9QHLG//7uFX5rnVZ/PGZcwKEAVirDe5JTjk7W5xU75PPkW/R6JtbE3N Zpb+ohfB13iVetn2NoVqsXJgFq0mH88Fbbb2DfQ+jyYXbv4D5o3Qca7Mh1gxknFchrgw tnIzS8oequ0JxDek/S6IeryoRXSpMgeHco+9GoxxvzftLMrdqywIQXEWwSyhKy2wMnPO dusFY5HzfXH2ow8kjTSR/QUNmsYE+UuPJ7K/kS8LYFpKVFqEKaZAMVftzQz0/w27kGBZ QkC1tG3guYrtczSd9kJjO8IqNG1QrjgQQSudofNYPMOgTTXc87RNDKyHew0/BuzthRZb hqyA== X-Received: by 10.14.4.69 with SMTP id 45mr93412160eei.0.1360867434579; Thu, 14 Feb 2013 10:43:54 -0800 (PST) Received: from phenom.ffwll.local (178-83-130-250.dynamic.hispeed.ch. [178.83.130.250]) by mx.google.com with ESMTPS id f47sm34300210eep.13.2013.02.14.10.43.52 (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 14 Feb 2013 10:43:53 -0800 (PST) From: Daniel Vetter To: Intel Graphics Development Date: Thu, 14 Feb 2013 19:46:07 +0100 Message-Id: <1360867567-20593-1-git-send-email-daniel.vetter@ffwll.ch> X-Mailer: git-send-email 1.7.10.4 MIME-Version: 1.0 X-Gm-Message-State: ALoCoQmSh6qCpyf4DuetCoFdA4Qe9OFwVqal0BG7gnUyu5D3oZH9N8WLQq1mXJ5v2Q3NTzxTqpNN Cc: Daniel Vetter , stable@vger.kernel.org Subject: [Intel-gfx] [PATCH] drm/i915: Use HAS_L3_GPU_CACHE in i915_gem_l3_remap X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: intel-gfx-bounces+patchwork-intel-gfx=patchwork.kernel.org@lists.freedesktop.org Errors-To: intel-gfx-bounces+patchwork-intel-gfx=patchwork.kernel.org@lists.freedesktop.org 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 Signed-off-by: Daniel Vetter Reviewed-by: Ben Widawsky --- drivers/gpu/drm/i915/i915_gem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/i915_gem.c b/drivers/gpu/drm/i915/i915_gem.c index a367801..8413ffc 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)