Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp4669759pxb; Tue, 28 Sep 2021 00:59:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwbMO0g79rOUdUU6dW4bZFpUNNRLHIbkkVw9bQq3vpqQWBG8Z+N0zD0Ax50ARNPKh1ZvdHc X-Received: by 2002:aa7:d392:: with SMTP id x18mr6082397edq.334.1632815993269; Tue, 28 Sep 2021 00:59:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632815993; cv=none; d=google.com; s=arc-20160816; b=Gq6qPMG5JIp8+Zpz0d/0Hm9+kG1mT7N8BBLWR2DIXjwdqrEp10hLsHvIKIv6/RZgSH pcP9VKr6H44un6w006Zr6O/Jbp7UDk7+GZxo5eSh3sgVVQ/Igr3TYw52R+PVyQT4+6x1 7c9BRBP1WjJSFljQBTfYQJ5fjMtyvmyPy/ZEMBffgO6EpwonP7VqQHssY5HQ+9u2MKuZ UNnMxoqNrkumhghUmEh1Jh+G3qRC+k24ER8zFiP45tHvXobiv5FEf/DQnZqpDLVVE7ZT T1AKJyzZKIUjERHEM1OdM+8efuvIL12n1ApqhnbNBzsk5py6jnpO2w6pmipv90TS+Qdc DPSA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=gy9mKM0azORkp6POsmIPhCDhcWyTMEDjZX/tq4OmNvo=; b=qde2uGiVoPmPv6usukBEYPWRWPJYYh4fYvuK1D/kQFf62ZWPCtKlWsyG9EiL2m0NE9 2yMGARdcDRz72QsECXPd0zl1BtbcYhDRGHZsmA6BcXS1ZV1DIlkRoH1GZFUT8krCaBpS lRHsCW8JJq2HjFIrpmyTDhptm9H9UUzlDYkexNj2Z1vbe4Gl+teRLb4kEIyHFShPdcZp iPgiIOK2Nzmp9FOAFr63BoAKyPC5Bno524efmk5N0Jo2AFVYzmBxznN/q2+LdRG/QUK6 2MKS6JvvGn31XUOi7MA1T4+MSYMDNdVcHYy3wJoitBIgov4iT40u9HS/voDWC0jgSIDe AOYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=oJNaIZ0V; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b7si27569932edm.76.2021.09.28.00.59.28; Tue, 28 Sep 2021 00:59:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=oJNaIZ0V; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239478AbhI1H7l (ORCPT + 99 others); Tue, 28 Sep 2021 03:59:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44382 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239287AbhI1H7k (ORCPT ); Tue, 28 Sep 2021 03:59:40 -0400 Received: from mail-lf1-x130.google.com (mail-lf1-x130.google.com [IPv6:2a00:1450:4864:20::130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F3F1EC061575; Tue, 28 Sep 2021 00:58:00 -0700 (PDT) Received: by mail-lf1-x130.google.com with SMTP id i25so89464613lfg.6; Tue, 28 Sep 2021 00:58:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version; bh=gy9mKM0azORkp6POsmIPhCDhcWyTMEDjZX/tq4OmNvo=; b=oJNaIZ0VUnSUOPva53QBlwdUmanMINGepTO3sTZ8UEZm+MKsG8GsFosjIS7+steVY1 HaO2jSVEvi9g6HPbdEPqNUJ8Zj3ZIjHlqD5YargEFMpR9jPXSff5Oc11Hx48TC9LPKt9 6i9tuElrvZIp04sadutYo27zNJPiRzS+jO6XzMS9Mg5u2gksUSQln6zVHFfM+rbP1i/K /zh0/nMmti0vDhHLB7JfqfWs0pJBur77y2VB1p8uaXfw7+ycK8lkQ4yqdDhmOMPmXrPU 0QXagudEuEyDg7xEqODKWaH1q6ycHnkUAv94/gX9cDrN0AVnTlBkwxHy0t7uTNfh2/G7 PwyA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version; bh=gy9mKM0azORkp6POsmIPhCDhcWyTMEDjZX/tq4OmNvo=; b=KHl0fHlwFXHKriha45XUnuh5MUEfjWyOseSOxT0yKpDqd7bYOe+KqeOtlz2cnexPJg DpMdGKMmcjqiS4AxepY80hh/r4mRHSi6t8q+XHC5jEvXJ6hrMrU+4JfHSvNX6ZYMtCP0 /ZgYe/Ncr0Ds58FGJPoL1E1bjiFxQnJVCHJ8qSwNfH/f6mpGrdG7gZ3Yz4Ajt+XpSv2M yAvCDviKw1G02RspCuID3Nww5R18pmGIPZYaSpl97h7Ho8R9MACGDC8LLCFQ5OoMkT2T 73MRE1RZNRYVMfJ3NrEqr9VvsrEY0G91PXGUybIU/Tyt39NbLRM+j6TagEIoa0AQT1IU fLhg== X-Gm-Message-State: AOAM5335Nmgt0REJbAgnrgfZghOF9uogOrKQyaLeJgvMDmzDkYsMTJZE 7B15Gr9iaVpQ7OEXkcexPN8= X-Received: by 2002:ac2:5583:: with SMTP id v3mr4301341lfg.142.1632815879316; Tue, 28 Sep 2021 00:57:59 -0700 (PDT) Received: from eldfell ([194.136.85.206]) by smtp.gmail.com with ESMTPSA id t26sm1839672lfp.173.2021.09.28.00.57.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Sep 2021 00:57:59 -0700 (PDT) Date: Tue, 28 Sep 2021 10:57:46 +0300 From: Pekka Paalanen To: Rob Clark Cc: dri-devel , "moderated list:DMA BUFFER SHARING FRAMEWORK" , Daniel Vetter , Christian =?UTF-8?B?S8O2bmln?= , Michel =?UTF-8?B?RMOkbnplcg==?= , Rob Clark , Sumit Semwal , Gustavo Padovan , Christian =?UTF-8?B?S8O2bmln?= , "open list:SYNC FILE FRAMEWORK" , open list Subject: Re: [PATCH v3 8/9] dma-buf/sync_file: Add SET_DEADLINE ioctl Message-ID: <20210928105746.02304ece@eldfell> In-Reply-To: References: <20210903184806.1680887-1-robdclark@gmail.com> <20210903184806.1680887-9-robdclark@gmail.com> <20210927114201.1f8fdc17@eldfell> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/Rs768WPBICg6UtwLCHHF1rS"; protocol="application/pgp-signature"; micalg=pgp-sha256 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --Sig_/Rs768WPBICg6UtwLCHHF1rS Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Mon, 27 Sep 2021 07:36:05 -0700 Rob Clark wrote: > On Mon, Sep 27, 2021 at 1:42 AM Pekka Paalanen wrot= e: > > > > On Fri, 3 Sep 2021 11:47:59 -0700 > > Rob Clark wrote: > > =20 > > > From: Rob Clark > > > > > > The initial purpose is for igt tests, but this would also be useful f= or > > > compositors that wait until close to vblank deadline to make decisions > > > about which frame to show. > > > > > > Signed-off-by: Rob Clark > > > --- > > > drivers/dma-buf/sync_file.c | 19 +++++++++++++++++++ > > > include/uapi/linux/sync_file.h | 20 ++++++++++++++++++++ > > > 2 files changed, 39 insertions(+) ... > > > diff --git a/include/uapi/linux/sync_file.h b/include/uapi/linux/sync= _file.h > > > index ee2dcfb3d660..f67d4ffe7566 100644 > > > --- a/include/uapi/linux/sync_file.h > > > +++ b/include/uapi/linux/sync_file.h > > > @@ -67,6 +67,18 @@ struct sync_file_info { > > > __u64 sync_fence_info; > > > }; > > > > > > +/** > > > + * struct sync_set_deadline - set a deadline on a fence > > > + * @tv_sec: seconds elapsed since epoch > > > + * @tv_nsec: nanoseconds elapsed since the time given by the tv_sec > > > + * @pad: must be zero =20 > > > > Hi Rob, > > > > I think you need to specify which clock this timestamp must be in. > > > > Which epoch? Sounds a bit like CLOCK_REALTIME to me which would not > > make sense. =20 >=20 > It should be monotonic.. same clock as is used for vblank timestamps, > which I assume that would be the most straightforward thing for > compositors to use Yes, it would. Just need to document that. :-) Thanks, pq --Sig_/Rs768WPBICg6UtwLCHHF1rS Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEJQjwWQChkWOYOIONI1/ltBGqqqcFAmFSyvoACgkQI1/ltBGq qqeyDg//TgGFseKo6XsdPl96lErZgm+vJZuY8rYpdTY7P6E0EsQ9Vtq3/++8mAIT 7t6mRK8jHVBS/bGQdEtBVnhMW2A63qSZTCPTjNmaAyhFfc0L866fU+QV7MJViv3U h6G9sbm3dDiMo76ZdWjSTTLSmNcEiH1gk9mUSbRUZjDBC+uRcnyKy3scGAgrfV1H 9vllcGoKzjIiDnN1sAh9iNOj43bVOkMa4tyIUm26AQn72PJ3OH8EZDJrPmUdkt6P gJl4Xp5p48igf7J4uJG1zUEKGfP9zEw7q8RBJluKTRKqh/dW9k+GXaeJbpmfwzS9 1mVm0NXvvXGSM8jrhZudaBzxY2QBrdQGk96OCzqO3sl92HD2H6FnYfNZekKrsY0t ILXLeDGHTTEwzgtMHUTjdQS9lgSJvR6M0fC8oPytuxcObdBZFAxjXLoFNslyd6SH WhP10nfpzFc3Rt4LOocO9XBJxGGuH6ZktfCKyrSkjN99dcAvHNnCTaNcPSjYcVqp ViWPGJnsY5ggoItTL3aQBuTDA7AVtz/q7CJDMS5/cOzjg2Ro7JJSjs/q8ViUlIQ+ XUDYGHsJXrhrXQCp0EiySoAtWgcZuNO+K4wC6cPz9Umm/Lq6WD/C75XNYohrgE2c pAT2Sit3CbAfa5Y4P3p1OObimLtUJo29BVLbT/D2CZ+gpKjZw5Q= =g9NP -----END PGP SIGNATURE----- --Sig_/Rs768WPBICg6UtwLCHHF1rS--