Received: by 10.213.65.68 with SMTP id h4csp216580imn; Fri, 6 Apr 2018 19:54:58 -0700 (PDT) X-Google-Smtp-Source: AIpwx48ytPWpKrMsZqhYY1azRUISodiYQmyOdqvaKSaCg955I3uBTp1e34WBAjNMWtH08C91PHX6 X-Received: by 2002:a17:902:6b04:: with SMTP id o4-v6mr11227140plk.332.1523069698559; Fri, 06 Apr 2018 19:54:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523069698; cv=none; d=google.com; s=arc-20160816; b=kzT3iUtBIqIu5/YvbFpgUiqlWxKH+Q2O5VQiz2pUoph8MnSfgKIvxXq8LAS8fxew4v P2KRfKpCdQfwJlFo+yOnG8UnffPRqkoZ3Xp76T1xKjio/bF0JO7oUEdSWx0krUwOfi9X 5IneCvJyIpu58sUk/nlKMTAHKZuKC8GLKOqFOn2TCBdPinN/3WWFB6++QLr/OHodlsSQ sD1LImnlZtwQX0SVOQw7eGmcL5Ea0X4Et6AWGahWlr8aj9dzENPQPHsg7wuX2tMmHXof j4FNCz6a276pjpyVW/SfGL5bTUg12OeqCAetBt/s5CPlpqHM7J4jQfp3uYA9GkNt3LC6 JfqA== 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:references :in-reply-to:subject:cc:to:from:arc-authentication-results; bh=l7ZYBT4INQGjlL2zTmuyBBspXRAVDNyehZ1bvB5iDqI=; b=V8xGuYHs5Q77zDCrIGmn5fb78joESvZP7+hwcJVfJ1/PJb73cPp8rCdG72CkW2D1i5 gb1RD8fWKih3vDzKRhdrcgTA+gOUwjFd7K952RVZ6cgHmgOruSAg4yV7VhwBue5kot1m muPikTZl1W6nMlmBCqzERhaejqC2FrMiSL8x/Y6kWSnClRVeJrChXF3mY3rALS1Yly3M Vn6Nf5jwJzFiySSpvlixDV7cqRchM1FDEwheKUOXBo8Mn60nbk3GrTv/jeXcfRbpvVQf npOPPXcKch887bQEDHd01tosrAPOsQ3PUQuwCz557ReaIJJ6APSsDId23GXaARj2lHph /PDw== 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 a7si2105841pgc.797.2018.04.06.19.54.19; Fri, 06 Apr 2018 19:54:58 -0700 (PDT) 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 S1752075AbeDGCve (ORCPT + 99 others); Fri, 6 Apr 2018 22:51:34 -0400 Received: from home.keithp.com ([63.227.221.253]:59126 "EHLO elaine.keithp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751780AbeDGCvd (ORCPT ); Fri, 6 Apr 2018 22:51:33 -0400 Received: from localhost (localhost [127.0.0.1]) by elaine.keithp.com (Postfix) with ESMTP id D1E963F21A8B; Fri, 6 Apr 2018 19:51:32 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at keithp.com Received: from elaine.keithp.com ([127.0.0.1]) by localhost (elaine.keithp.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id OPmU33Zvc_zb; Fri, 6 Apr 2018 19:51:31 -0700 (PDT) Received: from keithp.com (unknown [206.248.11.81]) by elaine.keithp.com (Postfix) with ESMTPSA id 3FD533F2020C; Fri, 6 Apr 2018 19:51:31 -0700 (PDT) Received: by keithp.com (Postfix, from userid 1000) id 61BE61582879; Fri, 6 Apr 2018 19:51:30 -0700 (PDT) From: "Keith Packard" To: Jason Ekstrand Cc: LKML , Dave Airlie , Daniel Vetter , Maling list - DRI developers Subject: Re: [PATCH] drm: Add crtc_queue_syncobj and crtc_get_syncobj ioctls In-Reply-To: References: <20180406235649.9494-1-keithp@keithp.com> <20180406235649.9494-2-keithp@keithp.com> Date: Fri, 06 Apr 2018 19:51:29 -0700 Message-ID: <87muyfpw3y.fsf@keithp.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; 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 Content-Transfer-Encoding: quoted-printable Jason Ekstrand writes: > Is the given sequence number guaranteed to be hit in finite time? Certainly, it's a finite value... However, realistically, it's just like all of the other vblank interfaces where you can specify a crazy sequence and block for a very long time. So, no different from the current situation. Of course, the only vulkan API available today only lets you wait for the next vblank, so we'll be asking for a sequence which is one more than the current sequence. > Just to make sure I've got this straight, the client queues a syncobj with > queue_syncobj to fire at a given sequence number. Once the syncobj has > fired (which it can find out by waiting on it), it then calls get_syncobj > to figure out when it was fired? If it cares, it can ask. It might not care at all, in which case it wouldn't have to ask. The syncobj API doesn't provide any direct information about the state of the object in the wait call. > If so, what happens if a syncobj is re-used? Do you just loose the > information? You can't reuse one of these -- the 'queue_syncobj' API creates a new one each time. > If we have a finite time guarantee, I'm kind-of thinking a sync_file might > be better as it's a one-shot and doesn't have the information loss > problem. I'm not actually sure though. It's a one-shot, once signaled, you're done with it. > This whole "wait for a syncobj and then ask when it fired" thing is a bit > odd. I'll have to think on it. Yeah, the event mechanism has the nice feature that you get data with each event. I guess the alternative would be to have a way to get an event when a sync object was ready; perhaps a call which provided a set of syncobjs and delivered a DRM event when any of them was ready? That has a lot of appeal; it turns the poll-like nature of the current API into an epoll-like system. Hrm. =2D-=20 =2Dkeith --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEw4O3eCVWE9/bQJ2R2yIaaQAAABEFAlrIMjIACgkQ2yIaaQAA ABEeFQ//VOAUNr6itXcCXQg+ACwiPgSkqZ8virtYiHt1+7kglQdnU51sqslhE4wu slw4ilv/c42fPxy9/8DVOcMU0HmuRN+5Inm4GxouMI1oAlH+KDTTaQEKTZMThaeU 9JSgjLpST1VOdAd0COMuyAIxCwQQI+03TZbmenqrR6zlkpgGq+6GhPSJT7ywCpiM Fnc1K9UzN3QTgXBQd28bwZAP6G9CO4nCfRaIZEMprb4xQMO9xnlB/V0mZIMRPueY bfanmntXZFV5Mi7TONmxFSYOp8wgajggUEJywlfiES2OrgBFpTcaV0EcEq982He5 BIM8TKT/xmAU2Lw3v36mJNOw9WxZaZoJEeJyn8AWA0NqG7pbczi10FFBoxtIX89I 0en5NuFbGTJvpOSQUOSSfdOEoi6SxkiSqdqAm0YVqkY8hUjjSLl9wM87jLzxBBkq aE58VEM2NsgZNVc7X279cywvK8IghLlYkkSFa4wCNP8RWus1j26m0/7l+itiNaeB sN8L9Pb1uurmbm8MN/xw1RmpS949y6w7Gxb8/71n3T09QpSxl4T9Q4+sVgtDGSzd V6cJCIQPaxeQRjo6tnkgP3WZwZtIs6UYakB7cTLuR/F+ghGWT0Nl1bONp7PwEiox au1ZqnwPnZRw/5Spb7JofE1ZdgclYveIIovR2HHEhoDXYxDINF0= =4bBm -----END PGP SIGNATURE----- --=-=-=--