Received: by 10.213.65.68 with SMTP id h4csp726538imn; Tue, 13 Mar 2018 20:13:36 -0700 (PDT) X-Google-Smtp-Source: AG47ELvbIw0NjLPFtEKPs42oeGqfpROBOjAH9p5unAzQCsfiPZioeO4XWm9pwl/G3d9YqR/iniNC X-Received: by 2002:a17:902:6b4b:: with SMTP id g11-v6mr2537516plt.273.1520997216114; Tue, 13 Mar 2018 20:13:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1520997216; cv=none; d=google.com; s=arc-20160816; b=z1Jq/F5QW+8Xwy/eR+aNOx0YOJ9TbxszS2oykZNDwJR71e79z/t3/FTcDYIsUAHy3j DEmtnOZuz5wxVtMkLb0+RIxQffohuBIE1MHA8YNCadI40PYsidvJ4zfMjN1kjfEb9amR Iaxaz9EJRRlW5IdOo/GzOtALbcW6Or8LXp48X3Z68o+gdfp/7zGO7NVgUJJQUIDiXJy0 I+M6+LDMj3oCB6IWs0yQGcJEFc82uqtl3gCo/glYS4SxZ4pYshAsCBdk7tq2tCsAjska N2G8EiP+VIDVwXQKMB9CT/AkkpFwUsWuVNoAN7TK6H80eJl1afSaVtHTYx4Sm4FJGBgE QRhA== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=tBq3qnwMdBN+hBPXcE4Nfd57M3smrJql9JdhfHDk1xQ=; b=mJ/tX0hFgLhpB33F731gJUcmVMG1qy6fPlyBHRvprVMrYiX+6+0Q+3K9HAaASjfPrW s6Gr5UTT8yfhT3f03FA8cQkkI7YXZ4UppR/o8/G7VW+V+NPSW/wIhBkhfuD8rP0zSkwt EnAgdj8o+F5fUACfoCmc838tG962RRZYryqpI6aMin6KJHcW+DbYErh/otN+sA864KWS 03bb3Fpqm4lRmlVYDJkB4j0dblmPG3snk0O75CPPRGX2SXLsvEJOEU10bCHfgM1V+EcK IP8ILNCZWCwDc8DRxv7yFmVVft706i3hlpUMMDmesROB386IXSPqbK9bCX3PjTRPNKST 6prQ== 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 u10-v6si1156438plu.509.2018.03.13.20.13.21; Tue, 13 Mar 2018 20:13:36 -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 S933342AbeCNDM2 (ORCPT + 99 others); Tue, 13 Mar 2018 23:12:28 -0400 Received: from lb3-smtp-cloud8.xs4all.net ([194.109.24.29]:36387 "EHLO lb3-smtp-cloud8.xs4all.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933192AbeCNDM0 (ORCPT ); Tue, 13 Mar 2018 23:12:26 -0400 Received: from [10.20.15.13] ([96.65.213.252]) by smtp-cloud8.xs4all.net with ESMTPA id vwpvemd1MaXTbvwpzebayw; Wed, 14 Mar 2018 04:12:25 +0100 Subject: Re: [PATCH v8 11/13] [media] v4l: introduce the fences capability To: Gustavo Padovan , linux-media@vger.kernel.org Cc: kernel@collabora.com, Mauro Carvalho Chehab , Shuah Khan , Pawel Osciak , Alexandre Courbot , Sakari Ailus , Brian Starkey , linux-kernel@vger.kernel.org, Gustavo Padovan References: <20180309174920.22373-1-gustavo@padovan.org> <20180309174920.22373-12-gustavo@padovan.org> From: Hans Verkuil Message-ID: <69cd0da1-9f71-6ce9-7ca0-955d9d3fae61@xs4all.nl> Date: Tue, 13 Mar 2018 20:12:19 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: <20180309174920.22373-12-gustavo@padovan.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-CMAE-Envelope: MS4wfBCpVMsX1NWj8Z9951fcgWPWV/YrkzEgs7i0lR9JpR5vdI2cFh1IC3W3Pd0QZzI2T32xW6Q2DkiAGNR9b6q5SHgOAjL6TGdGLA2ewB+3fXvTxml3OiYf I685n46f6s6V6o/ATFVQ+qph9MWN2bQVNoy9OUO6rlwAhT+GW96a3dbq1W3fpFktnHgsHxNPs1bdW6pFAR07oxeksFF58Keba80NlApiv45FWBzkEIvlNWLC H95kcA0nVaDEe2oH/iyje981WOmtFwNVSOXWLrbSg7enjFV2gkxqz7J82mfQbZV0hWqvC3aJKpP5hJ6TXuMp3YWiCDmGEhtTLvew+BTu5Jc385A+7GOl0L/3 JLsTJ6yDhv8JnAbl36ClCDPlDU92smc7vBF33wR7+WcKCQEE3oFRIDZmX/CP9ZiDm6fAOLQmITjYFC9DLak5ZzH0vEkvvCzgIL0+W26wEgwxxtvYiSYBFeNq 7x+PKCNyEvicUu+d Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 03/09/2018 09:49 AM, Gustavo Padovan wrote: > From: Gustavo Padovan > > Drivers capable of using fences (vb2 drivers) should report the > V4L2_CAP_FENCES to userspace, so add this flag to the uapi. > > Signed-off-by: Gustavo Padovan > --- > Documentation/media/uapi/v4l/vidioc-querycap.rst | 3 +++ > include/uapi/linux/videodev2.h | 1 + > 2 files changed, 4 insertions(+) > > diff --git a/Documentation/media/uapi/v4l/vidioc-querycap.rst b/Documentation/media/uapi/v4l/vidioc-querycap.rst > index 66fb1b3d6e6e..414016065309 100644 > --- a/Documentation/media/uapi/v4l/vidioc-querycap.rst > +++ b/Documentation/media/uapi/v4l/vidioc-querycap.rst > @@ -254,6 +254,9 @@ specification the ioctl returns an ``EINVAL`` error code. > * - ``V4L2_CAP_TOUCH`` > - 0x10000000 > - This is a touch device. > + * - ``V4L2_CAP_FENCES`` > + - 0x20000000 > + - The device support explicit synchronization. support -> supports > * - ``V4L2_CAP_DEVICE_CAPS`` > - 0x80000000 > - The driver fills the ``device_caps`` field. This capability can > diff --git a/include/uapi/linux/videodev2.h b/include/uapi/linux/videodev2.h > index 2d424aebdd1e..db58204e346e 100644 > --- a/include/uapi/linux/videodev2.h > +++ b/include/uapi/linux/videodev2.h > @@ -460,6 +460,7 @@ struct v4l2_capability { > #define V4L2_CAP_STREAMING 0x04000000 /* streaming I/O ioctls */ > > #define V4L2_CAP_TOUCH 0x10000000 /* Is a touch device */ > +#define V4L2_CAP_FENCES 0x20000000 /* Supports explicit synchronization */ > > #define V4L2_CAP_DEVICE_CAPS 0x80000000 /* sets device capabilities field */ > > Regards, Hans