Re: [PATCH v3 10/13] media: v4l2-fwnode: Update V4L2_FWNODE_CSI2_MAX_DATA_LANES to 8

2020-12-07 Thread Hans Verkuil
On 03/12/2020 19:59, Sowjanya Komatineni wrote: > Some CSI2 receivers support 8 data lanes. > > So, this patch updates CSI2 maximum data lanes to be 8. > > Signed-off-by: Sowjanya Komatineni > --- > drivers/media/platform/ti-vpe/cal-camerarx.c | 2 +- > include/media/v4l2-fwnode.h

Re: [PATCH v2 1/3] v4l: Add HDR10 static metadata controls

2020-12-07 Thread Hans Verkuil
On 07/12/2020 10:06, Stanimir Varbanov wrote: > > > On 12/2/20 1:12 PM, Hans Verkuil wrote: >> On 24/11/2020 00:02, Stanimir Varbanov wrote: >>> Add Content light level and Mastering display colour volume v4l2 >>> compounf controls, relevant payload structur

Re: [PATCH v5 2/7] media: v4l2: Add extended buffer operations

2020-12-03 Thread Hans Verkuil
On 23/11/2020 18:40, Helen Koike wrote: > > > On 11/23/20 12:46 PM, Tomasz Figa wrote: >> On Tue, Nov 24, 2020 at 12:08 AM Helen Koike >> wrote: >>> >>> Hi Hans, >>> >>> Thank you for your review. >>> >>> On 9/9/20 9:2

Re: [PATCH v5 13/14] media: uapi: move H264 stateless controls out of staging

2020-12-03 Thread Hans Verkuil
On 03/12/2020 10:28, Mauro Carvalho Chehab wrote: > Em Thu, 26 Nov 2020 06:36:17 -0300 > Ezequiel Garcia escreveu: > >> The H264 stateless controls is ready to be part >> of the stable uAPI. >> >> Re-number the control IDs, move them to the newly >> created stateless control class, and updates al

Re: [PATCH v3 3/3] media: uapi: mpeg2: Split sequence and picture parameters

2020-12-03 Thread Hans Verkuil
On 02/12/2020 22:46, Ezequiel Garcia wrote: > On Wed, 2020-12-02 at 16:11 +0100, Hans Verkuil wrote: >> Hi Ezequiel, >> >> Some small comments: >> >> On 30/11/2020 19:52, Ezequiel Garcia wrote: >>> Typically, bitstreams are composed of one sequence he

Re: [PATCH v3 2/4] media: meson: Add M2M driver for the Amlogic GE2D Accelerator Unit

2020-12-02 Thread Hans Verkuil
On 02/12/2020 15:56, Neil Armstrong wrote: > Hi Hans, > > On 02/12/2020 13:40, Hans Verkuil wrote: >> On 17/11/2020 09:44, Neil Armstrong wrote: >>> The GE2D is a 2D accelerator with various features like configurable blitter >>> with alpha blending, frame rotatio

Re: [PATCH v3 3/3] media: uapi: mpeg2: Split sequence and picture parameters

2020-12-02 Thread Hans Verkuil
Hi Ezequiel, Some small comments: On 30/11/2020 19:52, Ezequiel Garcia wrote: > Typically, bitstreams are composed of one sequence header NAL unit, > followed by a number of picture header and picture coding extension > NAL units. Each picture can be composed by a number of slices. > > Let's spl

Re: [PATCH v3 0/6] ARM: dts: sun8i: v3s: Enable video decoder

2020-12-02 Thread Hans Verkuil
Hi Martin, Maxime, On 16/11/2020 13:56, Martin Cerveny wrote: > First patch extends cedrus capability to all decoders > because V3s missing MPEG2 decoder. > > Next two patches add system control node (SRAM C1) and > next three patches add support for Cedrus VPU. I've picked up patches 1, 4 and

Re: [PATCH 1/4] v4l2-ctrl: Make display delay and display enable std controls

2020-12-02 Thread Hans Verkuil
On 09/11/2020 18:35, Stanimir Varbanov wrote: > Make display delay and display delay enable MFC controls standard v4l > controls. This will allow reuse of the controls for other decoder > drivers. Also the new proposed controls are now codec agnostic because > they could be used for any codec. > >

Re: [PATCH v3 1/3] media: v4l2-ctrl: Add frame-specific min/max qp controls for hevc

2020-12-02 Thread Hans Verkuil
Hi Dikshita, Just a few nitpicks, I'd have changed it myself, but since a new version is needed anyway you might as well change it for next time :-) On 18/11/2020 07:54, Dikshita Agarwal wrote: > - Adds min/max qp controls for B frame for h264. > - Adds min/max qp controls for I/P/B frames for he

Re: [PATCH v4] media: v4l2-ctrl: add control for long term reference.

2020-12-02 Thread Hans Verkuil
On 01/12/2020 09:13, Dikshita Agarwal wrote: > Long Term Reference (LTR) frames are the frames that are encoded > sometime in the past and stored in the DPB buffer list to be used > as reference to encode future frames. > This change adds controls to enable this feature. > > Signed-off-by: Dikshit

Re: [PATCH v3] media: v4l2-ctrl: Add base layer priority id control.

2020-12-02 Thread Hans Verkuil
On 23/11/2020 09:50, Dikshita Agarwal wrote: > This control indicates the priority id to be applied id -> ID (ditto in the subject) > to base layer. > > Signed-off-by: Dikshita Agarwal > --- > Documentation/userspace-api/media/v4l/ext-ctrls-codec.rst | 9 + > drivers/media/v4l2-core/v

Re: [PATCH v3 3/3] venus: venc: Add support for frame-specific min/max qp controls

2020-12-02 Thread Hans Verkuil
On 18/11/2020 07:54, Dikshita Agarwal wrote: > Add support for frame type specific min and max qp controls > for encoder. > > Signed-off-by: Dikshita Agarwal > --- > drivers/media/platform/qcom/venus/core.h | 18 + > drivers/media/platform/qcom/venus/venc.c | 21 --- >

Re: [PATCH v3 2/4] media: meson: Add M2M driver for the Amlogic GE2D Accelerator Unit

2020-12-02 Thread Hans Verkuil
On 17/11/2020 09:44, Neil Armstrong wrote: > The GE2D is a 2D accelerator with various features like configurable blitter > with alpha blending, frame rotation, scaling, format conversion and colorspace > conversion. > > The driver implements a Memory2Memory VB2 V4L2 streaming device permitting: >

Re: [PATCH v3 0/4] media: meson: Add support for the Amlogic GE2D Accelerator Unit

2020-12-02 Thread Hans Verkuil
On 17/11/2020 09:44, Neil Armstrong wrote: > The GE2D is a 2D accelerator with various features like configurable blitter > with alpha blending, frame rotation, scaling, format conversion and colorspace > conversion. > > The driver implements a Memory2Memory VB2 V4L2 streaming device permitting: >

Re: [PATCH 3/4] media: v4l2-ctrls: Add control for AUD generation

2020-12-02 Thread Hans Verkuil
On 30/11/2020 10:08, Stanimir Varbanov wrote: > Add a control to enable inserting of AUD NALU into encoded > bitstream. > > Signed-off-by: Stanimir Varbanov > --- > Documentation/userspace-api/media/v4l/ext-ctrls-codec.rst | 5 + > drivers/media/v4l2-core/v4l2-ctrls.c |

Re: [PATCH v5 09/10] media: Avoid parsing quantization and huffman tables

2020-12-02 Thread Hans Verkuil
On 12/11/2020 04:05, Mirela Rabulea (OSS) wrote: > From: Mirela Rabulea > > These are optional in struct v4l2_jpeg_header, so do not parse if > not requested, save some time. > > Signed-off-by: Mirela Rabulea > --- > drivers/media/v4l2-core/v4l2-jpeg.c | 6 ++ > 1 file changed, 6 insertion

Re: [PATCH v2] media: coda: Convert the driver to DT-only

2020-12-02 Thread Hans Verkuil
On 02/12/2020 11:35, Fabio Estevam wrote: > Since 5.10-rc1 i.MX is a devicetree-only platform, so simplify the code > by removing the unused non-DT support. You forgot to Cc to linux-media. Please repost so it will end up in the media patchwork! Regards, Hans > > Signed-off-by: Fabio E

Re: KASAN: use-after-free Read in v4l2_fh_init

2020-12-02 Thread Hans Verkuil
On 19/10/2020 00:01, Rustam Kovhaev wrote: > On Fri, Apr 19, 2019 at 07:36:05AM -0700, syzbot wrote: >> Hello, >> >> syzbot found the following crash on: >> >> HEAD commit:d34f9519 usb-fuzzer: main usb gadget fuzzer driver >> git tree: https://github.com/google/kasan/tree/usb-fuzzer >> co

Re: [PATCH v2 1/3] v4l: Add HDR10 static metadata controls

2020-12-02 Thread Hans Verkuil
On 24/11/2020 00:02, Stanimir Varbanov wrote: > Add Content light level and Mastering display colour volume v4l2 > compounf controls, relevant payload structures and validation. compounf -> compound > > Signed-off-by: Stanimir Varbanov > --- > drivers/media/v4l2-core/v4l2-ctrls.c | 62

Re: [PATCH v2 2/3] docs: media: Document CLL and Mastering display

2020-12-02 Thread Hans Verkuil
On 24/11/2020 00:02, Stanimir Varbanov wrote: > Document Content light level and Mastering display colour volume. > > Signed-off-by: Stanimir Varbanov > --- > .../media/v4l/ext-ctrls-codec.rst | 71 +++ > 1 file changed, 71 insertions(+) > > diff --git a/Documentatio

Re: [PATCH] staging: media: imx: drop dependency on ipuv3

2020-12-02 Thread Hans Verkuil
On 09/11/2020 10:13, Martin Kepplinger wrote: > As described in NXPs' linux tree, the imx8m SoC includes the same > CSI bridge hardware that is part of imx7d. We should be able to > use the "fsl,imx7-csi" driver for imx8m directly. > > Since ipuv3 is not relevant for imx8m, drop the build dependen

Re: [PATCHv3] media: vb2: always set buffer cache sync hints

2020-11-30 Thread Hans Verkuil
On 29/11/2020 04:15, Sergey Senozhatsky wrote: > We need to always set ->need_cache_sync_on_prepare and > ->need_cache_sync_on_finish when we initialize vb2 buffer. > > Currently these flags are set/adjusted only in V4L2's > vb2_queue_or_prepare_buf(), which means that for the code > paths that do

Re: [PATCH] media: vb2: always set buffer cache sync hints

2020-11-27 Thread Hans Verkuil
On 27/11/2020 15:30, Sergey Senozhatsky wrote: > On (20/11/27 13:59), Hans Verkuil wrote: >> >> I think this needs a comment, basically explaining what you said in >> the commit log. It's not obvious from the code that this is a >> workaround. > > Something

Re: v4l2-compliance: v4l2-test-formats.cpp(265): unknown flag 000001e0 returned

2020-11-27 Thread Hans Verkuil
On 27/11/2020 15:00, Naresh Kamboju wrote: > FYI, > you might have seen this problem, but for the record I am reporting here, > Following test cases have been failing for a while on the mainline kernel. > Please find crash log and git short between bad and good commit. > > List of failed test case

Re: [PATCH] media: vb2: always set buffer cache sync hints

2020-11-27 Thread Hans Verkuil
On 27/11/2020 10:41, Sergey Senozhatsky wrote: > We need to always set ->need_cache_sync_on_prepare and > ->need_cache_sync_on_finish when we initialize vb2 buffer. > > Currently these flags are set/adjusted only in V4L2's > vb2_queue_or_prepare_buf(), which means that for the code > paths that do

Re: [PATCH v4 13/13] media: docs: Move the H264 stateless codec uAPI

2020-11-25 Thread Hans Verkuil
On 23/11/2020 15:40, Ezequiel Garcia wrote: > Now that we've destaged the H264 stateless codec controls, > and with all the pieces in place, update the documentation > and move it to its own section. > > Signed-off-by: Ezequiel Garcia > --- > .../userspace-api/media/v4l/common.rst| 1 +

Re: [PATCH v4 13/13] media: docs: Move the H264 stateless codec uAPI

2020-11-25 Thread Hans Verkuil
On 23/11/2020 15:40, Ezequiel Garcia wrote: > Now that we've destaged the H264 stateless codec controls, > and with all the pieces in place, update the documentation > and move it to its own section. > > Signed-off-by: Ezequiel Garcia > --- > .../userspace-api/media/v4l/common.rst| 1 +

Re: [PATCH v4 12/13] media: uapi: move H264 stateless controls out of staging

2020-11-25 Thread Hans Verkuil
On 23/11/2020 15:39, Ezequiel Garcia wrote: > The H264 stateless controls is ready to be part > of the stable uAPI. > > Re-number the control IDs, move them to the newly > created stateless control class, and updates all > the drivers accordingly. > > Signed-off-by: Ezequiel Garcia > --- > driv

Re: [PATCH v4 07/13] media: controls: Validate H264 stateless controls

2020-11-25 Thread Hans Verkuil
On 23/11/2020 15:39, Ezequiel Garcia wrote: > Check that all the fields that correspond or are related > to a H264 specification syntax element have legal values. > > Signed-off-by: Ezequiel Garcia > --- > drivers/media/v4l2-core/v4l2-ctrls.c | 128 +++ > include/media/h2

Re: [PATCH v5 7/7] media: docs: add documentation for the Extended API

2020-11-20 Thread Hans Verkuil
On 20/11/2020 13:40, Tomasz Figa wrote: > On Fri, Nov 20, 2020 at 9:24 PM Hans Verkuil wrote: >> >> On 20/11/2020 12:06, Tomasz Figa wrote:z >>> Hi Helen, >>> >>> On Tue, Aug 04, 2020 at 04:29:39PM -0300, Helen Koike wrote: >>>> Add documentat

Re: [PATCH v5 7/7] media: docs: add documentation for the Extended API

2020-11-20 Thread Hans Verkuil
On 20/11/2020 12:06, Tomasz Figa wrote:z > Hi Helen, > > On Tue, Aug 04, 2020 at 04:29:39PM -0300, Helen Koike wrote: >> Add documentation and update references in current documentation for the >> Extended API. >> > > Thank you for the patch. Please see my comments inline. > >> Signed-off-by: He

Re: [PATCH v6 09/17] media/videbuf1|2: Mark follow_pfn usage as unsafe

2020-11-20 Thread Hans Verkuil
On 20/11/2020 11:51, Daniel Vetter wrote: > On Fri, Nov 20, 2020 at 11:39 AM Hans Verkuil wrote: >> >> On 20/11/2020 10:18, Daniel Vetter wrote: >>> On Fri, Nov 20, 2020 at 9:28 AM Hans Verkuil wrote: >>>> >>>> On 20/11/2020 09:06, Hans Verkuil

Re: [PATCH v6 09/17] media/videbuf1|2: Mark follow_pfn usage as unsafe

2020-11-20 Thread Hans Verkuil
On 20/11/2020 10:18, Daniel Vetter wrote: > On Fri, Nov 20, 2020 at 9:28 AM Hans Verkuil wrote: >> >> On 20/11/2020 09:06, Hans Verkuil wrote: >>> On 19/11/2020 15:41, Daniel Vetter wrote: >>>> The media model assumes that buffers are all preallocated, s

Re: [PATCH v3 08/13] media: controls: Add the stateless codec control class

2020-11-20 Thread Hans Verkuil
On 18/11/2020 19:46, Ezequiel Garcia wrote: > Add a new control class to hold the stateless codecs controls > that are ready to be moved out of staging. > > Signed-off-by: Ezequiel Garcia > --- > drivers/media/v4l2-core/v4l2-ctrls.c | 5 + > include/uapi/linux/v4l2-controls.h | 7 +++ >

Re: [PATCH v3 07/13] media: controls: Validate H264 stateless controls

2020-11-20 Thread Hans Verkuil
On 18/11/2020 19:46, Ezequiel Garcia wrote: > Check that all the fields that correspond or are related > to a H264 specification syntax element have legal values. > > Signed-off-by: Ezequiel Garcia > --- > drivers/media/v4l2-core/v4l2-ctrls.c | 83 > 1 file changed,

Re: [PATCH v3 04/13] media: Rename stateful codec control macros

2020-11-20 Thread Hans Verkuil
On 18/11/2020 19:46, Ezequiel Garcia wrote: > For historical reasons, stateful codec controls are named > as {}_MPEG_{}. While we can't at this point sanely > change all control IDs (such as V4L2_CID_MPEG_VIDEO_VP8_FRAME_HEADER), > we can least change the more meaningful macros such as classes > ma

Re: [PATCH v3 00/13] Stateless H.264 de-staging

2020-11-20 Thread Hans Verkuil
> In case someone wants to give this a test. > > Here's compliance output, with today's master branch: > > commit 11da65eee7a271bba3f21d8117cdac428fe3a91e (HEAD -> master, > origin/master, origin/HEAD) > Author: Hans Verkuil > Date: Sat Nov 14 13:41:14 2

Re: [PATCH v6 09/17] media/videbuf1|2: Mark follow_pfn usage as unsafe

2020-11-20 Thread Hans Verkuil
On 20/11/2020 09:06, Hans Verkuil wrote: > On 19/11/2020 15:41, Daniel Vetter wrote: >> The media model assumes that buffers are all preallocated, so that >> when a media pipeline is running we never miss a deadline because the >> buffers aren't allocated or available.

Re: [PATCH v6 06/17] media: videobuf2: Move frame_vector into media subsystem

2020-11-20 Thread Hans Verkuil
Hubbard > Acked-by: Mauro Carvalho Chehab > Acked-by: Tomasz Figa Acked-by: Hans Verkuil Thanks! Hans > Signed-off-by: Daniel Vetter > Cc: Jason Gunthorpe > Cc: Pawel Osciak > Cc: Marek Szyprowski > Cc: Kyungmin Park > Cc: Tomasz Figa > Cc: Mauro C

Re: [PATCH v6 09/17] media/videbuf1|2: Mark follow_pfn usage as unsafe

2020-11-20 Thread Hans Verkuil
ffects > the zerocopy userptr usage enabled in 50ac952d2263 ("[media] > videobuf2-dma-sg: Support io userptr operations on io memory"). > > Acked-by: Tomasz Figa Acked-by: Hans Verkuil Thanks! Hans > Signed-off-by: Daniel Vetter > Cc: Jason Gunthorpe >

Re: [PATCH v2] media: v4l2-ctrl: Add base layer priority id control.

2020-11-17 Thread Hans Verkuil
Nicolas, can you take a look at this with your codec knowledge? Some other review comments below: On 15/10/2020 13:05, Dikshita Agarwal wrote: > This control indicates the priority id to be applied > to base layer. > > Signed-off-by: Dikshita Agarwal > --- > Documentation/userspace-api/media/v

Re: [PATCH v3] media: v4l2-ctrl: add control for long term reference.

2020-11-17 Thread Hans Verkuil
Hi Dikshita, I'm happy with the controls themselves, but the documentation needs more work: On 15/10/2020 13:01, Dikshita Agarwal wrote: > LTR (Long Term Reference) frames are the frames that are encoded > sometime in the past and stored in the DPB buffer list to be used > as reference to encode

Re: [PATCH v2 0/6] ARM: dts: sun8i: v3s: Enable video decoder

2020-11-16 Thread Hans Verkuil
On 16/11/2020 13:07, Martin Cerveny wrote: > Hello. > > On Mon, 16 Nov 2020, Martin Cerveny wrote: >> On Mon, 16 Nov 2020, Hans Verkuil wrote: >>> On 15/11/2020 19:59, Martin Cerveny wrote: >>>> On Thu, 5 Nov 2020, Hans Verkuil wrote: >>>>> On 1

Re: [PATCH v2 0/6] ARM: dts: sun8i: v3s: Enable video decoder

2020-11-16 Thread Hans Verkuil
On 15/11/2020 19:59, Martin Cerveny wrote: > Hello. > > On Thu, 5 Nov 2020, Hans Verkuil wrote: > >> Hi Martin, >> >> On 12/09/2020 16:30, Martin Cerveny wrote: >>> First patch extends cedrus capability to all decoders >>> because V3s missing MP

Re: [PATCH v2 9/9] media: docs: Move the H264 stateless codec uAPI

2020-11-14 Thread Hans Verkuil
On 13/11/2020 22:51, Ezequiel Garcia wrote: > Now that we've destaged the H264 stateless codec controls, > and with all the pieces in place, update the documentation > and move it to its own section. > > Signed-off-by: Ezequiel Garcia > --- > .../userspace-api/media/v4l/common.rst| 1 +

Re: [PATCH v2 0/9] Stateless H.264 de-staging

2020-11-14 Thread Hans Verkuil
On 13/11/2020 22:51, Ezequiel Garcia wrote: > Now that H.264 stateless controls are solid, we can get it > out of staging. > > Following some guidelines from Hans, this series creates a > new stateless control class for the stable codec controls to land. > > While here, I'm including a patch from

Re: [PATCH v2 3/9] media: Rename stateful codec control macros

2020-11-14 Thread Hans Verkuil
On 13/11/2020 22:51, Ezequiel Garcia wrote: > For historical reasons, stateful codec controls are named > as {}_MPEG_{}. While we can't at this point sanely > change all control IDs (such as V4L2_CID_MPEG_VIDEO_VP8_FRAME_HEADER), > we can least change the more meaningful macros such as classes > ma

Re: [PATCH 5/5] media: uapi: move H264 stateless controls out of staging

2020-11-12 Thread Hans Verkuil
On 12/11/2020 12:57, Ezequiel Garcia wrote: > The H264 stateless control class is ready to be part > of the stable uAPI. > > The control IDs and types are re-numbered and moved > to a newly created stateless control class, and > a new documentation section is created. This patch needs to be split

Re: [PATCH 3/5] media: Rename stateful codec control macros

2020-11-12 Thread Hans Verkuil
On 12/11/2020 12:57, Ezequiel Garcia wrote: > For historical reasons, stateful codec controls are named > as {}_MPEG_{}. While we can't at this point sanely > change all control IDs (such as V4L2_CID_MPEG_VIDEO_VP8_FRAME_HEADER), > we can least change the more meaningful macros such as classes > ma

Re: [PATCH 0/7] sunxi: Remove the calls to dma_direct_set_offset

2020-11-11 Thread Hans Verkuil
On 06/11/2020 16:14, Maxime Ripard wrote: > Hi, > > Here's an attempt to removing the dma_direct_set_offset calls we have in > numerous drivers and move all those quirks into a global notifier as suggested > by Robin. For patches 4-7: Acked-by: Hans Verkuil It's fin

Re: [PATCH v2 2/4] media: meson: Add M2M driver for the Amlogic GE2D Accelerator Unit

2020-11-11 Thread Hans Verkuil
On 30/10/2020 15:37, Neil Armstrong wrote: > The GE2D is a 2D accelerator with various features like configurable blitter > with alpha blending, frame rotation, scaling, format conversion and colorspace > conversion. > > The driver implements a Memory2Memory VB2 V4L2 streaming device permitting: >

Re: [PATCH] media: v4l2-mem2mem: always call poll_wait() on queues

2020-11-11 Thread Hans Verkuil
On 11/11/2020 13:41, Alexandre Courbot wrote: > On Thu, Nov 5, 2020 at 11:05 PM Alexandre Courbot wrote: >> >> On Thu, Nov 5, 2020 at 10:12 PM Hans Verkuil >> wrote: >>> >>> On 05/11/2020 13:52, Alexandre Courbot wrote: >>>> On Th

Re: [PATCH v2 1/2] media: v4l2-ctrl: Add frame-specific min/max qp controls for hevc

2020-11-11 Thread Hans Verkuil
On 21/09/2020 15:03, Dikshita Agarwal wrote: > - Adds min/max qp controls for B frame for h264. > - Adds min/max qp controls for I/P/B frames for hevc similar to h264. > - Update valid range of mim/max qp for hevc to accommodate 10 bit. > > Signed-off-by: Dikshita Agarwal > --- > .../userspace-a

Re: [PATCH v2 2/2] media: v4l2-ctrl: Add layer wise bitrate controls for h264

2020-11-11 Thread Hans Verkuil
On 21/09/2020 15:04, Dikshita Agarwal wrote: > Adds bitrate control for all coding layers for h264 > same as hevc. > > Signed-off-by: Dikshita Agarwal > --- > .../userspace-api/media/v4l/ext-ctrls-codec.rst | 20 > > drivers/media/v4l2-core/v4l2-ctrls.c

Re: [PATCH v2 0/2] Add new controls for QP and layer bitrate

2020-11-11 Thread Hans Verkuil
On 24/09/2020 19:42, Nicolas Dufresne wrote: > Le lundi 21 septembre 2020 à 18:33 +0530, Dikshita Agarwal a écrit : >> This series adds frame specific min/max qp controls for hevc and layer >> wise bitrate control for h264. > > Any chance you could append your driver changes with this set ? I don'

Re: [PATCH 2/3] docs: media: Document CLL and Mastering display

2020-11-10 Thread Hans Verkuil
On 09/11/2020 18:31, Stanimir Varbanov wrote: > Document Content light level and Mastering display colour volume. > > Signed-off-by: Stanimir Varbanov > --- > .../media/v4l/ext-ctrls-codec.rst | 61 +++ > 1 file changed, 61 insertions(+) > > diff --git a/Documentatio

Re: [PATCH 1/3] v4l: Add HDR10 HEVC static metadata controls

2020-11-10 Thread Hans Verkuil
On 09/11/2020 18:31, Stanimir Varbanov wrote: > Add Content light level and Mastering display colour volume v4l2 > compounf controls, relevant payload structures and validation. Typo: compounf -> compound > > Signed-off-by: Stanimir Varbanov > --- > drivers/media/v4l2-core/v4l2-ctrls.c | 61 ++

Re: [PATCH 0/3] HDR10 static metadata

2020-11-10 Thread Hans Verkuil
On 10/11/2020 10:38, Hans Verkuil wrote: > On 09/11/2020 20:53, Nicolas Dufresne wrote: >> Le lundi 09 novembre 2020 à 19:31 +0200, Stanimir Varbanov a écrit : >>> Hello, >>> >>> This patchset adds two HDR10 HEVC v4l2 controls for Content Light Level >>

Re: [PATCH 0/3] HDR10 static metadata

2020-11-10 Thread Hans Verkuil
On 09/11/2020 20:53, Nicolas Dufresne wrote: > Le lundi 09 novembre 2020 à 19:31 +0200, Stanimir Varbanov a écrit : >> Hello, >> >> This patchset adds two HDR10 HEVC v4l2 controls for Content Light Level >> and Mastering display colour volume plus implenmentation in Venus encoder >> driver. >> >> C

Re: [PATCH v2 10/10] media: tegra-video: Add support for x8 captures with gang ports

2020-11-09 Thread Hans Verkuil
Hi Sowjanya, On 27/10/2020 04:19, Sowjanya Komatineni wrote: > Tegra VI/CSI hardware don't have native 8 lane capture support. > > Each CSI port has max 4 lanes only. So for x8 captures, consecutive > ports are ganged up for left half and right half captures on to each > x4 ports with buffer offs

Re: [PATCH v2 03/10] media: tegra-video: Fix V4L2 pixel format for RGB888_1X24

2020-11-09 Thread Hans Verkuil
On 27/10/2020 04:19, Sowjanya Komatineni wrote: > V4L2 pixel format is incorrect for RGB888_1X24. > > This patch fixes it. > > Signed-off-by: Sowjanya Komatineni > --- > drivers/staging/media/tegra-video/tegra210.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/driver

Re: [PATCH v2 2/3] media: rockchip: rkisp1: destage Rockchip ISP1 driver

2020-11-05 Thread Hans Verkuil
On 30/10/2020 12:22, Helen Koike wrote: > All the items in the TODO list were addressed, uapi was reviewed, > documentation written, checkpatch errors fixed, several bugs fixed. > > There is no big reason to keep this driver in staging, so move it out. > > Signed-off-by: Helen Koike Mauro held

Re: [PATCH v2 1/3] media: videodev2.h, v4l2-ioctl: add rkisp1 meta buffer format

2020-11-05 Thread Hans Verkuil
On 30/10/2020 12:22, Helen Koike wrote: > From: Shunqian Zheng > > Add the Rockchip ISP1 specific processing parameter format > V4L2_META_FMT_RK_ISP1_PARAMS and metadata format > V4L2_META_FMT_RK_ISP1_STAT_3A for 3A. > > Signed-off-by: Shunqian Zheng > Signed-off-by: Jacob Chen > Signed-off-by

Re: [PATCH v2 0/6] ARM: dts: sun8i: v3s: Enable video decoder

2020-11-05 Thread Hans Verkuil
Hi Martin, On 12/09/2020 16:30, Martin Cerveny wrote: > First patch extends cedrus capability to all decoders > because V3s missing MPEG2 decoder. > > Next two patches add system control node (SRAM C1) and > next three patches add support for Cedrus VPU. > > Tested on "Lichee Zero" V3s platform

Re: [PATCH] media: v4l2-mem2mem: always call poll_wait() on queues

2020-11-05 Thread Hans Verkuil
On 05/11/2020 13:52, Alexandre Courbot wrote: > On Thu, Nov 5, 2020 at 9:36 PM Hans Verkuil wrote: >> >> On 05/11/2020 13:21, Alexandre Courbot wrote: >>> On Tue, Nov 3, 2020 at 6:48 PM Hans Verkuil >>> wrote: >>>> >>>> On 03/11/2020 09:5

Re: [PATCH] media: v4l2-mem2mem: always call poll_wait() on queues

2020-11-05 Thread Hans Verkuil
On 05/11/2020 13:21, Alexandre Courbot wrote: > On Tue, Nov 3, 2020 at 6:48 PM Hans Verkuil wrote: >> >> On 03/11/2020 09:51, Alexandre Courbot wrote: >>> Hi Hans, >>> >>> On Sat, Oct 31, 2020 at 12:09 AM Hans Verkuil >>> wrote: >

Re: [EXT] Re: [PATCH v4 00/11] Add V4L2 driver for i.MX8 JPEG Encoder/Decoder

2020-11-04 Thread Hans Verkuil
On 04/11/2020 14:27, Mirela Rabulea wrote: > Hi Hans, > > On Wed, 2020-11-04 at 12:55 +0100, Hans Verkuil wrote: >> >> So please recompile v4l2-compliance from the git repo and retest. If >> you find new failures, then you probably need to post a v5, otherwise >&

Re: [PATCH v4 00/11] Add V4L2 driver for i.MX8 JPEG Encoder/Decoder

2020-11-04 Thread Hans Verkuil
On 04/11/2020 12:52, Hans Verkuil wrote: > On 02/11/2020 04:08, Mirela Rabulea (OSS) wrote: >> From: Mirela Rabulea >> >> Changes in v4: >> The main change is using the common jpeg helpers in imx-jpeg >> Summary of changes: >> Patch 1, 2, 3, 5,

Re: [PATCH v4 00/11] Add V4L2 driver for i.MX8 JPEG Encoder/Decoder

2020-11-04 Thread Hans Verkuil
On 02/11/2020 04:08, Mirela Rabulea (OSS) wrote: > From: Mirela Rabulea > > Changes in v4: > The main change is using the common jpeg helpers in imx-jpeg > Summary of changes: > Patch 1, 2, 3, 5, 6 - no change > Patch 4 - small update: VFL_TYPE_VIDEO-> VFL_TYPE_GRABBER and 2 typos > Patch 7 - new

Re: [PATCH] v4l: Add source change event for colorimetry

2020-11-03 Thread Hans Verkuil
On 13/10/2020 16:56, Tomasz Figa wrote: > On Tue, Oct 13, 2020 at 4:53 PM Stanimir Varbanov > wrote: >> >> >> >> On 10/13/20 5:07 PM, Tomasz Figa wrote: >>> On Tue, Oct 13, 2020 at 3:53 PM Stanimir Varbanov >>> wrote: On 10/13/20 4:40 PM, Tomasz Figa wrote: > On Tue, Oct 1

Re: [PATCH] media: v4l2-mem2mem: always call poll_wait() on queues

2020-11-03 Thread Hans Verkuil
On 03/11/2020 09:51, Alexandre Courbot wrote: > Hi Hans, > > On Sat, Oct 31, 2020 at 12:09 AM Hans Verkuil > wrote: >> >> On 22/10/2020 14:24, Alexandre Courbot wrote: >>> do_poll()/do_select() seem to set the _qproc member of poll_table to >>> NULL

Re: [PATCH] media: v4l2-mem2mem: always call poll_wait() on queues

2020-10-30 Thread Hans Verkuil
On 22/10/2020 14:24, Alexandre Courbot wrote: > do_poll()/do_select() seem to set the _qproc member of poll_table to > NULL the first time they are called on a given table, making subsequent > calls of poll_wait() on that table no-ops. This is a problem for mem2mem > which calls poll_wait() on the

Re: [PATCH v2 0/6] ARM: dts: sun8i: v3s: Enable video decoder

2020-10-30 Thread Hans Verkuil
Maxime, Are you OK with this series? It looks good to me. Regards, Hans On 12/09/2020 16:30, Martin Cerveny wrote: > First patch extends cedrus capability to all decoders > because V3s missing MPEG2 decoder. > > Next two patches add system control node (SRAM C1) and > next three patch

Re: [PATCH v1 1/2] gpu: host1x: Allow COMPILE_TEST to build host1x driver on all platforms

2020-10-30 Thread Hans Verkuil
Thierry, On 30/09/2020 05:02, Sowjanya Komatineni wrote: > Tegra V4L2 driver has dependency on this host1x driver and currently > host1x driver is allowed to build with COMPILE_TEST only on ARM and > this also limits Tegra V4L2 driver building. > > So, this patch allows building host1x driver wit

Re: [PATCH] media: v4l2-compat-ioctl32: check for max size

2020-10-30 Thread Hans Verkuil
On 19/10/2020 13:54, Defang Bo wrote: > Similar to commit("media: v4l2-compat-ioctl32: prevent go past > max size"} ,add max size check for count variable. > > Signed-off-by: Defang Bo > --- > drivers/media/v4l2-core/v4l2-compat-ioctl32.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-)

Re: [PATCH 2/7] media: platform: add missing put_device() call in mtk_jpeg_probe()

2020-10-30 Thread Hans Verkuil
On 09/10/2020 14:37, Yu Kuai wrote: > if mtk_jpeg_clk_init() succeed, mtk_jpeg_probe() doesn't have a > corresponding put_device(). Thus add put_device() in jump target to fix > the exception handling for this function implementation. > > Fixes: b2f0d2724ba4 ("[media] vcodec: mediatek: Add Mediate

Re: [PATCH 0/2] destage Rockchip ISP1 driver

2020-10-30 Thread Hans Verkuil
On 30/10/2020 06:51, Helen Koike wrote: > Hello, > > I think it is time to move this driver out of staging. > > Thanks all who contributed, specially to Dafna, who put a lot of > effort addressing all the items in the TODO list, fixing bugs, > cleaning the code, addressing past comments and testi

Re: [PATCH 0/8] media: v4l2: simplify compat ioctl handling

2020-10-29 Thread Hans Verkuil
Hi Arnd, On 06/10/2020 17:28, Hans Verkuil wrote: > Hi Arnd, > > On 06/10/2020 17:14, Arnd Bergmann wrote: >> >> As you suggested earlier, I will resend the fixed series after -rc1 >> is out. > > Looking forward to that. FYI: v5.10-rc1 was just merged into the

Re: [PATCH v2] media: mtk-vcodec: fix builds when remoteproc is disabled

2020-10-08 Thread Hans Verkuil
On 08/10/2020 16:02, Alexandre Courbot wrote: > Hi Hans, thanks for taking the time to look at this! > > On Thu, Oct 8, 2020 at 10:12 PM Hans Verkuil wrote: >> >> On 08/10/2020 15:07, Hans Verkuil wrote: >>> Hi Alexandre, >>> >>> On 04/10/2020 14:2

Re: [PATCH v2] media: mtk-vcodec: fix builds when remoteproc is disabled

2020-10-08 Thread Hans Verkuil
On 08/10/2020 15:07, Hans Verkuil wrote: > Hi Alexandre, > > On 04/10/2020 14:22, Alexandre Courbot wrote: >> The addition of MT8183 support added a dependency on the SCP remoteproc >> module. However the initial patch used the "select" Kconfig directive, >>

Re: [PATCH v2] media: mtk-vcodec: fix builds when remoteproc is disabled

2020-10-08 Thread Hans Verkuil
Hi Alexandre, On 04/10/2020 14:22, Alexandre Courbot wrote: > The addition of MT8183 support added a dependency on the SCP remoteproc > module. However the initial patch used the "select" Kconfig directive, > which may result in the SCP module to not be compiled if remoteproc was > disabled. In su

Re: [PATCH 0/8] media: v4l2: simplify compat ioctl handling

2020-10-06 Thread Hans Verkuil
Hi Arnd, On 06/10/2020 17:14, Arnd Bergmann wrote: > On Fri, Oct 2, 2020 at 4:32 PM Hans Verkuil wrote: >> On 17/09/2020 17:28, Arnd Bergmann wrote: > >> While testing I found a lot of bugs. Below is a patch that sits on top >> of your series and fixes all the bugs: >

Re: [PATCH 2/3] media: mtk-vcodec: add missing put_device() call in mtk_vcodec_init_dec_pm()

2020-10-03 Thread Hans Verkuil
On 24/09/2020 10:18, Yu Kuai wrote: > if of_find_device_by_node() succeed, mtk_vcodec_init_dec_pm() doesn't have > a corresponding put_device(). Thus add jump target to fix the exception > handling for this function implementation. > > Fixes: 590577a4e525 ("[media] vcodec: mediatek: Add Mediatek V

Re: media/master bisection: v4l2-compliance-vivid.Format-ioctls-Input-3.VIDIOC_TRY_FMT on qemu_arm-virt-gicv3

2020-10-02 Thread Hans Verkuil
> >>> media: vivid: Add support to the CSC API >>> >>> The CSC API (Colorspace conversion) allows userspace to try >>> to configure the colorspace, transfer function, Y'CbCr/HSV encoding >>> and the quantization for capture devices.

Re: [PATCH 0/8] media: v4l2: simplify compat ioctl handling

2020-10-02 Thread Hans Verkuil
red, also when in_compat_syscall() - video_usercopy: err = v4l2_compat_put_array_args overwrote the original ioctl err value. Handle this correctly. I've tested this as well with the y2038 compat mode (i686 with 64-bit time_t) and that too works fine. Regards, Hans Signed-off-by: Ha

Re: [PATCH] media: v4l2-mem2mem: Fix spurious v4l2_m2m_buf_done

2020-09-28 Thread Hans Verkuil
t; vb2_buffer_done+0x208/0x2a0 > > Fix it by removing the spurious v4l2_m2m_buf_done. > > Reported-by: Adrian Ratiu > Fixes: 911ea8ec42dea ("media: v4l2-mem2mem: add v4l2_m2m_suspend, > v4l2_m2m_resume") > Signed-off-by: Ezequiel Garcia Reviewed-by: Hans Verkuil

Re: [PATCH RFT/RFC v2 00/47] staging: media: bring back zoran driver

2020-09-28 Thread Hans Verkuil
On 28/09/2020 15:53, Laurent Pinchart wrote: > Hi Hans, > > On Mon, Sep 28, 2020 at 03:45:03PM +0200, Hans Verkuil wrote: >> On 25/09/2020 20:30, Corentin Labbe wrote: >>> Hello >>> >>> The zoran driver was removed in 5.3 >>> The main reason of t

Re: [PATCH RFT/RFC v2 00/47] staging: media: bring back zoran driver

2020-09-28 Thread Hans Verkuil
Hi Corentin, On 25/09/2020 20:30, Corentin Labbe wrote: > Hello > > The zoran driver was removed in 5.3 > The main reason of the removing was lack of motivation to convert it to > VB2 > Since I need it, I worked on bringing it back. > > So the plan to achieve it was: > - clean up the coding styl

Re: [PATCH 3/3] media: i2c: Introduce a driver for the Techwell TW9900 decoder

2020-09-25 Thread Hans Verkuil
Hi Maxime, Some comments below, this driver needs to be changed: On 18/09/2020 16:24, Maxime Chevallier wrote: > The Techwell video decoder supports PAL, NTSC and SECAM input formats, > and outputs a BT.656 signal. > > This commit adds support for this device, based on an implementation > made b

Re: [PATCH v2 4/4] media: docs: v4l2-subdev: move calling ops to a subsection

2020-09-24 Thread Hans Verkuil
On 21/09/2020 22:21, Luca Ceresoli wrote: > Documentation on how to call the subdev ops is currently in the middle of > synchronous and asynchronous registration. Move it to a dedicated > subsection after the registration methods. > > Also move the final paragraph "The advantage of using v4l2_subd

Re: [PATCH] media: uapi: h264: Add documentation to the interface header

2020-09-24 Thread Hans Verkuil
Hi Ezequiel, On 21/09/2020 21:38, Ezequiel Garcia wrote: > In preparation for making the interface public, > document all the structures. Special care is taken to > annotate those fields that depart from the H264 syntax. > > This commit only adds documentation and doesn't affect > functionality i

Re: [PATCH] media: platform: s3c-camif: Fix runtime PM imbalance in s3c_camif_open

2020-09-17 Thread Hans Verkuil
On 22/05/2020 10:29, Dinghao Liu wrote: > pm_runtime_get_sync() increments the runtime PM usage counter even > when it returns an error code. Thus a pairing decrement is needed on > the error handling path to keep the counter balanced. > > Also, call pm_runtime_put() and v4l2_fh_release() when sen

Re: [PATCH] media: mtk-jpeg: Fix a reference count leak.

2020-09-17 Thread Hans Verkuil
On 14/06/2020 01:08, wu000...@umn.edu wrote: > From: Qiushi Wu > > pm_runtime_get_sync() increments the runtime PM usage counter even > when it returns an error code. Thus call pm_runtime_put_noidle() > if pm_runtime_get_sync() fails. > > Fixes: b2f0d2724ba4 ("[media] vcodec: mediatek: Add Media

Re: [PATCH] media: sti: Fix reference count leaks

2020-09-17 Thread Hans Verkuil
Hi Jean-Christophe, I'll take this patch, but while reviewing it I noticed something else: On 14/06/2020 05:31, wu000...@umn.edu wrote: > From: Qiushi Wu > > pm_runtime_get_sync() increments the runtime PM usage counter even > when it returns an error code, causing incorrect ref count if > pm_r

Re: [PATCH v3] media: rcar-vin: Enable YDS bit depending on bus_width and data_shift

2020-09-17 Thread Hans Verkuil
On 17/09/2020 12:19, Niklas Söderlund wrote: > Hi Hans, > > On 2020-09-17 11:58:16 +0200, Hans Verkuil wrote: >> On 17/09/2020 10:57, Hans Verkuil wrote: >>> Hi Prabhakar, >>> >>> Can you rebase this patch? It no longer applies. >> >> Never mi

Re: [PATCH] media: cedrus: Propagate OUTPUT resolution to CAPTURE

2020-09-17 Thread Hans Verkuil
On 14/05/2020 17:39, Nicolas Dufresne wrote: > As per spec, the CAPTURE resolution should be automatically set based on > the OTUPUT resolution. This patch properly propagate width/height to the > capture when the OUTPUT format is set and override the user provided > width/height with configured OU

Re: [PATCH v3] media: rcar-vin: Enable YDS bit depending on bus_width and data_shift

2020-09-17 Thread Hans Verkuil
On 17/09/2020 10:57, Hans Verkuil wrote: > Hi Prabhakar, > > Can you rebase this patch? It no longer applies. Never mind, my mistake. When I was preparing this patch I also had this patch applied: https://patchwork.linuxtv.org/project/linux-media/patch/1595602732-25582-3-git-s

Re: [PATCH v3] media: rcar-vin: Enable YDS bit depending on bus_width and data_shift

2020-09-17 Thread Hans Verkuil
Hi Prabhakar, Can you rebase this patch? It no longer applies. Regards, Hans On 13/09/2020 20:16, Lad Prabhakar wrote: > Enable YDS bit if bus_width and data_shift is set to 8 in parallel mode > for MEDIA_BUS_FMT_UYVY8_2X8 format. > > Signed-off-by: Lad Prabhakar > Reviewed-by: Biju D

Re: [PATCH] media: s5p-mfc: set V4L2_BUF_FLAG_LAST flag on final buffer

2020-09-17 Thread Hans Verkuil
Added Sylwester and Tomasz. I'd like to have an Ack of a driver maintainer before merging. Regards, Hans On 02/05/2020 21:40, Andriy Gelman wrote: > From: Andriy Gelman > > As per V4L2 api, the final buffer should set V4L2_BUF_FLAG_LAST flag. > > Signed-off-by: Andriy Gelman > --- >

<    1   2   3   4   5   6   7   8   9   10   >