All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tomasz Figa <tfiga@chromium.org>
To: Hans Verkuil <hverkuil@xs4all.nl>
Cc: Linux Media Mailing List <linux-media@vger.kernel.org>,
	Paul Kocialkowski <paul.kocialkowski@bootlin.com>
Subject: Re: [PATCHv2 00/10] Post-v18: Request API updates
Date: Sat, 1 Sep 2018 00:18:49 +0900	[thread overview]
Message-ID: <CAAFQd5BENL=0mOizPRBudSPGAsB752eh9gVkuAbrmR5GM+8RWA@mail.gmail.com> (raw)
In-Reply-To: <20180828134911.44086-1-hverkuil@xs4all.nl>

On Tue, Aug 28, 2018 at 10:49 PM Hans Verkuil <hverkuil@xs4all.nl> wrote:
>
> From: Hans Verkuil <hans.verkuil@cisco.com>
>
> Hi all,
>
> This patch series sits on top of my v18 series for the Request API.
> It makes some final (?) changes as discussed in:
>
> https://www.mail-archive.com/linux-media@vger.kernel.org/msg134419.html
>
> and:
>
> https://www.spinics.net/lists/linux-media/msg138596.html
>
> The combined v18 patches + this series is available here:
>
> https://git.linuxtv.org/hverkuil/media_tree.git/log/?h=reqv18-1
>
> Updated v4l-utils for this is available here:
>
> https://git.linuxtv.org/hverkuil/v4l-utils.git/log/?h=request
>
> Userspace visible changes:
>
> - Invalid request_fd values now return -EINVAL instead of -ENOENT.
> - It is no longer possible to use VIDIOC_G_EXT_CTRLS for requests
>   that are not completed. -EACCES is returned in that case.
> - Attempting to use requests if requests are not supported by the driver
>   will result in -EACCES instead of -EPERM.
>
> Driver visible changes (important for the cedrus driver!):
>
> Drivers should set the new vb2_queue 'supports_request' bitfield to 1
> if a vb2_queue can support requests. Otherwise the queue cannot be
> used with requests.
>
> This bitfield is also used to fill in the new capabilities field
> in struct v4l2_requestbuffers and v4l2_create_buffers.
>
> Changes since v1:
>
> - Updated patch 4/10 to explain how to query the capabilities
>   with REQBUFS/CREATE_BUFS with a minimum of side-effects
>   (requested by Tomasz).
> - Added patches 6-10:
>   6: Sakari found a corner case: when accessing a request the
>      request has to be protected from being re-inited. New
>      media_request_(un)lock_for_access helpers are added for this.
>   7: use these helpers in g_ext_ctrls.
>   8: make s/try_ext_ctrls more robust by keeping the request
>      references until we're fully done setting/trying the controls.
>   9: Change two more EPERM's to EACCES. EPERM suggests that you can
>      fix it by changing permissions somehow, but in this case the
>      driver simply doesn't support requests at all.
>   10: Update the request documentation based on Laurent's comments:
>       https://www.spinics.net/lists/linux-media/msg139152.html
>       To do: split off the V4L2 specifics into a V4L2 specific
>       rst file. But this will take more time and is for later.

For all the patches which still don't have my Reviewed-by, except
patch 9/10 ("media-request: EPERM -> EACCES"):

Reviewed-by: Tomasz Figa <tfiga@chromium.org>

Thanks a lot for this great work!

Best regards,
Tomasz

      parent reply	other threads:[~2018-08-31 19:27 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-08-28 13:49 [PATCHv2 00/10] Post-v18: Request API updates Hans Verkuil
2018-08-28 13:49 ` [PATCHv2 01/10] media-request: return -EINVAL for invalid request_fds Hans Verkuil
2018-08-28 13:49 ` [PATCHv2 02/10] v4l2-ctrls: return -EACCES if request wasn't completed Hans Verkuil
2018-08-28 13:49 ` [PATCHv2 03/10] buffer.rst: only set V4L2_BUF_FLAG_REQUEST_FD for QBUF Hans Verkuil
2018-08-28 13:49 ` [PATCHv2 04/10] videodev2.h: add new capabilities for buffer types Hans Verkuil
2018-08-28 13:49 ` [PATCHv2 05/10] vb2: set reqbufs/create_bufs capabilities Hans Verkuil
2018-08-28 13:49 ` [PATCHv2 06/10] media-request: add media_request_(un)lock_for_access Hans Verkuil
2018-08-28 19:27   ` Hans Verkuil
2018-08-28 13:49 ` [PATCHv2 07/10] v4l2-ctrls: use media_request_(un)lock_for_access Hans Verkuil
2018-08-31 14:55   ` Tomasz Figa
2018-08-31 15:01     ` Tomasz Figa
2018-08-28 13:49 ` [PATCHv2 08/10] v4l2-ctrls: improve media_request_(un)lock_for_update Hans Verkuil
2018-08-28 13:49 ` [PATCHv2 09/10] media-request: EPERM -> EACCES Hans Verkuil
2018-08-30 10:15   ` Sakari Ailus
2018-08-30 11:51     ` Hans Verkuil
2018-08-30 13:04       ` Sakari Ailus
2018-08-31 15:10         ` Tomasz Figa
2018-08-28 13:49 ` [PATCHv2 10/10] media-request: update documentation Hans Verkuil
2018-08-31 15:18 ` Tomasz Figa [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAAFQd5BENL=0mOizPRBudSPGAsB752eh9gVkuAbrmR5GM+8RWA@mail.gmail.com' \
    --to=tfiga@chromium.org \
    --cc=hverkuil@xs4all.nl \
    --cc=linux-media@vger.kernel.org \
    --cc=paul.kocialkowski@bootlin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.