Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp540958imm; Mon, 21 May 2018 10:03:04 -0700 (PDT) X-Google-Smtp-Source: AB8JxZohCgoNx1WGMDgO7KsgPMyexf+pUDoNpyvC3IjlakMaUSIWsba5M681hCi/vbgtN798iAY9 X-Received: by 2002:a62:883:: with SMTP id 3-v6mr21018139pfi.154.1526922184797; Mon, 21 May 2018 10:03:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526922184; cv=none; d=google.com; s=arc-20160816; b=j3YTUpCmnbuY1c6t4+J8cV1AUsz8gJWR6+On1WvIS3rhCz3h5BldxbQfnEncWiOytF CgWvoSG7l8cvckXrqYv+0iCc4Qm/ygeUNecfjpfO1U3BhYot5qIuUrgPY/1t3DxpYH6S X8WSJZoNQFmPXmMBl8hLwbKDDNumc/GRFCIt0XLjkDxkHMRHiJUrxpNM8uEQOLZwbXRd P8pE/dhtBSSM70y4ez/kQqi7iIfqBLfJhSGbry9I/sVma24ydgnfqiGCHna84MaGlI0r HnIwbkPRldf7eCJLxU1HhjbfV6xJHYMR7OUMiw/HmVcf3wvHfz7HEV2vINhTW+XogvqX 0e7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=bpNyap9BCkKfG7BiIvsl6tHFnkREWeea1/7UCZsnANs=; b=ujQGo8lQi9tpNiaf5VTBw5nBkatrt47En+/tXiB/uJqqq679RjwS5q9N43MupNxEn+ KFrrcc7mhpbMGfSdBT94k9p+PsXRCjcrJEyVTJOjpicOo1+c0UbeIlbcI7EZMxRlb7nN fM0EDmzkTHAvMUNJh/OgULx78tmr7xQyNBNh3PZyheDYu9B35hcnqMjzuhZ61XiLcbxh OQ0Z1cGcnBXMWF13bBMzPXHcJnlljxEhVpBtXZ03xc6KOdIBkjt4U9BNlEqcFk5JyWUt tbb2yXJVdYz+8/AqFSWn7VJ+1LwXd1c1YrVxiTuMHbjPJliNvZYpN0vCA8NsZMt8Lzyk B1Wg== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u17-v6si14539758plj.182.2018.05.21.10.02.49; Mon, 21 May 2018 10:03:04 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753434AbeEURCa (ORCPT + 99 others); Mon, 21 May 2018 13:02:30 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:44464 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753031AbeEURCZ (ORCPT ); Mon, 21 May 2018 13:02:25 -0400 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: ezequiel) with ESMTPSA id ECDD92730E1 From: Ezequiel Garcia To: linux-media@vger.kernel.org Cc: kernel@collabora.com, Hans Verkuil , Mauro Carvalho Chehab , Shuah Khan , Pawel Osciak , Alexandre Courbot , Sakari Ailus , Brian Starkey , linux-kernel@vger.kernel.org, Gustavo Padovan , Ezequiel Garcia Subject: [PATCH v10 14/16] v4l: introduce the fences capability Date: Mon, 21 May 2018 13:59:44 -0300 Message-Id: <20180521165946.11778-15-ezequiel@collabora.com> X-Mailer: git-send-email 2.16.3 In-Reply-To: <20180521165946.11778-1-ezequiel@collabora.com> References: <20180521165946.11778-1-ezequiel@collabora.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. v2: minor doc/english fix (Hans Verkuil) 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..df3ad57f07a3 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 supports explicit synchronization. * - ``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 1f18dc68ecab..cab35fca7c7f 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 */ -- 2.16.3