Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1678630pxu; Sun, 6 Dec 2020 03:47:50 -0800 (PST) X-Google-Smtp-Source: ABdhPJw7sU6o5hlE70/qffWBvkEe/EeaJznKUT7BkdZgfRpYaJYRcN6wgtDYTeMDXQEJl05Z1KFH X-Received: by 2002:a05:6402:180c:: with SMTP id g12mr15668663edy.268.1607255270042; Sun, 06 Dec 2020 03:47:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607255270; cv=none; d=google.com; s=arc-20160816; b=ocRjJXna1ThSC7zBZ64wSqvXiht30J5dXfwQV/X3jif0D9tabvihVG3K5SSsFbJb45 kyMAxrgP38gskEDipwWGf7BAgMwdgWYuh/0cUJZFxjJ0VHfegjgQfhjVa1BnpdrLEBwX J9hkcuSUAOs8p9Mt8iniImrbN3g7tDPwPk4elXmwYkVPgbCm5SYJqUOVzd8o+1Gxcazh 3yOEbc22W0d7/nQYisj8PHESDMqAw0UnR+J3Vswrc2HzAR3qKgbaN7Ri7QDIrmoBEKBe wiwg39G8YZCESq2/r1udVArZfHMfD5HUW22ZNPtqkV21JezzbwVw+najlocFp5Sh6Fe8 oKvQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from; bh=+repe5mkTNEfv1BaAgvsPIPkDRPK1iAFQNBjevqFx04=; b=I7Nw6DgOLIGpkiB1TZZ9dBDMxwCFjocQGbBtiWJVW4FuFQtguafedjhreDNzXkdDqr 4q2B6WMlpKcvBTKqpkSuZHPUuQVYbtZJLzmjj9ITze6HLrrM0YNUP/HA+PnNL7cnXbeH JtM6GCixdN41EAi0pOZHIKHVWLKV72Giy8/Xtm/ZC7nMsGOyTcxT5R3rSWyVf71mdp0Z d2xXJHfrY9XtZuMu3JESGELbkzQIrhdg88wB6GIjVBcoS9wW3Kw80rF7FRa4dUxVh8k3 Fe8d6xTUs8NNBtUSDFdWLDkSx4Izr+2Yu+6hznr9wFwOVeIiRwTJtzscKbEmcqixPFav JY5g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d17si4547955ejh.451.2020.12.06.03.47.27; Sun, 06 Dec 2020 03:47:50 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729585AbgLFLpu (ORCPT + 99 others); Sun, 6 Dec 2020 06:45:50 -0500 Received: from mail.kernel.org ([198.145.29.99]:45702 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728792AbgLFLpt (ORCPT ); Sun, 6 Dec 2020 06:45:49 -0500 From: Greg Kroah-Hartman Authentication-Results: mail.kernel.org; dkim=permerror (bad message/signature format) To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Chris Wilson , Ayaz A Siddiqui , Lucas De Marchi , Matt Roper , =?UTF-8?q?Ville=20Syrj=C3=A4l=C3=A4?= , Joonas Lahtinen , Rodrigo Vivi Subject: [PATCH 5.9 46/46] drm/i915/gt: Fixup tgl mocs for PTE tracking Date: Sun, 6 Dec 2020 12:17:54 +0100 Message-Id: <20201206111558.681285823@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201206111556.455533723@linuxfoundation.org> References: <20201206111556.455533723@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Chris Wilson commit be33805c65297611971003d72e7f9235e23ec84d upstream. Forcing mocs:1 [used for our winsys follows-pte mode] to be cached caused display glitches. Though it is documented as deprecated (and so likely behaves as uncached) use the follow-pte bit and force it out of L3 cache. Testcase: igt/kms_frontbuffer_tracking Testcase: igt/kms_big_fb Signed-off-by: Chris Wilson Cc: Ayaz A Siddiqui Cc: Lucas De Marchi Cc: Matt Roper Cc: Ville Syrjälä Cc: Joonas Lahtinen Reviewed-by: Ville Syrjälä Link: https://patchwork.freedesktop.org/patch/msgid/20201015122138.30161-4-chris@chris-wilson.co.uk (cherry picked from commit a04ac827366594c7244f60e9be79fcb404af69f0) Fixes: 849c0fe9e831 ("drm/i915/gt: Initialize reserved and unspecified MOCS indices") Signed-off-by: Rodrigo Vivi [Rodrigo: Updated Fixes tag] Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/i915/gt/intel_mocs.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) --- a/drivers/gpu/drm/i915/gt/intel_mocs.c +++ b/drivers/gpu/drm/i915/gt/intel_mocs.c @@ -243,8 +243,9 @@ static const struct drm_i915_mocs_entry * only, __init_mocs_table() take care to program unused index with * this entry. */ - MOCS_ENTRY(1, LE_3_WB | LE_TC_1_LLC | LE_LRUM(3), - L3_3_WB), + MOCS_ENTRY(I915_MOCS_PTE, + LE_0_PAGETABLE | LE_TC_0_PAGETABLE, + L3_1_UC), GEN11_MOCS_ENTRIES, /* Implicitly enable L1 - HDC:L1 + L3 + LLC */