Re: [RFC PATCHv2 5/5] cedrus: add tag support

2018-11-12 Thread Hans Verkuil
On 11/12/2018 05:47 PM, Paul Kocialkowski wrote: > Hi, > > On Mon, 2018-11-12 at 09:33 +0100, Hans Verkuil wrote: >> Replace old reference frame indices by new tag method. > > I tested this for the cedrus driver and it works properly! > Thanks a lot for implementating this for our driver. > I hav

Re: [RFC PATCHv2 0/5] vb2/cedrus: add tag support

2018-11-12 Thread Hans Verkuil
On 11/12/2018 05:32 PM, Paul Kocialkowski wrote: > Hi, > > On Mon, 2018-11-12 at 09:33 +0100, Hans Verkuil wrote: >> As was discussed here (among other places): >> >> https://lkml.org/lkml/2018/10/19/440 >> >> using capture queue buffer indices to refer to reference frames is >> not a good idea. A

Re: [PATCH] media: venus: amend buffer size for bitstream plane

2018-11-12 Thread mgottam
On 2018-11-12 18:04, Stanimir Varbanov wrote: Hi Tomasz, On 10/23/2018 05:50 AM, Tomasz Figa wrote: Hi Malathi, On Tue, Oct 9, 2018 at 4:58 PM Malathi Gottam wrote: For lower resolutions, incase of encoder, the compressed frame size is more than half of the corresponding input YUV. Keep th

RE: [PATCH 0/2] sony-cxd2880: add optional vcc regulator

2018-11-12 Thread Yasunari.Takiguchi
Hi Neil, I am not familiar to this vcc function but I check this compile is ok. Acked-by: Yasunari Takiguchi > -Original Message- > From: Neil Armstrong [mailto:narmstr...@baylibre.com] > Sent: Thursday, November 8, 2018 9:50 PM > To: Takiguchi, Yasunari (SSS) > Cc: Neil Armstrong; mch

RE: [PATCH] media: cxd2880-spi: fix probe when dvb_attach fails

2018-11-12 Thread Yasunari.Takiguchi
Hi Neil, Thanks for finding that. Acked-by: Yasunari Takiguchi > -Original Message- > From: Neil Armstrong [mailto:narmstr...@baylibre.com] > Sent: Thursday, November 8, 2018 9:45 PM > To: Takiguchi, Yasunari (SSS) > Cc: Neil Armstrong; mche...@kernel.org; linux-media@vger.kernel.org;

cron job: media_tree daily build: WARNINGS

2018-11-12 Thread Hans Verkuil
This message is generated daily by a cron job that builds media_tree for the kernels and architectures in the list below. Results of the daily build of media_tree: date: Tue Nov 13 05:00:10 CET 2018 media-tree git hash:fbe57dde7126d1b2712ab5ea93fb9d15f89de708 media_build git

Re: [PATCH v2 10/11] [media] marvell-ccic: use async notifier to get the sensor

2018-11-12 Thread kbuild test robot
Hi Lubomir, I love your patch! Yet something to improve: [auto build test ERROR on linuxtv-media/master] [also build test ERROR on v4.20-rc1 next-20181112] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci

RE: [PATCH v7 15/16] intel-ipu3: Add imgu top level pci device driver

2018-11-12 Thread Zhi, Yong
Hi, Sakari, Thanks again for the code review. > -Original Message- > From: Sakari Ailus [mailto:sakari.ai...@linux.intel.com] > Sent: Friday, November 9, 2018 6:54 AM > To: Zhi, Yong > Cc: linux-media@vger.kernel.org; tf...@chromium.org; > mche...@kernel.org; hans.verk...@cisco.com; > la

WARNING in dma_buf_vunmap

2018-11-12 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:ccda4af0f4b9 Linux 4.20-rc2 git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=12e15b8340 kernel config: https://syzkaller.appspot.com/x/.config?x=4a0a89f12ca9b0f5 dashboard link: https://syzkaller.a

Re: [PATCH v5 0/5] Make sure .device_run is always called in non-atomic context

2018-11-12 Thread Ezequiel Garcia
On Mon, 12 Nov 2018 at 13:52, Paul Kocialkowski wrote: > > Hi, > > On Sun, 2018-11-11 at 18:26 -0300, Ezequiel Garcia wrote: > > On Thu, 2018-10-18 at 15:02 -0300, Ezequiel Garcia wrote: > > > This series goal is to avoid drivers from having ad-hoc code > > > to call .device_run in non-atomic cont

[PATCH v5 1/2] dt-bindings: media: Add Aspeed Video Engine binding documentation

2018-11-12 Thread Eddie James
Document the bindings. Signed-off-by: Eddie James Reviewed-by: Rob Herring --- .../devicetree/bindings/media/aspeed-video.txt | 26 ++ 1 file changed, 26 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/aspeed-video.txt diff --git a/Documentatio

[PATCH v5 2/2] media: platform: Add Aspeed Video Engine driver

2018-11-12 Thread Eddie James
The Video Engine (VE) embedded in the Aspeed AST2400 and AST2500 SOCs can capture and compress video data from digital or analog sources. With the Aspeed chip acting a service processor, the Video Engine can capture the host processor graphics output. Add a V4L2 driver to capture video data and co

[PATCH v5 0/2] media: platform: Add Aspeed Video Engine Driver

2018-11-12 Thread Eddie James
From: Eddie James The Video Engine (VE) embedded in the Aspeed AST2400 and AST2500 SOCs can capture and compress video data from digital or analog sources. With the Aspeed chip acting as a service processor, the Video Engine can capture the host processor graphics output. This series adds a V4L2

Re: VIVID/VIMC and media fuzzing

2018-11-12 Thread Dmitry Vyukov
On Mon, Nov 12, 2018 at 7:11 AM, Hans Verkuil wrote: >> What would be a good improvement is if you add this to the kernel >> command options: >> "vivid.n_devs=2 vivid.multiplanar=1,2" >> >> This will create two vivid instances, one using the single planar API >> and one u

Price Inquiry

2018-11-12 Thread Daniel Murray
Hi,friend, This is Daniel Murray and i am from Sinara Group Co.Ltd Group Co.,LTD in Russia. We are glad to know about your company from the web and we are interested in your products. Could you kindly send us your Latest catalog and price list for our trial order. Best Regards, Daniel Murray

Re: [PATCHv18 01/35] Documentation: v4l: document request API

2018-11-12 Thread Thomas Gleixner
Folks, On Tue, 14 Aug 2018, Hans Verkuil wrote: > From: Alexandre Courbot > > Document the request API for V4L2 devices, and amend the documentation > of system calls influenced by it. > > Signed-off-by: Alexandre Courbot > Signed-off-by: Hans Verkuil > Reviewed-by: Mauro Carvalho Chehab >

Re: [PATCH v5 5/5] media: cedrus: Get rid of interrupt bottom-half

2018-11-12 Thread Paul Kocialkowski
Hi, On Thu, 2018-10-18 at 15:02 -0300, Ezequiel Garcia wrote: > Now that the mem2mem framework guarantees that .device_run > won't be called from interrupt context, it is safe to call > v4l2_m2m_job_finish directly in the top-half. > > So this means the bottom-half is no longer needed and we > ca

Re: [PATCH v5 0/5] Make sure .device_run is always called in non-atomic context

2018-11-12 Thread Paul Kocialkowski
Hi, On Sun, 2018-11-11 at 18:26 -0300, Ezequiel Garcia wrote: > On Thu, 2018-10-18 at 15:02 -0300, Ezequiel Garcia wrote: > > This series goal is to avoid drivers from having ad-hoc code > > to call .device_run in non-atomic context. Currently, .device_run > > can be called via v4l2_m2m_job_finish

Re: [RFC PATCHv2 5/5] cedrus: add tag support

2018-11-12 Thread Paul Kocialkowski
Hi, On Mon, 2018-11-12 at 09:33 +0100, Hans Verkuil wrote: > Replace old reference frame indices by new tag method. I tested this for the cedrus driver and it works properly! Thanks a lot for implementating this for our driver. I have one minor cosmetic comment below. Regarding the padding conce

Re: [RFC PATCHv2 0/5] vb2/cedrus: add tag support

2018-11-12 Thread Paul Kocialkowski
Hi, On Mon, 2018-11-12 at 09:33 +0100, Hans Verkuil wrote: > As was discussed here (among other places): > > https://lkml.org/lkml/2018/10/19/440 > > using capture queue buffer indices to refer to reference frames is > not a good idea. A better idea is to use a 'tag' (thanks to Alexandre > for t

Re: [RFC PATCHv2 1/5] videodev2.h: add tag support

2018-11-12 Thread Paul Kocialkowski
Hi, On Mon, 2018-11-12 at 09:33 +0100, Hans Verkuil wrote: > From: Hans Verkuil > > Add support for 'tags' to struct v4l2_buffer. These can be used > by m2m devices so userspace can set a tag for an output buffer and > this value will then be copied to the capture buffer(s). > > This tag can be

[PATCH 5/7] media: ov5640: support log_status ioctl and event interface

2018-11-12 Thread Akinobu Mita
This adds log_status ioctl and event interface for ov5640's v4l2 controls. Cc: Steve Longerbeam Cc: Sakari Ailus Cc: Mauro Carvalho Chehab Signed-off-by: Akinobu Mita --- drivers/media/i2c/ov5640.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/media/i2c/ov5

[PATCH 6/7] media: ov7670: support log_status ioctl and event interface

2018-11-12 Thread Akinobu Mita
This adds log_status ioctl and event interface for ov7670's v4l2 controls. Cc: Jonathan Corbet Cc: Sakari Ailus Cc: Mauro Carvalho Chehab Signed-off-by: Akinobu Mita --- drivers/media/i2c/ov7670.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/media/i2c/ov767

[PATCH 4/7] media: ov2640: support log_status ioctl and event interface

2018-11-12 Thread Akinobu Mita
This adds log_status ioctl and event interface for ov2640's v4l2 controls. Cc: Sakari Ailus Cc: Mauro Carvalho Chehab Signed-off-by: Akinobu Mita --- drivers/media/i2c/ov2640.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/media/i2c/ov2640.c b/drivers/media/

[PATCH 7/7] media: ov772x: support log_status ioctl and event interface

2018-11-12 Thread Akinobu Mita
This adds log_status ioctl and event interface for ov772x's v4l2 controls. Cc: Jacopo Mondi Cc: Sakari Ailus Cc: Mauro Carvalho Chehab Signed-off-by: Akinobu Mita --- drivers/media/i2c/ov772x.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/media/i2c/ov772x.

[PATCH 3/7] media: ov2640: add V4L2_CID_TEST_PATTERN control

2018-11-12 Thread Akinobu Mita
The ov2640 has the test pattern generator features. This makes use of it through V4L2_CID_TEST_PATTERN control. Cc: Sakari Ailus Cc: Mauro Carvalho Chehab Signed-off-by: Akinobu Mita --- drivers/media/i2c/ov2640.c | 14 +- 1 file changed, 13 insertions(+), 1 deletion(-) diff --gi

[PATCH 2/7] media: mt9m111: add V4L2_CID_COLORFX control

2018-11-12 Thread Akinobu Mita
The mt9m111 has special camera effects feature. This makes use of it through V4L2_CID_COLORFX control. Cc: Sakari Ailus Cc: Mauro Carvalho Chehab Signed-off-by: Akinobu Mita --- drivers/media/i2c/mt9m111.c | 37 - 1 file changed, 36 insertions(+), 1 deletio

[PATCH 1/7] media: mt9m111: support log_status ioctl and event interface

2018-11-12 Thread Akinobu Mita
This adds log_status ioctl and event interface for mt9m111's v4l2 controls. Cc: Sakari Ailus Cc: Mauro Carvalho Chehab Signed-off-by: Akinobu Mita --- drivers/media/i2c/mt9m111.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/media/i2c/mt9m111.c b/drivers/med

[PATCH 0/7] media: i2c: small enhancements for camera sensor drivers

2018-11-12 Thread Akinobu Mita
This patchset addds relatively small enhancements (log_status ioctl, event interface, V4L2_CID_TEST_PATTERN control, and V4L2_CID_COLORFX control) for mt9m111, ov2640, ov5640, ov7670, and ov772x drivers. I have these devices so these patches are tested with real devices. Akinobu Mita (7): media

Re: VIVID/VIMC and media fuzzing

2018-11-12 Thread Hans Verkuil
On 11/10/2018 08:28 PM, Dmitry Vyukov wrote: > On Sat, Nov 10, 2018 at 2:01 AM, Hans Verkuil wrote: >> On 11/09/2018 10:34 PM, Dmitry Vyukov wrote: > What would be a good improvement is if you add this to the kernel command > options: > "vivid.n_devs=2 vivid.multiplanar=1,2" > >>>

Re: [PATCH v2 1/2] media: docs-rst: Document memory-to-memory video decoder interface

2018-11-12 Thread Stanimir Varbanov
Hi Tomasz, On 10/22/18 5:48 PM, Tomasz Figa wrote: > Due to complexity of the video decoding process, the V4L2 drivers of > stateful decoder hardware require specific sequences of V4L2 API calls > to be followed. These include capability enumeration, initialization, > decoding, seek, pause, dynami

Re: [RFP] Which V4L2 ioctls could be replaced by better versions?

2018-11-12 Thread Hans Verkuil
On 11/12/2018 10:29 AM, Philipp Zabel wrote: > Hi Tomasz, > > On Sun, 2018-11-11 at 12:43 +0900, Tomasz Figa wrote: >> On Sat, Nov 10, 2018 at 6:06 AM Nicolas Dufresne >> wrote: >>> >>> Le jeudi 08 novembre 2018 à 16:45 +0900, Tomasz Figa a écrit : > In this patch we should consider a way to

Re: [RFC PATCH v3] media: docs-rst: Document m2m stateless video decoder interface

2018-11-12 Thread Hans Verkuil
Hi Alexandre, Thank you very much for this v3. Comments below. On 10/19/2018 10:09 AM, Alexandre Courbot wrote: > Thanks everyone for the feedback on v2! I have not replied to all the > individual emails but hope this v3 will address some of the problems > raised and become a continuation point f

Re: [PATCH v2 2/2] media: docs-rst: Document memory-to-memory video encoder interface

2018-11-12 Thread Hans Verkuil
On 10/22/2018 04:49 PM, Tomasz Figa wrote: > Due to complexity of the video encoding process, the V4L2 drivers of > stateful encoder hardware require specific sequences of V4L2 API calls > to be followed. These include capability enumeration, initialization, > encoding, encode parameters change, dr

Re: [PATCH] media: venus: amend buffer size for bitstream plane

2018-11-12 Thread Stanimir Varbanov
Hi Tomasz, On 10/23/2018 05:50 AM, Tomasz Figa wrote: > Hi Malathi, > > On Tue, Oct 9, 2018 at 4:58 PM Malathi Gottam wrote: >> >> For lower resolutions, incase of encoder, the compressed >> frame size is more than half of the corresponding input >> YUV. Keep the size as same as YUV considering

Re: [PATCH] media: venus: amend buffer size for bitstream plane

2018-11-12 Thread Stanimir Varbanov
Hi Malathi, Thanks for the patch! On 10/9/18 10:52 AM, Malathi Gottam wrote: > For lower resolutions, incase of encoder, the compressed > frame size is more than half of the corresponding input > YUV. Keep the size as same as YUV considering worst case. > > Signed-off-by: Malathi Gottam > --- >

Re: [PATCH v1 5/5] media: venus: update number of bytes used field properly for EOS frames

2018-11-12 Thread Stanimir Varbanov
Hi Alex, On 11/12/18 10:12 AM, Alexandre Courbot wrote: > Hi Stan, > > On Thu, Nov 8, 2018 at 7:16 PM Stanimir Varbanov > wrote: >> >> Hi, >> >> On 9/29/18 3:00 PM, Srinu Gorle wrote: >>> - In video decoder session, update number of bytes used for >>> yuv buffers appropriately for EOS buffers.

Re: [PATCH] media: venus: change the default value of GOP size

2018-11-12 Thread Stanimir Varbanov
Hi Malathi, Thanks for the patch! On 11/12/18 11:06 AM, Malathi Gottam wrote: > When the client doesn't explicitly set any GOP size, current > default value is low and overshoots bitrate beyond tolerance. > Hence default value is modified so as to have intra period of 1sec. > > Signed-off-by: M

Re: [RFC] mm: Replace all open encodings for NUMA_NO_NODE

2018-11-12 Thread Anshuman Khandual
On 11/12/2018 02:13 PM, Hans Verkuil wrote: > On 11/12/2018 03:41 AM, Anshuman Khandual wrote: >> At present there are multiple places where invalid node number is encoded >> as -1. Even though implicitly understood it is always better to have macros >> in there. Replace these open encodings for

Re: [PATCH v2 1/2] media: docs-rst: Document memory-to-memory video decoder interface

2018-11-12 Thread Hans Verkuil
Hi Tomasz, A general note for the stateful and stateless patches: they describe specific use-cases of the more generic Codec Interface, and as such should be one level deeper in the section hierarchy. I.e. instead of being section 4.6/7/8: https://hverkuil.home.xs4all.nl/request-api/uapi/v4l/dev

[PATCH] media: venus: Support V4L2 QP parameters in Venus encoder

2018-11-12 Thread Kelvin Lawson
Support V4L2 QP parameters in Venus encoder: * V4L2_CID_MPEG_VIDEO_H264_I_FRAME_QP * V4L2_CID_MPEG_VIDEO_H264_B_FRAME_QP * V4L2_CID_MPEG_VIDEO_H264_MIN_QP * V4L2_CID_MPEG_VIDEO_H264_MAX_QP Signed-off-by: Kelvin Lawson --- drivers/media/platform/qcom/venus/venc.c | 19 +++ 1 f

Re: [PATCH] media: v4l: v4l2-controls.h must include types.h

2018-11-12 Thread Jean Delvare
On Mon, 2018-11-12 at 11:03 +0100, Paul Kocialkowski wrote: > On Mon, 2018-11-12 at 11:01 +0100, Jean Delvare wrote: > > Fix the following build-time warning: > > ./usr/include/linux/v4l2-controls.h:1105: found __[us]{8,16,32,64} type > > without #include > > We already have a similar fix in the

Inquiry 12/11/2018

2018-11-12 Thread sinara-group
Hi,friend, This is Daniel Murray and i am from Sinara Group Co.Ltd Group Co.,LTD in Russia. We are glad to know about your company from the web and we are interested in your products. Could you kindly send us your Latest catalog and price list for our trial order. Best Regards, Daniel Murray

Re: [PATCH] media: v4l: v4l2-controls.h must include types.h

2018-11-12 Thread Paul Kocialkowski
Hi, On Mon, 2018-11-12 at 11:01 +0100, Jean Delvare wrote: > Fix the following build-time warning: > ./usr/include/linux/v4l2-controls.h:1105: found __[us]{8,16,32,64} type > without #include We already have a similar fix in the media tree: https://git.linuxtv.org/media_tree.git/commit/?h=reque

Re: [PATCH v2 2/9] phy: Add configuration interface

2018-11-12 Thread Kishon Vijay Abraham I
Hi Maxime, On 06/11/18 8:24 PM, Maxime Ripard wrote: > The phy framework is only allowing to configure the power state of the PHY > using the init and power_on hooks, and their power_off and exit > counterparts. > > While it works for most, simple, PHYs supported so far, some more advanced > PHYs

[PATCH] media: v4l: v4l2-controls.h must include types.h

2018-11-12 Thread Jean Delvare
Fix the following build-time warning: ./usr/include/linux/v4l2-controls.h:1105: found __[us]{8,16,32,64} type without #include Signed-off-by: Jean Delvare Fixes: c27bb30e7b6d ("media: v4l: Add definitions for MPEG-2 slice format and metadata") Cc: Paul Kocialkowski Cc: Mauro Carvalho Chehab

Re: [PATCH v2 8/9] phy: Add Cadence D-PHY support

2018-11-12 Thread Kishon Vijay Abraham I
Hi Maxime, On 06/11/18 8:24 PM, Maxime Ripard wrote: > Cadence has designed a D-PHY that can be used by the, currently in tree, > DSI bridge (DRM), CSI Transceiver and CSI Receiver (v4l2) drivers. > > Only the DSI driver has an ad-hoc driver for that phy at the moment, while > the v4l2 drivers ar

[GIT FIXES FOR v4.20] media-request fixes

2018-11-12 Thread Hans Verkuil
Two trivial fixes: Use proper wait_queue_head_t type. Add compat ioctl. Regards, Hans The following changes since commit fbe57dde7126d1b2712ab5ea93fb9d15f89de708: media: ov7740: constify structures stored in fields of v4l2_subdev_ops structure (2018-11-06 07:17:02 -0500) are availa

Re: [RFP] Which V4L2 ioctls could be replaced by better versions?

2018-11-12 Thread Philipp Zabel
Hi Tomasz, On Sun, 2018-11-11 at 12:43 +0900, Tomasz Figa wrote: > On Sat, Nov 10, 2018 at 6:06 AM Nicolas Dufresne wrote: > > > > Le jeudi 08 novembre 2018 à 16:45 +0900, Tomasz Figa a écrit : > > > > In this patch we should consider a way to tell userspace that this has > > > > been opt in, ot

Re: [PATCH v7 08/16] intel-ipu3: css: Add dma buff pool utility functions

2018-11-12 Thread Sakari Ailus
Hi Yong, On Fri, Nov 09, 2018 at 11:16:44PM +, Zhi, Yong wrote: > Hi, Sakari, > > > -Original Message- > > From: Sakari Ailus [mailto:sakari.ai...@linux.intel.com] > > Sent: Thursday, November 8, 2018 9:36 AM > > To: Zhi, Yong > > Cc: linux-media@vger.kernel.org; tf...@chromium.org;

[PATCH] media: venus: change the default value of GOP size

2018-11-12 Thread Malathi Gottam
When the client doesn't explicitly set any GOP size, current default value is low and overshoots bitrate beyond tolerance. Hence default value is modified so as to have intra period of 1sec. Signed-off-by: Malathi Gottam --- drivers/media/platform/qcom/venus/venc_ctrls.c | 2 +- 1 file changed,

Re: [GIT PULL for v4.20-rc1] new experimental media request API

2018-11-12 Thread Hans Verkuil
On 11/11/2018 09:28 PM, Pavel Machek wrote: > Hi! > >> Em Wed, 31 Oct 2018 11:05:09 -0700 >> Linus Torvalds escreveu: >> >>> On Tue, Oct 30, 2018 at 6:53 AM Mauro Carvalho Chehab >>> wrote: For a new media API: the request API >>> >>> Ugh. I don't know how much being in staging matte

Re: [RFC] mm: Replace all open encodings for NUMA_NO_NODE

2018-11-12 Thread Hans Verkuil
On 11/12/2018 03:41 AM, Anshuman Khandual wrote: > At present there are multiple places where invalid node number is encoded > as -1. Even though implicitly understood it is always better to have macros > in there. Replace these open encodings for an invalid node number with the > global macro NUMA

Re: [PATCH v2] media: venus: add support for selection rectangles

2018-11-12 Thread Alexandre Courbot
On Fri, Nov 9, 2018 at 7:31 PM Tomasz Figa wrote: > > Hi Malathi, > > On Fri, Nov 9, 2018 at 6:20 PM wrote: > > > > On 2018-11-09 07:56, Tomasz Figa wrote: > > > Hi Malathi, > > > > > > On Fri, Nov 9, 2018 at 4:39 PM Malathi Gottam > > > wrote: > > >> > > >> Handles target type crop by setting t

[RFC PATCHv2 5/5] cedrus: add tag support

2018-11-12 Thread Hans Verkuil
Replace old reference frame indices by new tag method. Signed-off-by: Hans Verkuil --- drivers/media/v4l2-core/v4l2-ctrls.c | 9 drivers/staging/media/sunxi/cedrus/cedrus.h | 8 --- .../staging/media/sunxi/cedrus/cedrus_dec.c | 10 + .../staging/media/sunxi/ce

[RFC PATCHv2 3/5] vim2m: add tag support

2018-11-12 Thread Hans Verkuil
From: Hans Verkuil Copy tags in vim2m. Signed-off-by: Hans Verkuil --- drivers/media/platform/vim2m.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/media/platform/vim2m.c b/drivers/media/platform/vim2m.c index d82db738f174..e6ae5a9ac77e 100644 --- a/drivers/media/platform/vim2

[RFC PATCHv2 0/5] vb2/cedrus: add tag support

2018-11-12 Thread Hans Verkuil
As was discussed here (among other places): https://lkml.org/lkml/2018/10/19/440 using capture queue buffer indices to refer to reference frames is not a good idea. A better idea is to use a 'tag' (thanks to Alexandre for the excellent name; it's much better than 'cookie') where the application

[RFC PATCHv2 4/5] vicodec: add tag support

2018-11-12 Thread Hans Verkuil
From: Hans Verkuil Copy tags in vicodec. Signed-off-by: Hans Verkuil --- drivers/media/platform/vicodec/vicodec-core.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/media/platform/vicodec/vicodec-core.c b/drivers/media/platform/vicodec/vicodec-core.c index b292cff26c86..4a6b9

[RFC PATCHv2 2/5] vb2: add tag support

2018-11-12 Thread Hans Verkuil
From: Hans Verkuil Add support for tags to vb2. Besides just storing and setting the tag this patch also adds the vb2_find_tag() function that can be used to find a buffer with the given tag. This function will only look at DEQUEUED and DONE buffers, i.e. buffers that are already processed. Sig

[RFC PATCHv2 1/5] videodev2.h: add tag support

2018-11-12 Thread Hans Verkuil
From: Hans Verkuil Add support for 'tags' to struct v4l2_buffer. These can be used by m2m devices so userspace can set a tag for an output buffer and this value will then be copied to the capture buffer(s). This tag can be used to refer to capture buffers, something that is needed by stateless H

Re: [PATCH v1 5/5] media: venus: update number of bytes used field properly for EOS frames

2018-11-12 Thread Alexandre Courbot
Hi Stan, On Thu, Nov 8, 2018 at 7:16 PM Stanimir Varbanov wrote: > > Hi, > > On 9/29/18 3:00 PM, Srinu Gorle wrote: > > - In video decoder session, update number of bytes used for > > yuv buffers appropriately for EOS buffers. > > > > Signed-off-by: Srinu Gorle > > --- > > drivers/media/platf

Re: [RFC PATCH 0/5] vb2/cedrus: add cookie support

2018-11-12 Thread Hans Verkuil
On 11/12/2018 08:07 AM, Alexandre Courbot wrote: > Hi Hans, > > On Fri, Nov 9, 2018 at 6:56 PM Hans Verkuil wrote: >> >> As was discussed here (among other places): >> >> https://lkml.org/lkml/2018/10/19/440 >> >> using capture queue buffer indices to refer to reference frames is >> not a good id