Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp7422847imu; Mon, 3 Dec 2018 12:40:18 -0800 (PST) X-Google-Smtp-Source: AFSGD/U5yfyX51U0WmOfyKbi+7fDjF/iV8ETTavBryGYL7CZZlyseUJYQ/aEewkOQaQp6SUFpsEo X-Received: by 2002:a17:902:6b46:: with SMTP id g6mr17448488plt.21.1543869618469; Mon, 03 Dec 2018 12:40:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543869618; cv=none; d=google.com; s=arc-20160816; b=BcpFXfdJB6RieqWloNPelmI1rNQo1GQzMF50CEdT05n2kDduJ4RyrgPLQNz09sn2Z8 06OE7Ok2Ytq/OH0w5Keuok76Wf1eceMbz5Vum8O8A5/f4xAlgCHnDboa8sv7Uit0ziK0 H9vhssf49FlZjmsaFxGRR9mwkIi273ndD1RSMCBNxwlj0D6qoKTH6LN6waeb2/0GCbSv XG1ba980B6D+5PKckkMtKvVs6ecBqfPsC3kUrQ/AvaOdgUC+EgQmlNBArx1oDRLZUw1f y3YFoaUXPXVCuhxsSzO5aRN2TfiFGJy3VfPl6NfH3rt3YUZrmms+OpCO9nDZyZgLZ6FW iqeQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:user-agent :references:in-reply-to:subject:cc:to:from; bh=6i/mgC2fu7grE1bRVXBh3Cg8JnpcLfsaNkK01FDsbFo=; b=xDrx0kYkIV4GbZOTiWPrjB8NHIgyTo8CVC9HRiXutPlAMPVFWiX3kCPirgjJR+S+9N r4zj8WmL8/CMJ1Bg93R6O5rbYqBnPwUBS6cFQV9s0pLM2rQyBCldcngNnzshij8KcpmZ 7g3cSQ0c5BrFic28Tb6FNc1cKcUd/c7pY5iqa+FOQ372GSkXimO6HyzjvPGwiuwoWidx +BQrOdqnTK2yRAivBTpRm8qi36qrQe/wR7iUeNhjw/Eb2uzFEIIM8k7Bj+C4aRj2BRU5 dPfn5xcT3l0jfqIgtWzl5Tl9dUaDQtbODpsolMWb6CwVjRcQGukcn2wZsjFv0AhMMtkv ZjgQ== 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 3si15788991plo.102.2018.12.03.12.40.03; Mon, 03 Dec 2018 12:40:18 -0800 (PST) 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 S1725977AbeLCUj1 (ORCPT + 99 others); Mon, 3 Dec 2018 15:39:27 -0500 Received: from anholt.net ([50.246.234.109]:53408 "EHLO anholt.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725903AbeLCUj0 (ORCPT ); Mon, 3 Dec 2018 15:39:26 -0500 Received: from localhost (localhost [127.0.0.1]) by anholt.net (Postfix) with ESMTP id E722210A156D; Mon, 3 Dec 2018 12:39:25 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at anholt.net Received: from anholt.net ([127.0.0.1]) by localhost (kingsolver.anholt.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id VJ-87A6l6Hr9; Mon, 3 Dec 2018 12:39:24 -0800 (PST) Received: from eliezer.anholt.net (localhost [127.0.0.1]) by anholt.net (Postfix) with ESMTP id BC63510A0388; Mon, 3 Dec 2018 12:39:24 -0800 (PST) Received: by eliezer.anholt.net (Postfix, from userid 1000) id 4861D2FE2D16; Mon, 3 Dec 2018 12:39:24 -0800 (PST) From: Eric Anholt To: Dave Emett Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Thomas Spurden Subject: Re: [PATCH 1/6] drm/v3d: Document cache flushing ABI. In-Reply-To: References: <20181201005759.28093-1-eric@anholt.net> User-Agent: Notmuch/0.22.2+1~gb0bcfaa (http://notmuchmail.org) Emacs/25.2.2 (x86_64-pc-linux-gnu) Date: Mon, 03 Dec 2018 12:39:23 -0800 Message-ID: <87tvju1h1g.fsf@anholt.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --=-=-= Content-Type: text/plain Dave Emett writes: > On Mon, 3 Dec 2018 at 17:22, Dave Emett wrote: >> >> > + * The caches (L1T, slice, and L2T) will be flushed before the job >> > + * executes. The TLB writes are guaranteed to have been flushed by >> >> I would say before *each* job executes, as the caches are flushed >> before both bin and render. >> I wouldn't say "the caches" as not all of the V3D caches are flushed >> before executing a control list. In particular, the VCD cache is not >> cleared by the kernel driver (not even sure if there is a register >> interface to do this); it is expected that the control list will do >> this itself (using the CLEAR_VCD_CACHE instruction). >> On 3.3 and earlier there is a separate L2C for instructions/uniforms >> and a GCA. These do need to be flushed, and it looks like they are, so >> they should be mentioned here. > > Correction: on *3.2* and earlier there is a separate L2C for > instructions/uniforms. On 3.3 and earlier there is a GCA. > > It looks like we're currently unconditionally writing the L2C clear > registers. We should really only be doing this on 3.2 and earlier. OK, I've pushed the timeline name and tracing to drm-misc-next, and I'll resend the rest with more comments and the L2C change and outside-in invalidation once I'm far enough into this CTS run that I'm confident. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEE/JuuFDWp9/ZkuCBXtdYpNtH8nugFAlwFlHwACgkQtdYpNtH8 nujd8w//VIM8lAGKBZpA/G+kCgc9iZXX0PjX5i45LST36VvTyCAKgZXG9CF/OWSY Sav8nz5nES0/tytM/jce8ScKw8xT30Uagp+fwa+fQlSkfFTCY1k+zTJXcTEJo7pe CUrXt8M8GJ891uMs05rKs+zb9+n1kV9mbpTZWrqeqfYNmBYG3dvjvx5rNGiAqssZ ayz77xI9NpViJ5p8/uLPuS4tXbnBWQyA7Z7giwlESIVIb5taPchhh26N4LklOc1q OxQ01NZSXHbOVZa6I7cebAh+KOrjfDSe+X0jm07uZZEVpZfHHaWY1ll/DaaKPQN+ TiTVt4VKfNrBAB6B9/y/rs9gBa/BWWiLNxDBL8xx4X+WVlwbOce1LYBt6SpFTAvr sWzlfKdDIeL4HdDxsARkAUrZndJytAWaDPw4rgd/ZqS/VpP35nZ6QC5E5+SgSHTo qmA4ieWqOjdB5f59WHuyJR6Ib7xnYkc4FSnc+w2z63sID7ZzXgI3SJ1YFffeWNNS rImJIpZDD1wXCnhvaZgkNLot8nry8S/lgOUq1G3wQLE492cnDeqL8XObsEo8p86j 6q7CsY+Y2NY1AUu3CKydLkZuKk8zq4AtQK1Ia0Oh20/pTRjjzMZN1eWDQ3/eXLu8 MAj+lmQw7v8zx5HqQb2f1sAJO/2wqTE5Z4gyHuOOjrksIbiTXcc= =tuaX -----END PGP SIGNATURE----- --=-=-=--