From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8C29EC2B9F7 for ; Fri, 28 May 2021 13:31:55 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 2A4386128B for ; Fri, 28 May 2021 13:31:55 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 2A4386128B Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=collabora.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 9C21B6F5BC; Fri, 28 May 2021 13:31:54 +0000 (UTC) Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [46.235.227.227]) by gabe.freedesktop.org (Postfix) with ESMTPS id 0338B6F5C1 for ; Fri, 28 May 2021 13:31:52 +0000 (UTC) Received: from maud (unknown [IPv6:2600:8800:8c09:5500::19dc]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: alyssa) by bhuna.collabora.co.uk (Postfix) with ESMTPSA id 106861F442C0; Fri, 28 May 2021 14:31:49 +0100 (BST) Date: Fri, 28 May 2021 09:31:45 -0400 From: Alyssa Rosenzweig To: Tomeu Vizoso Subject: Re: [PATCH 0/4] drm/panfrost: Plumb cycle counters to userspace Message-ID: References: <20210527203804.12914-1-alyssa.rosenzweig@collabora.com> <997658d4-ba30-f150-7b15-183403d7ae94@collabora.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <997658d4-ba30-f150-7b15-183403d7ae94@collabora.com> X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: airlied@linux.ie, dri-devel@lists.freedesktop.org, steven.price@arm.com, alyssa.rosenzweig@collabora.com Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Hi Tomeu, > Will this be enough to implement GL_TIMESTAMP and GL_TIME_ELAPSED queries? > > Guess the DDK implements these as WRITE_VALUE jobs, and there's also a soft > job BASE_JD_REQ_SOFT_DUMP_CPU_GPU_TIME that I guess is used for > glGet*(GL_TIMESTAMP). Other DRM drivers use an ioctl for that instead. For anything implemented as WRITE_VALUE jobs, this is necessary and sufficient on the kernel side. If an out-of-band soft job or ioctl is truly needed (I haven't looked), of course that needs additional piping. Thanks, Alyssa