From patchwork Tue Jan 28 05:29:34 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chia-I Wu X-Patchwork-Id: 3545121 Return-Path: X-Original-To: patchwork-intel-gfx@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 22974C02DC for ; Tue, 28 Jan 2014 05:30:01 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5A44C2011E for ; Tue, 28 Jan 2014 05:30:00 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 8A24E20127 for ; Tue, 28 Jan 2014 05:29:59 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 85D7311D854; Mon, 27 Jan 2014 21:29:53 -0800 (PST) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mail-ie0-f178.google.com (mail-ie0-f178.google.com [209.85.223.178]) by gabe.freedesktop.org (Postfix) with ESMTP id C743E11D849 for ; Mon, 27 Jan 2014 21:29:47 -0800 (PST) Received: by mail-ie0-f178.google.com with SMTP id x13so6825787ief.23 for ; Mon, 27 Jan 2014 21:29:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:in-reply-to:references; bh=NUTz0deWpa/1XNXQa8xTlc+BLqdruWIf5d7rbra9Z9s=; b=0E8MRwFBFhWsNNGqyjavN4N2ZoykD6/VhxPxrHMiR7LVX1+BGtjR2/0u7601WUfQlq gnDbkBixCKq0EBx+oCI5tYdB8r3DCxpy/nETNAe56ugooPaM44F01NED8MOkQuJ5WcYI 0L0pKGyc9Zy9I2PY4CJrCLGw1LYTSOOEQl6OWYEsRBjZrWgTq5OjkFEQSahbaGvLPipP xSPH/mVu78Ds7SDgMfE+5aG3TnPgYag1nvjV2JR/CAm01PZEvr1k89tLCb7rAH29Hkk+ wvXdNYbFGnWzLvd+ndy+kUmzKXKPZmiqMaR/496G9kesri+/Aze+PqBi1KFASZRwXESJ wmyQ== X-Received: by 10.43.58.19 with SMTP id wi19mr61798icb.53.1390886986192; Mon, 27 Jan 2014 21:29:46 -0800 (PST) Received: from localhost.localdomain (122-116-175-74.HINET-IP.hinet.net. [122.116.175.74]) by mx.google.com with ESMTPSA id d18sm52821643igz.0.2014.01.27.21.29.44 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 27 Jan 2014 21:29:45 -0800 (PST) From: Chia-I Wu To: intel-gfx@lists.freedesktop.org Date: Tue, 28 Jan 2014 13:29:34 +0800 Message-Id: <1390886974-2530-2-git-send-email-olvaffe@gmail.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1390886974-2530-1-git-send-email-olvaffe@gmail.com> References: <1390810716-13510-1-git-send-email-olvaffe@gmail.com> <1390886974-2530-1-git-send-email-olvaffe@gmail.com> Subject: [Intel-gfx] [PATCH 2/2] drm/i915: enable HiZ Raw Stall Optimization on IVB 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: , MIME-Version: 1.0 Sender: intel-gfx-bounces@lists.freedesktop.org Errors-To: intel-gfx-bounces@lists.freedesktop.org X-Spam-Status: No, score=-4.6 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Chia-I Wu The optimization helps IVB too. No piglit regression. Signed-off-by: Chia-I Wu --- drivers/gpu/drm/i915/intel_pm.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/gpu/drm/i915/intel_pm.c b/drivers/gpu/drm/i915/intel_pm.c index c535e5c..58aba3e 100644 --- a/drivers/gpu/drm/i915/intel_pm.c +++ b/drivers/gpu/drm/i915/intel_pm.c @@ -4881,6 +4881,10 @@ static void ivybridge_init_clock_gating(struct drm_device *dev) /* WaVSRefCountFullforceMissDisable:ivb */ gen7_setup_fixed_func_scheduler(dev_priv); + /* enable HiZ Raw Stall Optimization */ + I915_WRITE(CACHE_MODE_0_GEN7, + _MASKED_BIT_DISABLE(HIZ_RAW_STALL_OPT_DISABLE)); + /* WaDisable4x2SubspanOptimization:ivb */ I915_WRITE(CACHE_MODE_1, _MASKED_BIT_ENABLE(PIXEL_SUBSPAN_COLLECT_OPT_DISABLE));