Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp7218682imu; Mon, 3 Dec 2018 09:24:52 -0800 (PST) X-Google-Smtp-Source: AFSGD/XcYYP0bXQ3XwEYIdYgbt7GG4wFFxZVlVXPXg4viKXxKBUQRu9539aZEk8Sq/i8V1ef83ZO X-Received: by 2002:a62:de06:: with SMTP id h6mr17249264pfg.158.1543857891996; Mon, 03 Dec 2018 09:24:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543857891; cv=none; d=google.com; s=arc-20160816; b=ermlXaBruiw7GljHPkDF8GKtcpN9za+jKgQEQrzgNZdCZC0eQZqHlZuz8rUOtxWgR2 Pi/2p8pQjixEQXZ1xIj9JsopxfLrwZq18IhjdU0lFPuq9psk00QPW9/2o22YTBA7Ceu9 P8hnEHLrxwsnUFSS+DhlZ0/lXSf59tWCsG7ZmVYDIGbA1EMz/U2UTjmqXi6p62uURgRd /D8cwxMvh91y/WEUCAwXWqbwzdQ6r3b3gEOPR07hSkdNvr2FQYCqWK/nLPEzvrqtQ0LQ t9QMgznOmsWxDpc626YotbYfZJ1krC/OoW8Wa5N+oMauPtvZdRnS9It345asIv8CRG8v XObQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=viy+lR9png5tY12hF8Jt7yR+hVkil670P2oH9PehlJE=; b=V+HnUtX39V+RHwpiuhZE5FJQ12c/7z1YaC+gndPKuj/VwOwJIQau1sSPQVy1ILqx2j teqJt5mGrfDa77twMajQz87368uiHVumzD36I2k3Cn3nVzTmJVkRAYTTPrE3jU0pvfpO FPbwSrr1wQ9bYxWbRJN00vzBlDOf5ulQAMB9cHyqpqK+AxFdfJjzQ1Hc+dToJeySCan8 ONpCpFb9ZhAuBEwW2uRA8ShOXJzUJAdjdIjKeKymrbLSWDT2QaNrp5D55B2nqR2XMZCU uv0sAvckkfRcbxewbM7ZW01tegWXtcyQi9owkfrSQnJmZBt6njKAPon1cKEq+rm7TY0q VWuQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=Lufky9im; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d90si15003267pld.148.2018.12.03.09.24.34; Mon, 03 Dec 2018 09:24:51 -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; dkim=pass header.i=@broadcom.com header.s=google header.b=Lufky9im; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726846AbeLCRXK (ORCPT + 99 others); Mon, 3 Dec 2018 12:23:10 -0500 Received: from mail-it1-f193.google.com ([209.85.166.193]:40782 "EHLO mail-it1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725897AbeLCRXK (ORCPT ); Mon, 3 Dec 2018 12:23:10 -0500 Received: by mail-it1-f193.google.com with SMTP id h193so9731174ita.5 for ; Mon, 03 Dec 2018 09:23:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=viy+lR9png5tY12hF8Jt7yR+hVkil670P2oH9PehlJE=; b=Lufky9imuHHXxSa82UzNV3dpaJA+TtSpEmfTxeZZhlu+A0r5R9ioq41qbBqLPnahLx pw2LYTTYLlpBf9LEUWANQuLEBuqYPKVxoTe1p2tb0bsktsX6ycvQfbkbFM3J/+axx4CG NcmVc8g9AJWfyl3sUEc4VZnl5YGVMvAxEEZmU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=viy+lR9png5tY12hF8Jt7yR+hVkil670P2oH9PehlJE=; b=dPJ5QZe7CsJTPiDspL7O+Wmp8nzB3iMvURxDo1tQb/jUIuiLiBxqJGoKSTToZElYIS TKwYvPLwlAKjwEbT3oaX1t3QzmMWkjI1mplWgxLtjxYQMv7jRXnx3OqD/B5xIztDUEkS oKcGBADjuS79UJmiaEMfPV/iKhLk3VhB0GU8l73KsT6zrkbXRSzi7EMiB7M44gfhDIOM gj6Dp8DbkrVx+quJwKdKZK0MbJZQsJQ5v8KD9QxjdD6XngfpUUHGDkrz8/bMFivsWV5F diRlUrfewLGkS6DQkXWndcu/bI9LB8dPs37xTPlNhVJuPrTIbuBzC4nZhd8NwN6U1wIT aoAw== X-Gm-Message-State: AA+aEWZL4MjcwuJPCAXIUilM5oYe/1/qIOcBnUA7yLeQydpi0zytV9x4 XrXw1WZ2gqEpWvrtn7eaZK9hpg+s1mXmUfSA1Dqu7A== X-Received: by 2002:a24:fe41:: with SMTP id w62mr9087851ith.23.1543857785680; Mon, 03 Dec 2018 09:23:05 -0800 (PST) MIME-Version: 1.0 References: <20181201005759.28093-1-eric@anholt.net> In-Reply-To: <20181201005759.28093-1-eric@anholt.net> From: Dave Emett Date: Mon, 3 Dec 2018 17:22:54 +0000 Message-ID: Subject: Re: [PATCH 1/6] drm/v3d: Document cache flushing ABI. To: Eric Anholt Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Thomas Spurden 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 > + * 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.