Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp7225553imu; Mon, 3 Dec 2018 09:31:09 -0800 (PST) X-Google-Smtp-Source: AFSGD/VwJwwxkeCx/dKoBCHnvIvTFRGLJRihQlss6scu8v0cUz70VGAihkHk5MOF+etlmSwpyX2n X-Received: by 2002:a17:902:583:: with SMTP id f3mr17311712plf.202.1543858269542; Mon, 03 Dec 2018 09:31:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543858269; cv=none; d=google.com; s=arc-20160816; b=uVi5huyS1JKAFSJ4BSakNhs3RGJbdVYLOD6HEnlJAXyNwJcHAd3JV+krsUKHL9dDjv INLcz2cqlHKXFw1Ly1EbLK73ugQs1Iooe3lh4PH6L611B017Ky/LTN1oqMleG/AAJqI7 swkA2/ddgonP7txO1OpW530+pn1Wnbi0QC5+r5r9Yk9Q4Mz3B/bzGYVr5AwRhXDNQzF6 0ZYzGHK2+aYhDTKBP/5oREVnrSqPCuAsVETt8OEQAq8URAjlFvIR23svgYWyd4Dpah0q qrGTGPsMoTCoQ9OhyN3iZLImLQOGsI+KrP6ydGF8IXf/VXR/9J1tqD/dJgkhH7uoiS5s Ee5g== 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=7JWDQuEjTBB9IBO6LdSktANapsZoe/1zjhceEpfNoVA=; b=hBFzMcFknCH6Kl2LkEd4d2wR9aS4gy7bbCFOIqdRPrKmTrVO/JmsfZcBrVjHxEadlW C/ofvAbYCzCdancwAmvWeuc7vzAFuCt/ygJ4xJ9loQPFvPR3XD0YI3MzLY7APP3XSSGt Epofwv6fpgrWVU083HlcEkq4tPUvOCRMKsDscos95bFFHRYAjuzAo/MqhlIxNchvgGjb xKsOEJiw3bf/Npr5KH5krVJMDDE711q16owspEec6EbKdVkhZtECS1zay1vh5jru7/Ru 6dSs8RFZYULXuvaJZ34e/OrWoYWY5zf8nCfGxVoubwVSYxlSc4PAVz/mBJxeQ/n5PxuN P1HQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=QZL3wQ+v; 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 j10si15088113plg.123.2018.12.03.09.30.53; Mon, 03 Dec 2018 09:31:09 -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=QZL3wQ+v; 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 S1726592AbeLCR3P (ORCPT + 99 others); Mon, 3 Dec 2018 12:29:15 -0500 Received: from mail-it1-f193.google.com ([209.85.166.193]:50517 "EHLO mail-it1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725852AbeLCR3P (ORCPT ); Mon, 3 Dec 2018 12:29:15 -0500 Received: by mail-it1-f193.google.com with SMTP id z7so10580522iti.0 for ; Mon, 03 Dec 2018 09:29:10 -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=7JWDQuEjTBB9IBO6LdSktANapsZoe/1zjhceEpfNoVA=; b=QZL3wQ+vyrW5w1j9a++jKr8hMstTytPUCxGGhqcJwWbdvx0T1gfWHVn8Ek3fQ25Rn9 9OTS/vrTnwdK76bU9XDRiUbXhbQ9MYn2jJ0M5NHlAjnNdFJfugMzMcEhTmRXU069dBjr ItWqjrjvCsLpZCqo1lJjKFJKA94O5KHPW8TD4= 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=7JWDQuEjTBB9IBO6LdSktANapsZoe/1zjhceEpfNoVA=; b=a2n4fzJM/HCJx0ZbBHBn4RQ6zJhwmUjoWivG6FEGRAhHEbCjvHnhKXdxKedU28Laif p117QuweTrZMWb5DrU8oTvkO84eeF3DwWt4KMskiIUbEHE/QhVJtfGe5jJxQiMRAAmLD KGeRoShcyRfXJWnfL4RcXPBiDVggEcwiiYUAQnUHeal76y99Vs5AVIVFrP/88pOfqms2 Cv1AmUME/wa97U2hn7oJBo/xTFDTscXCqwudpmySgod67BIMEhB8dZBI0mQw3THFdHtY fJZ/3NIuGX/1uCjgbdtZdTl+5E3GhhXqwROq0Kpn80qA4D58zzvlJmXilx9Sm8dnKwXP qypQ== X-Gm-Message-State: AA+aEWbFkukWWK6XhXKFbog3ElcIEnf7sebGQKEoYhihGGE4Q7xvhuIq XMI54BHSsVkLtQ+oc1OyblUIBzF9DlWacRe4jqReNg== X-Received: by 2002:a24:130a:: with SMTP id 10mr8580532itz.58.1543858149677; Mon, 03 Dec 2018 09:29:09 -0800 (PST) MIME-Version: 1.0 References: <20181201005759.28093-1-eric@anholt.net> In-Reply-To: From: Dave Emett Date: Mon, 3 Dec 2018 17:28:58 +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 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.