Received: by 10.192.165.148 with SMTP id m20csp462114imm; Fri, 4 May 2018 13:10:54 -0700 (PDT) X-Google-Smtp-Source: AB8JxZptHc1CjP3+oKDDeRNrKeZoWYcHy+csyl4Fzh2LKF8p1DRLGrlOuyCED2K/7hXBQXhjBgAn X-Received: by 2002:a63:ab45:: with SMTP id k5-v6mr9671203pgp.199.1525464654924; Fri, 04 May 2018 13:10:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525464654; cv=none; d=google.com; s=arc-20160816; b=TrWdHGkCIRrlcsL8eT5wqr8q2iBL5kHjYMKn9P4kBgqm1VyWsw3Hjsiu8250QpmMJ3 AUuIToKzgC6TDYK5U8voEfZm/y6qoO+o0Gw0dl3eXrmJLyZnk7sQ/FzfMm1TEOq+/sFL cmjFBGgJ2af45I/ldCWu+rIex54Qfw8A57351IVv2yv2YFidiZYSOuUo4N4JMVHmxdPo J8loKwNdUIZfMXxNr9Vmd8I3uS794mOPDSg4LhwuyttB5ZL5er/szrVTy4y2Pl0PrkzR exytT2XBfJDr0zsPNb5N5NaKzdJ8dydi/M3tIIMiBfQGKQN1FDxkEGCgqQfUdW4U9meE 5yVg== 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=HE1ld8IKiUx6pm6NraKuqDHKkcoTuRrgVtmv5FZQtw4crleRQfmlrY4HX5rAR/cxNV WnIDtgSOAqLXLz527gc6grsGWh8ydyCUG6W+MsLZ/nF63B0jMaGJp0HkTs2pBrEEzyuD CdLFNDfI4EvWehu+3a9SEt1FV/f4t99MlUtNlycCYcGLsR1j5eE6++bcUFt7ts+vfjeG aHDt4786FGRoxktVXK58SZiDayyINrb/zIw17vX0l9ug3oNZil4gW5CCi+LXtHYn22S4 h4IcTiTW/432wZgYYM53jl0C4Bptv+/wQc6IMPFJ9RS68wS2Z9hEQBo6/C/R6zZ59WW1 EMEw== 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 c129si17037053pfa.99.2018.05.04.13.10.39; Fri, 04 May 2018 13:10:54 -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 S1752192AbeEDUJz (ORCPT + 99 others); Fri, 4 May 2018 16:09:55 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:54138 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752068AbeEDUIa (ORCPT ); Fri, 4 May 2018 16:08:30 -0400 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: ezequiel) with ESMTPSA id F38D7286550 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 v9 13/15] v4l: introduce the fences capability Date: Fri, 4 May 2018 17:06:10 -0300 Message-Id: <20180504200612.8763-14-ezequiel@collabora.com> X-Mailer: git-send-email 2.16.3 In-Reply-To: <20180504200612.8763-1-ezequiel@collabora.com> References: <20180504200612.8763-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