Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp7522956imu; Mon, 3 Dec 2018 14:26:51 -0800 (PST) X-Google-Smtp-Source: AFSGD/WGYMbJ2+kiS/jxLa5+iZoCJ/nNkzZwsiFe3aUVonCTEr9g4ZdE+Uyomyt/gR/KT4BUTJGX X-Received: by 2002:a17:902:ac8f:: with SMTP id h15mr17046944plr.245.1543876011482; Mon, 03 Dec 2018 14:26:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543876011; cv=none; d=google.com; s=arc-20160816; b=NO1+wCRgQEhkdd+Uf+SE+3DL+E6IluEszSqUL7agjVwp4dylZUn4RqrZttD3qhxivY rg+MhoYC4xvwBXgaGQ0hfWtrD/TlekLbJnt/eO55CG6jEr1m1b2vrvAFZMPlEfiXpWHm PrA9p/ftyagY3VRATI0eO1EVHJhRTDMs0zKLbbx4bsgtkHWqNFTZcGxktDFcMvU3V4Gj eFviOmtblu4rmIVVruDHkpjXaXO9cyS6uA9JsSsDgioIafkVWxN0ySEUR5jOoAhlruuO c5Ls9aNhiYRKUcr3Cw/iuzw9u0HNgKFk197oGWEmBCQudb1AKe4KDHKSIfDWYhkDyxx+ hDHg== 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 :message-id:date:subject:cc:to:from; bh=N7zC4kMn61FXu3b98TK2C/8bBALZq0WVAORHBkTDAGs=; b=uY0qsDb39WTbd6zUy7KbgSJ6hytm7ivXXCxeYY462aG5NU5dV136//Mn2FIZsDDZiP MS9fhfyeg/lpFSukB6+b130MbkTeuGLlUPiOO2aet9M0uLOnSoyZ5u/o8nljP1UTotHI /CBK2O+2w+hkAQJ1Mg2LdoqMbuEVdjfH2hlNR9uovj68dBTPkok2w+znOov9ZVILRfZ3 8sv56wiMYJtoZHzRksv8gXHligjibPdiOWm0Wuvooz2Yj0I+Z73y2XJZR6uNjrCmM3KN stIMxTKxy/4Kh6IU0G1hHLVafo/eeQrSemTwpcA4ylqp8FksP1K6drJsT5igRhVRqUlC dhIA== 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 c26si13959668pgm.210.2018.12.03.14.26.36; Mon, 03 Dec 2018 14:26: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; 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 S1726042AbeLCWYp (ORCPT + 99 others); Mon, 3 Dec 2018 17:24:45 -0500 Received: from anholt.net ([50.246.234.109]:54156 "EHLO anholt.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725903AbeLCWYn (ORCPT ); Mon, 3 Dec 2018 17:24:43 -0500 Received: from localhost (localhost [127.0.0.1]) by anholt.net (Postfix) with ESMTP id C214D10A1570; Mon, 3 Dec 2018 14:24:42 -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 TR4QQcM8khiP; Mon, 3 Dec 2018 14:24:39 -0800 (PST) Received: from eliezer.anholt.net (localhost [127.0.0.1]) by anholt.net (Postfix) with ESMTP id B5F6810A0D70; Mon, 3 Dec 2018 14:24:39 -0800 (PST) Received: by eliezer.anholt.net (Postfix, from userid 1000) id D02522FE2D16; Mon, 3 Dec 2018 14:24:38 -0800 (PST) From: Eric Anholt To: dri-devel@lists.freedesktop.org Cc: linux-kernel@vger.kernel.org, Dave Emett , Thomas Spurden , Eric Anholt Subject: [PATCH v2 1/6] drm/v3d: Document cache flushing ABI. Date: Mon, 3 Dec 2018 14:24:33 -0800 Message-Id: <20181203222438.25417-1-eric@anholt.net> X-Mailer: git-send-email 2.20.0.rc1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Right now, userspace doesn't do any L2T writes, but we should lay out our expectations for how it works. v2: Explicitly mention the VCD cache flushing requirements and that we'll flush the other caches before each of the CLs. Signed-off-by: Eric Anholt --- include/uapi/drm/v3d_drm.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/uapi/drm/v3d_drm.h b/include/uapi/drm/v3d_drm.h index 35c7d813c66e..ea70669d2138 100644 --- a/include/uapi/drm/v3d_drm.h +++ b/include/uapi/drm/v3d_drm.h @@ -52,6 +52,14 @@ extern "C" { * * This asks the kernel to have the GPU execute an optional binner * command list, and a render command list. + * + * The L1T, slice, L2C, L2T, and GCA caches will be flushed before + * each CL executes. The VCD cache should be flushed (if necessary) + * by the submitted CLs. The TLB writes are guaranteed to have been + * flushed by the time the render done IRQ happens, which is the + * trigger for out_sync. Any dirtying of cachelines by the job (only + * possible using TMU writes) must be flushed by the caller using the + * CL's cache flush commands. */ struct drm_v3d_submit_cl { /* Pointer to the binner command list. -- 2.20.0.rc1