Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp1275996imm; Tue, 22 May 2018 01:10:14 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqO4RZXSa9dgc0tyuCH3Xt47Vi3e6PL9VtaACeXYo3EvQssOgyyTXv51I/UHBE61Eoti/wG X-Received: by 2002:a63:a743:: with SMTP id w3-v6mr17345441pgo.374.1526976614588; Tue, 22 May 2018 01:10:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526976614; cv=none; d=google.com; s=arc-20160816; b=dHRGRfJ00/GJl4Dt8w/+40jb5WrqBssE5wLbtUeUcHd0G26ajVRfcWUX0PxJBRWJSE 2t3IIB3v0OGdpcWzBLEsmYlw0DmdVyTjaYETMe5Ogdhkm9pCrEdszZs1mvi4GpXoDprj 8Ivsz3E6pq2L/aNnCAN4QW8dIH7kgtso1IN5ex8G9OQ6hKFH7uuAQtGVlEAEyzTvTdRK wZYaQ4RT1dT0nTLdm0gZ9j7n6Lb4sTCth/uHYclCRKfpSLN7IIsz0HgfVxZE52E5Jd0E JHi6n6FfIQ717mlgVy2Rqdjitsoe1oKxqvc6TXPpF7XbTuayD8vc0gfuK3Z8ZZl3JBHp xfbA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=OsayVEZELY3Ug6QG0+jKZLBnkOaU8wTXDUUuQOgJxZk=; b=L3A14Ulv7sN4bdpDTimrIKqb7ukVsKb+sPQWBwQ/euNQMIUoNNy07SPkwICnWMp/qJ NBEJsWJRgg0gnMD5+X31r6XvNxrK/YQUR7QxXWOCrF5j4iLVXv1obtJ0pX0WStddllHx piiqPTgkpobZYT+u/qhSEjn8U3PTFGNh3441ifsqg3AdgDJ6yYbJz+EAyfP6+de5YEAU N4Zd5ZQAQzTzwU0JaMoAAM3RdlZWp3P8/aFofBY49yGnVUjZiGTh3AT9ddSdQGLRt9E1 6NiLb8D7dIYzfxqcKVdRTvxwrb5Om+uRP3SeMMk8CNMPQIwLL0b9yMOrh8TNKlbaJ4p4 zsNQ== ARC-Authentication-Results: i=1; mx.google.com; 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 q12-v6si17757304pli.419.2018.05.22.01.09.59; Tue, 22 May 2018 01:10:14 -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; 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 S1751196AbeEVIJq (ORCPT + 99 others); Tue, 22 May 2018 04:09:46 -0400 Received: from smtp6-g21.free.fr ([212.27.42.6]:56328 "EHLO smtp6-g21.free.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750709AbeEVIJn (ORCPT ); Tue, 22 May 2018 04:09:43 -0400 Received: from [172.20.5.115] (unknown [65.113.143.2]) (Authenticated sender: martin.peres) by smtp6-g21.free.fr (Postfix) with ESMTPSA id 7BA4E7803AD; Tue, 22 May 2018 08:09:21 +0000 (UTC) Subject: Re: [Mesa-dev] [PATCH 4.16 039/110] drm/i915/gen9: Add WaClearHIZ_WM_CHICKEN3 for bxt and glk To: Greg Kroah-Hartman , linux-kernel@vger.kernel.org Cc: Oscar Mateo , Michel Thierry , Joonas Lahtinen , stable@vger.kernel.org, Mika Kuoppala , mesa-dev@lists.freedesktop.org References: <20180521210503.823249477@linuxfoundation.org> <20180521210507.389445775@linuxfoundation.org> From: Martin Peres Message-ID: Date: Tue, 22 May 2018 01:09:07 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: <20180521210507.389445775@linuxfoundation.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Sorry for top-posting, but why is this email on mesa-dev, and not on intel-gfx? I mean, the latter is for the kernel driver while the former is the userspace 3d driver, so intel-gfx@lists.freedesktop.org is definitely the prefered mailing list for these discussions. Martin On 21/05/18 14:11, Greg Kroah-Hartman wrote: > 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) > > > _______________________________________________ > mesa-dev mailing list > mesa-dev@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/mesa-dev >