Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp803829imm; Mon, 21 May 2018 14:48:05 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqTyFLgfNw9DfRgzKN8EPXUG+gZiWWmSM/+8Bcb+dRJmbtlw7VZMFxrOhzolZMUQdhWXa3z X-Received: by 2002:a17:902:42e:: with SMTP id 43-v6mr22017876ple.365.1526939285463; Mon, 21 May 2018 14:48:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526939285; cv=none; d=google.com; s=arc-20160816; b=lfhjebl1zmZ/YkBfGFch3Yac0d/gCJka0TZ65ZmLCbyCpkYSy3yoXM1CbVoxMi8Pif Nia/6uUesGOxj49IYvMWjPnc8LPzXQ1gvat/Fmjju8Vtijz1KfPzHfPrzbC0TFUaUj5y k9XbumWm9azKj08oXqFxI/jTlDX1HaGwBn0vWYSQL0U7h6Z2TVhSl+89hv7xppGeQ/e4 75tc6Yq/tzaOpE5a5lMepsTAZIJMtk2HgrMMKvP/rgQ69xQBffjdZOGuPnHUIxtMSFrn 9Q5Hl69w19O5GbTJHtF11hhYSETMlwklwdS3ao61mfRjbqJwyvApUi6N4Wm9f5BbLbIx NujA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=WOAG0T5sbuNbMvcvSxCT+hCF7PGmEmbhMc2RUvoXfK4=; b=j9on5yawBTJG3h2qUJ30PbK9jr0Uzxc24aRbWk5jrAezhDJ0Sa4Nxea26hyigMeeZw CSwuU1yQh/osvfS+9pRfWXNE833UoYWA6i+UYbqTWhoxLaqjVB8ix+yotM7tYfLq5KLf AcLtO3ZesLKneQgOrT/kIJ3IbhzUrsuXgXUOjfBIQncv5x2KSUk0Vtk4Xoj+vTOJa2J3 Xn/IG0ZfZpPqoZiiUaU88dOngh3x6ek2heQNZIFXHgG1GEqFB963Lx4dsmMWp6bTOn/5 +/DpSXO1KJzV5xgMNaTV2yraJQNm58sfWF56C9HGx7awjqMp4RthfAqPT2oajWQNQ7wL Xz8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=0k5T+oo+; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u198-v6si5430439pgc.460.2018.05.21.14.47.51; Mon, 21 May 2018 14:48:05 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=0k5T+oo+; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754363AbeEUVXy (ORCPT + 99 others); Mon, 21 May 2018 17:23:54 -0400 Received: from mail.kernel.org ([198.145.29.99]:38574 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754343AbeEUVXn (ORCPT ); Mon, 21 May 2018 17:23:43 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 7D6292075C; Mon, 21 May 2018 21:23:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1526937823; bh=oY9fJEa9AwlnVcyNKDk9nTsPJr1d7i53wAyjZ7QEj8U=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=0k5T+oo+vG1iCLo1Akj9trwbmhVBG4Y1HRqsKf3PWvGJFU1hNSqV3nNyVdHCAS+90 ZmmovS53GuJ6KSFaRUbuYLw7j3viTcWqeC3HJjWQSy4qPJ/eucuMgtSfsBC3Dc2mWm 5yxjF4aQ9aT7+d1jerR+RsxG1aAFZGWZ2xvk59xA= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Michel Thierry , mesa-dev@lists.freedesktop.org, Mika Kuoppala , Oscar Mateo , Chris Wilson , Joonas Lahtinen Subject: [PATCH 4.16 039/110] drm/i915/gen9: Add WaClearHIZ_WM_CHICKEN3 for bxt and glk Date: Mon, 21 May 2018 23:11:36 +0200 Message-Id: <20180521210507.389445775@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180521210503.823249477@linuxfoundation.org> References: <20180521210503.823249477@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.16-stable review patch. If anyone has any objections, please let me know. ------------------ From: Michel Thierry commit b579f924a90f42fa561afd8201514fc216b71949 upstream. Factor in clear values wherever required while updating destination min/max. References: HSDES#1604444184 Signed-off-by: Michel Thierry Cc: mesa-dev@lists.freedesktop.org Cc: Mika Kuoppala Cc: Oscar Mateo Reviewed-by: Mika Kuoppala Signed-off-by: Chris Wilson Link: https://patchwork.freedesktop.org/patch/msgid/20180510200708.18097-1-michel.thierry@intel.com Cc: stable@vger.kernel.org Cc: Joonas Lahtinen Link: https://patchwork.freedesktop.org/patch/msgid/20180514165445.9198-1-michel.thierry@intel.com (backported from commit 0c79f9cb77eae28d48a4f9fc1b3341aacbbd260c) Signed-off-by: Joonas Lahtinen Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/i915/i915_reg.h | 3 +++ drivers/gpu/drm/i915/intel_engine_cs.c | 4 ++++ 2 files changed, 7 insertions(+) --- a/drivers/gpu/drm/i915/i915_reg.h +++ b/drivers/gpu/drm/i915/i915_reg.h @@ -7139,6 +7139,9 @@ enum { #define SLICE_ECO_CHICKEN0 _MMIO(0x7308) #define PIXEL_MASK_CAMMING_DISABLE (1 << 14) +#define GEN9_WM_CHICKEN3 _MMIO(0x5588) +#define GEN9_FACTOR_IN_CLR_VAL_HIZ (1 << 9) + /* WaCatErrorRejectionIssue */ #define GEN7_SQ_CHICKEN_MBCUNIT_CONFIG _MMIO(0x9030) #define GEN7_SQ_CHICKEN_MBCUNIT_SQINTMOB (1<<11) --- a/drivers/gpu/drm/i915/intel_engine_cs.c +++ b/drivers/gpu/drm/i915/intel_engine_cs.c @@ -1098,6 +1098,10 @@ static int gen9_init_workarounds(struct WA_SET_FIELD_MASKED(GEN8_CS_CHICKEN1, GEN9_PREEMPT_GPGPU_LEVEL_MASK, GEN9_PREEMPT_GPGPU_COMMAND_LEVEL); + /* WaClearHIZ_WM_CHICKEN3:bxt,glk */ + if (IS_GEN9_LP(dev_priv)) + WA_SET_BIT_MASKED(GEN9_WM_CHICKEN3, GEN9_FACTOR_IN_CLR_VAL_HIZ); + /* WaVFEStateAfterPipeControlwithMediaStateClear:skl,bxt,glk,cfl */ ret = wa_ring_whitelist_reg(engine, GEN9_CTX_PREEMPT_REG); if (ret)