Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp902269ybe; Fri, 13 Sep 2019 08:05:19 -0700 (PDT) X-Google-Smtp-Source: APXvYqyHrxXnAN6hONA118133mWaMrSv91e7w2OE7+xCCHy7GXP0cMabhVSD5bCSTQVP1RbbZC8Z X-Received: by 2002:a17:907:111b:: with SMTP id qu27mr40231018ejb.10.1568387118968; Fri, 13 Sep 2019 08:05:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568387118; cv=none; d=google.com; s=arc-20160816; b=lNFlsJY2fC6+B7nK5BTFbWtHk37DqL9/nBVCdioBiUWSNer8WfPBBBDTsueXvqn4rv +JMHinwcWucKlyQMDvW9ZjfmqAdoc5FMJXHvzndnCu1koZ8J/RmMQTZIvBkpNtMN6ZuK Dg8gmgrWsA4rssTUsO/320T1McjtNzDxXSlMiGRjUwg/s+xxghm0q8JxVuowJ0xhR0vI uorqQIvg/z86fGcJ3rk94ypqJbJYYWcnpia9QhlCrkoQ/mKMmPGMKyfeLLCzc4FJ4e4N vSurx9INZA6KbpMKWYVfIIixgvWq1FqWPd+UcsgDMH21qsRdUTm0C5Z4WuguoHiZNUYq 0IUA== 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:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=h+3IcqEU0so+5KLsELvEaT0O4+9usI9ZLWlIJ3LotOA=; b=ClOLZHr9xGfu4hF+bI2E7YKQ7eLJKBrpC6Pyy3Jr4PWk+D3S4IVn7yClVl+mO5LCYS 0RysncukQUyB9gsDRI0Hl7Gww+vMV3QeTlyw0vZ7izFtaVj/EWOs+eWvCafmxsgbE92O uP4e/IwdpL17xwYqEtyATiUa8DTBI7wtsURHq0/V85Cp67mDRwcl9CwK9hDCvooCdpwH tFeViAfyCGgLq514osQufwWLjLvyyc9gsBUGujJI1SQUJvVsYxqkOHD70fkOCfkMlUeK bKBTu4yXJgxA9MQiLp07PWlwCEbpCe2BJvXSkSbxv4nUs2hRcmEwUvk280It06i8JHcm DyHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=GAVYCuU8; 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 k15si1056629eds.398.2019.09.13.08.04.53; Fri, 13 Sep 2019 08:05:18 -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=GAVYCuU8; 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 S2390921AbfIMNVx (ORCPT + 99 others); Fri, 13 Sep 2019 09:21:53 -0400 Received: from mail.kernel.org ([198.145.29.99]:51706 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390279AbfIMNVt (ORCPT ); Fri, 13 Sep 2019 09:21:49 -0400 Received: from localhost (unknown [104.132.45.99]) (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 B3E9420830; Fri, 13 Sep 2019 13:21:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1568380909; bh=tjS9jxRPe3MnVc1fSqzwm1qF40Tys6fPzN/oFmOmjhQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=GAVYCuU80Oa9huVgpOiD+3EB6+CmFGwiJXxvgzosYsaI0NUU30BtwaI1aOcpXSWE9 cXTexguv0oMopLrOPgm0Ez5Y/TX7uhdgKyGJIgklx5hMLX4IpY8XQ7yGbQQeiO5YMC TO86xMVSgDlhvEhsiPvmqFfXkE2CM6bPxTVkppyM= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Lionel Landwerlin , Anuj Phogat , Chris Wilson , Jani Nikula , Sasha Levin Subject: [PATCH 5.2 34/37] drm/i915/icl: whitelist PS_(DEPTH|INVOCATION)_COUNT Date: Fri, 13 Sep 2019 14:07:39 +0100 Message-Id: <20190913130521.847990879@linuxfoundation.org> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20190913130510.727515099@linuxfoundation.org> References: <20190913130510.727515099@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [ Upstream commit cf8f9aa1eda7d916bd23f6b8c226404deb11690c ] The same tests failing on CFL+ platforms are also failing on ICL. Documentation doesn't list the WaAllowPMDepthAndInvocationCountAccessFromUMD workaround for ICL but applying it fixes the same tests as CFL. v2: Use only one whitelist entry (Lionel) Signed-off-by: Lionel Landwerlin Tested-by: Anuj Phogat Cc: stable@vger.kernel.org # 6883eab27481: drm/i915: Support flags in whitlist WAs Cc: stable@vger.kernel.org Acked-by: Chris Wilson Signed-off-by: Chris Wilson Link: https://patchwork.freedesktop.org/patch/msgid/20190628120720.21682-4-lionel.g.landwerlin@intel.com (cherry picked from commit 3fe0107e45ab396342497e06b8924cdd485cde3b) Signed-off-by: Jani Nikula Signed-off-by: Sasha Levin --- drivers/gpu/drm/i915/intel_workarounds.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/drivers/gpu/drm/i915/intel_workarounds.c b/drivers/gpu/drm/i915/intel_workarounds.c index efea5a18fa6db..edd57a5e0495f 100644 --- a/drivers/gpu/drm/i915/intel_workarounds.c +++ b/drivers/gpu/drm/i915/intel_workarounds.c @@ -1107,6 +1107,19 @@ static void icl_whitelist_build(struct intel_engine_cs *engine) /* WaEnableStateCacheRedirectToCS:icl */ whitelist_reg(w, GEN9_SLICE_COMMON_ECO_CHICKEN1); + + /* + * WaAllowPMDepthAndInvocationCountAccessFromUMD:icl + * + * This covers 4 register which are next to one another : + * - PS_INVOCATION_COUNT + * - PS_INVOCATION_COUNT_UDW + * - PS_DEPTH_COUNT + * - PS_DEPTH_COUNT_UDW + */ + whitelist_reg_ext(w, PS_INVOCATION_COUNT, + RING_FORCE_TO_NONPRIV_RD | + RING_FORCE_TO_NONPRIV_RANGE_4); break; case VIDEO_DECODE_CLASS: -- 2.20.1