Re: [PATCH v8 11/13] [media] v4l: introduce the fences capability
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`` >- 0x1000 >- This is a touch device. > +* - ``V4L2_CAP_FENCES`` > + - 0x2000 > + - The device support explicit synchronization. support -> supports > * - ``V4L2_CAP_DEVICE_CAPS`` >- 0x8000 >- 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 0x0400 /* streaming I/O ioctls > */ > > #define V4L2_CAP_TOUCH 0x1000 /* Is a touch device */ > +#define V4L2_CAP_FENCES 0x2000 /* Supports explicit > synchronization */ > > #define V4L2_CAP_DEVICE_CAPS0x8000 /* sets device > capabilities field */ > > Regards, Hans
Re: [PATCH v8 11/13] [media] v4l: introduce the fences capability
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`` >- 0x1000 >- This is a touch device. > +* - ``V4L2_CAP_FENCES`` > + - 0x2000 > + - The device support explicit synchronization. support -> supports > * - ``V4L2_CAP_DEVICE_CAPS`` >- 0x8000 >- 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 0x0400 /* streaming I/O ioctls > */ > > #define V4L2_CAP_TOUCH 0x1000 /* Is a touch device */ > +#define V4L2_CAP_FENCES 0x2000 /* Supports explicit > synchronization */ > > #define V4L2_CAP_DEVICE_CAPS0x8000 /* sets device > capabilities field */ > > Regards, Hans
[PATCH v8 11/13] [media] v4l: introduce the fences capability
From: Gustavo PadovanDrivers 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`` - 0x1000 - This is a touch device. +* - ``V4L2_CAP_FENCES`` + - 0x2000 + - The device support explicit synchronization. * - ``V4L2_CAP_DEVICE_CAPS`` - 0x8000 - 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 0x0400 /* streaming I/O ioctls */ #define V4L2_CAP_TOUCH 0x1000 /* Is a touch device */ +#define V4L2_CAP_FENCES 0x2000 /* Supports explicit synchronization */ #define V4L2_CAP_DEVICE_CAPS0x8000 /* sets device capabilities field */ -- 2.14.3
[PATCH v8 11/13] [media] v4l: introduce the fences capability
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`` - 0x1000 - This is a touch device. +* - ``V4L2_CAP_FENCES`` + - 0x2000 + - The device support explicit synchronization. * - ``V4L2_CAP_DEVICE_CAPS`` - 0x8000 - 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 0x0400 /* streaming I/O ioctls */ #define V4L2_CAP_TOUCH 0x1000 /* Is a touch device */ +#define V4L2_CAP_FENCES 0x2000 /* Supports explicit synchronization */ #define V4L2_CAP_DEVICE_CAPS0x8000 /* sets device capabilities field */ -- 2.14.3