cron job: media_tree daily build: ERRORS

2018-07-25 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: Thu Jul 26 05:00:11 CEST 2018 media-tree git hash:7ba2eb72f843fb79de1857a39f9a7e8006f8133b media_build

Re: [RFC] media: thermal I2C cameras metadata

2018-07-25 Thread Matt Ranostay
On Wed, Jul 25, 2018 at 2:09 AM, Sakari Ailus wrote: > On Tue, Jul 24, 2018 at 11:05:47PM -0700, Matt Ranostay wrote: >> On Mon, Jul 23, 2018 at 4:35 AM, Sakari Ailus wrote: >> > Hi Matt, >> > >> > On Sun, Jul 15, 2018 at 11:05:42PM -0700, Matt Ranostay wrote: >> >> Hello et all, >> >> >> >> So

Re: Devices with a front and back webcam represented as a single UVC device

2018-07-25 Thread Laurent Pinchart
Hi Javier, On Tuesday, 24 July 2018 15:35:17 EEST Javier Martinez Canillas wrote: > On Thu, Jul 12, 2018 at 3:01 PM, Laurent Pinchart wrote: > > [snip] > > >> Laurent, thank you for your input on this. I thought it was a bit weird > >> that the cam on my HP X2 only had what appears to be the

Re: [RFC] media: thermal I2C cameras metadata

2018-07-25 Thread Matt Ranostay
On Mon, Jul 23, 2018 at 4:35 AM, Sakari Ailus wrote: > Hi Matt, > > On Sun, Jul 15, 2018 at 11:05:42PM -0700, Matt Ranostay wrote: >> Hello et all, >> >> So currently working with some thermal sensors that have coefficients >> that needs to be passed back to userspace that aren't related to the

Re: [GIT PULL FOR v4.19] Various fixes

2018-07-25 Thread jacopo mondi
Hi Mauro, I understand, and I failed to cc the SH people initially. Roping in Sato-san, Rich and the SH list. Could you guys please have a look here? I've gone through the media tree as all these changes sparkled from soc_camera removal, and while I was there I updated the defconfigs before

Re: [RFC] media: thermal I2C cameras metadata

2018-07-25 Thread Sakari Ailus
On Tue, Jul 24, 2018 at 11:05:47PM -0700, Matt Ranostay wrote: > On Mon, Jul 23, 2018 at 4:35 AM, Sakari Ailus wrote: > > Hi Matt, > > > > On Sun, Jul 15, 2018 at 11:05:42PM -0700, Matt Ranostay wrote: > >> Hello et all, > >> > >> So currently working with some thermal sensors that have

Re: [PATCH v3 1/4] venus: firmware: add routine to reset ARM9

2018-07-25 Thread Stanimir Varbanov
Hi Vikash, On 07/04/2018 10:06 PM, Vikash Garodia wrote: > Add routine to reset the ARM9 and brings it out of reset. Also > abstract the Venus CPU state handling with a new function. This > is in preparation to add PIL functionality in venus driver. > > Signed-off-by: Vikash Garodia > --- >

Re: [PATCH v3 2/4] venus: firmware: move load firmware in a separate function

2018-07-25 Thread Stanimir Varbanov
Hi Vikash, On 07/04/2018 10:06 PM, Vikash Garodia wrote: > Separate firmware loading part into a new function. I cannot apply this patch in order to test the series. > > Signed-off-by: Vikash Garodia > --- > drivers/media/platform/qcom/venus/core.c | 4 +- >

Re: [PATCH v3 3/4] venus: firmware: add no TZ boot and shutdown routine

2018-07-25 Thread Stanimir Varbanov
Hi Vikash, On 07/04/2018 10:06 PM, Vikash Garodia wrote: > Video hardware is mainly comprised of vcodec subsystem and video > control subsystem. Video control has ARM9 which executes the video > firmware instructions whereas vcodec does the video frame processing. > This change adds support to

Re: [GIT PULL FOR v4.19] Various fixes

2018-07-25 Thread Mauro Carvalho Chehab
Jacopo, Please don't do top posting! I reordered the thread for it to be at the way it should be. Em Wed, 25 Jul 2018 09:18:53 +0200 jacopo mondi escreveu: > On Tue, Jul 24, 2018 at 07:04:13PM -0300, Mauro Carvalho Chehab wrote: > > Em Wed, 18 Jul 2018 12:38:58 +0200 > > Hans Verkuil

Re: [PATCH v3 18/35] media: camss: Add basic runtime PM support

2018-07-25 Thread Todor Tomov
Hi Sakari, Thank you for review. On 24.07.2018 15:49, Sakari Ailus wrote: > Hi Todor, > > On Mon, Jul 23, 2018 at 02:02:35PM +0300, Todor Tomov wrote: >> There is a PM domain for each of the VFE hardware modules. Add >> support for basic runtime PM support to be able to control the >> PM

[PATCH v6 5/8] ARM: dts: sun5i: Add Video Engine and reserved memory nodes

2018-07-25 Thread Paul Kocialkowski
This adds nodes for the Video Engine and the associated reserved memory for sun5i-based platforms. Up to 96 MiB of memory are dedicated to the CMA pool. The VPU can only map the first 256 MiB of DRAM, so the reserved memory pool has to be located in that area. Following Allwinner's decision in

[PATCH v6 0/8] Cedrus driver for the Allwinner Video Engine, using media requests

2018-07-25 Thread Paul Kocialkowski
This is the sixth iteration of the updated Cedrus driver, that supports the Video Engine found in most Allwinner SoCs, starting with the A10. It was tested on the A13, A20, A33 and H3. The initial version of this driver[0] was originally written and submitted by Florent Revest using a previous

[PATCH v6 2/8] media: v4l: Add definition for Allwinner's MB32-tiled NV12 format

2018-07-25 Thread Paul Kocialkowski
This introduces support for Allwinner's MB32-tiled NV12 format, where each plane is divided into macroblocks of 32x32 pixels. Hence, the size of each plane has to be aligned to 32 bytes. The pixels inside each macroblock are coded as they would be if the macroblock was a single plane, line after

[PATCH v6 3/8] dt-bindings: media: Document bindings for the Cedrus VPU driver

2018-07-25 Thread Paul Kocialkowski
This adds a device-tree binding document that specifies the properties used by the Cedurs VPU driver, as well as examples. Signed-off-by: Paul Kocialkowski Reviewed-by: Rob Herring --- .../devicetree/bindings/media/cedrus.txt | 54 +++ 1 file changed, 54 insertions(+)

[PATCH v6 6/8] ARM: dts: sun7i-a20: Add Video Engine and reserved memory nodes

2018-07-25 Thread Paul Kocialkowski
This adds nodes for the Video Engine and the associated reserved memory for the A20. Up to 96 MiB of memory are dedicated to the CMA pool. The VPU can only map the first 256 MiB of DRAM, so the reserved memory pool has to be located in that area. Following Allwinner's decision in downstream

[PATCH v6 1/8] media: v4l: Add definitions for MPEG2 slice format and metadata

2018-07-25 Thread Paul Kocialkowski
Stateless video decoding engines require both the MPEG slices and associated metadata from the video stream in order to decode frames. This introduces definitions for a new pixel format, describing buffers with MPEG2 slice data, as well as a control structure for passing the frame metadata to

[PATCH v6 4/8] media: platform: Add Cedrus VPU decoder driver

2018-07-25 Thread Paul Kocialkowski
This introduces the Cedrus VPU driver that supports the VPU found in Allwinner SoCs, also known as Video Engine. It is implemented through a v4l2 m2m decoder device and a media device (used for media requests). So far, it only supports MPEG2 decoding. Since this VPU is stateless, synchronization

[PATCH v6 8/8] ARM: dts: sun8i-h3: Add Video Engine and reserved memory nodes

2018-07-25 Thread Paul Kocialkowski
This adds nodes for the Video Engine and the associated reserved memory for the H3. Up to 96 MiB of memory are dedicated to the CMA pool. Signed-off-by: Paul Kocialkowski --- arch/arm/boot/dts/sun8i-h3.dtsi | 25 + 1 file changed, 25 insertions(+) diff --git

[PATCH v6 7/8] ARM: dts: sun8i-a33: Add Video Engine and reserved memory nodes

2018-07-25 Thread Paul Kocialkowski
This adds nodes for the Video Engine and the associated reserved memory for the A33. Up to 96 MiB of memory are dedicated to the CMA pool. The VPU can only map the first 256 MiB of DRAM, so the reserved memory pool has to be located in that area. Following Allwinner's decision in downstream

Re: [PATCH v10 2/2] media: V3s: Add support for Allwinner CSI.

2018-07-25 Thread Yong
Hi Sakari, On Wed, 18 Jul 2018 12:55:14 +0300 Sakari Ailus wrote: > Hi Yong, > > On Thu, Jul 05, 2018 at 03:48:02PM +0800, Yong wrote: > > > > + > > > > +/* > > > > - > > > > + * Media Operations > > > > + */ > > > >

Re: [PATCH v3 1/4] venus: firmware: add routine to reset ARM9

2018-07-25 Thread Stanimir Varbanov
Hi, On 07/04/2018 10:06 PM, Vikash Garodia wrote: > Add routine to reset the ARM9 and brings it out of reset. Also > abstract the Venus CPU state handling with a new function. This > is in preparation to add PIL functionality in venus driver. > > Signed-off-by: Vikash Garodia > --- >

Re: [PATCHv2 1/5] media.h: add encoder/decoder functions for codecs

2018-07-25 Thread Mauro Carvalho Chehab
Em Fri, 20 Jul 2018 10:27:32 +0200 Hans Verkuil escreveu: > From: Hans Verkuil > > Add MEDIA_ENT_F_PROC_VIDEO_EN/DECODER to be used for the encoder > and decoder entities of codec hardware. > > Signed-off-by: Hans Verkuil > Acked-by: Sakari Ailus > --- >

Re: [PATCHv2 1/5] media.h: add encoder/decoder functions for codecs

2018-07-25 Thread Hans Verkuil
On 25/07/18 13:39, Mauro Carvalho Chehab wrote: > Em Fri, 20 Jul 2018 10:27:32 +0200 > Hans Verkuil escreveu: > >> From: Hans Verkuil >> >> Add MEDIA_ENT_F_PROC_VIDEO_EN/DECODER to be used for the encoder >> and decoder entities of codec hardware. >> >> Signed-off-by: Hans Verkuil >> Acked-by:

Re: [PATCH v10 2/2] media: V3s: Add support for Allwinner CSI.

2018-07-25 Thread Sakari Ailus
Hi Yong, On Wed, Jul 25, 2018 at 06:42:24PM +0800, Yong wrote: > Hi Sakari, > > On Wed, 18 Jul 2018 12:55:14 +0300 > Sakari Ailus wrote: > > > Hi Yong, > > > > On Thu, Jul 05, 2018 at 03:48:02PM +0800, Yong wrote: > > > > > + > > > > > +/* > > > > >

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

2018-07-25 Thread Hans Verkuil
Hi Tomasz, Many, many thanks for working on this! It's a great document and when done it will be very useful indeed. Review comments follow... On 24/07/18 16:06, Tomasz Figa wrote: > Due to complexity of the video decoding process, the V4L2 drivers of > stateful decoder hardware require

Re: [PATCH v3 18/35] media: camss: Add basic runtime PM support

2018-07-25 Thread Sakari Ailus
Hi Todor, On Wed, Jul 25, 2018 at 01:01:31PM +0300, Todor Tomov wrote: > Hi Sakari, > > Thank you for review. > > On 24.07.2018 15:49, Sakari Ailus wrote: > > Hi Todor, > > > > On Mon, Jul 23, 2018 at 02:02:35PM +0300, Todor Tomov wrote: > >> There is a PM domain for each of the VFE hardware

[GIT PULL for 4.19] ov2680 driver and dw9807 driver rename

2018-07-25 Thread Sakari Ailus
Hi Mauro, Here's a driver for the ov2680 sensor and a patch that renamed dw0807 as dw9807-vcm for it's a driver for the VCM bit only. Rename it now to avoid Kconfig option fuss for most people. Please pull. The following changes since commit 8601494e0ec0a7697230b2abca25d786b793341b: media:

[PATCH] media.h: remove linux/version.h include

2018-07-25 Thread Hans Verkuil
The media.h public header is one of only three public headers that include linux/version.h. Drop it from media.h. It was only used for an obsolete define. It has to be added to media-device.c, since that source relied on media.h to include it. Signed-off-by: Hans Verkuil --- diff --git

Re: [PATCH v3 17/35] media: camss: Add 8x96 resources

2018-07-25 Thread Todor Tomov
On 24.07.2018 15:21, Sakari Ailus wrote: > Hi Todor, > > On Mon, Jul 23, 2018 at 02:02:34PM +0300, Todor Tomov wrote: > ... >> @@ -61,7 +59,8 @@ struct ispif_device { >> struct mutex power_lock; >> struct ispif_intf_cmd_reg intf_cmd[MSM_ISPIF_VFE_NUM]; >> struct mutex config_lock;

Re: [PATCH v3 35/35] media: v4l2-ioctl: Add format descriptions for packed Bayer raw14 pixel formats

2018-07-25 Thread Todor Tomov
Hi Sakari, Thanks for review. On 24.07.2018 15:52, Sakari Ailus wrote: > Hi Todor, > > On Mon, Jul 23, 2018 at 02:02:52PM +0300, Todor Tomov wrote: >> This removes warning "Unknown pixelformat" for the following formats: >> V4L2_PIX_FMT_SBGGR14P >> V4L2_PIX_FMT_SGBRG14P >>

Re: [PATCH] media.h: remove linux/version.h include

2018-07-25 Thread Sakari Ailus
On Wed, Jul 25, 2018 at 02:51:39PM +0200, Hans Verkuil wrote: > The media.h public header is one of only three public headers that include > linux/version.h. Drop it from media.h. It was only used for an obsolete > define. > > It has to be added to media-device.c, since that source relied on

[PATCH for v4.19] media-types.rst: codec entities can have more than one source pad

2018-07-25 Thread Hans Verkuil
Some decoders and encoders can potentially have more than one source pad, so update the description to say 'at least one source pad'. Signed-off-by: Hans Verkuil --- diff --git a/Documentation/media/uapi/mediactl/media-types.rst b/Documentation/media/uapi/mediactl/media-types.rst index

Re: [PATCH 0/2] Document memory-to-memory video codec interfaces

2018-07-25 Thread Philipp Zabel
Hi Tomasz, On Tue, 2018-07-24 at 23:06 +0900, Tomasz Figa wrote: > This series attempts to add the documentation of what was discussed > during Media Workshops at LinuxCon Europe 2012 in Barcelona and then > later Embedded Linux Conference Europe 2014 in Düsseldorf and then > eventually written

Re: [PATCH 0/2] Document memory-to-memory video codec interfaces

2018-07-25 Thread Tomasz Figa
Hi Philipp, On Wed, Jul 25, 2018 at 10:28 PM Philipp Zabel wrote: > > Hi Tomasz, > > On Tue, 2018-07-24 at 23:06 +0900, Tomasz Figa wrote: > > This series attempts to add the documentation of what was discussed > > during Media Workshops at LinuxCon Europe 2012 in Barcelona and then > > later

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

2018-07-25 Thread Philipp Zabel
On Tue, 2018-07-24 at 23:06 +0900, 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

[v2 2/2] media: i2c: Add driver for Aptina MT9V111

2018-07-25 Thread Jacopo Mondi
From: Jacopo Mondi Add V4L2 sensor driver for Aptina MT9V111 CMOS image sensor. The MT9V111 is a 1/4-Inch CMOS image sensor based on MT9V011 with an integrated Image Flow Processor. Reviewed-by: Kieran Bingham Signed-off-by: Jacopo Mondi --- drivers/media/i2c/Kconfig | 11 +

[v2 1/2] dt-bindings: media: i2c: Document MT9V111 bindings

2018-07-25 Thread Jacopo Mondi
From: Jacopo Mondi Add documentation for Aptina MT9V111 image sensor. Reviewed-by: Rob Herring Signed-off-by: Jacopo Mondi --- .../bindings/media/i2c/aptina,mt9v111.txt | 46 ++ MAINTAINERS| 8 2 files changed, 54

[v2 0/2] media: i2c: mt9v111 sensor driver

2018-07-25 Thread Jacopo Mondi
Hello, this is a sensor level driver for Aptina MT9V111. Compared to v1 the biggest difference is that now auto-exposure and auto-white-balancing are exposed through the v4l2-ctrl framework, and can be activated/deactivated by the user. For this reason, while auto-exposure algorithm still

Re: [PATCH 2/2] media: usb: pwc: Don't use coherent DMA buffers for ISO transfer

2018-07-25 Thread Matwey V. Kornilov
2018-07-24 23:55 GMT+03:00 Alan Stern : > On Tue, 24 Jul 2018, Matwey V. Kornilov wrote: > >> 2018-07-23 21:57 GMT+03:00 Alan Stern : >> > On Mon, 23 Jul 2018, Matwey V. Kornilov wrote: >> > >> >> I've tried to strategies: >> >> >> >> 1) Use dma_unmap and dma_map inside the handler (I suppose this

custom printed logo USB flash drives

2018-07-25 Thread Vanessa
How are you? I would like to speak with the person in charge of purchasing your branded promotional products for your company? We create custom LOGO USB flash drives for our clients throughout the US. We can print your logo, and load your digital images, videos and files! If you need marketing,

Re: media: dvb-usb-v2/gl861: ensure USB message buffers DMA'able

2018-07-25 Thread Mauro Carvalho Chehab
Em Tue, 3 Jul 2018 21:07:07 +0900 Akihiro TSUKADA escreveu: > Hi, > thanks for the report. > > > 47buf = NULL; > > > > Condition rlen > 0, taking false branch. > > > > 48if (rlen > 0) { > > 49buf = kmalloc(rlen, GFP_KERNEL); > > 50if (!buf)

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

2018-07-25 Thread Hans Verkuil
On 24/07/18 16:06, 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, drain

Re: SFP Optical Module factory

2018-07-25 Thread Jacky
Dear Buyer,   We are the Optical Module manufacture for many years, If you need below fiber modules, please let us know. SFP Module 155M, 1.25G, 2.5G SFP+ 10G QSFP 40G 100G   XFP X2 XENPAK PON etc 1.25G SFP, Bidi, Single Fiber 1310, 1550nm, 20km, with DDM, 

Re: [PATCH v7 2/2] media: ov2680: Add Omnivision OV2680 sensor driver

2018-07-25 Thread Sakari Ailus
On Tue, Jul 03, 2018 at 03:08:03PM +0100, Rui Miguel Silva wrote: > This patch adds V4L2 sub-device driver for OV2680 image sensor. > The OV2680 is a 1/5" CMOS color sensor from Omnivision. > Supports output format: 10-bit Raw RGB. > The OV2680 has a single lane MIPI interface. > > The driver

[ragnatech:media-tree] BUILD INCOMPLETE 231783073ebfc4acf02a45cb78a52ffa16e4e6d3

2018-07-25 Thread kbuild test robot
tree/branch: git://git.ragnatech.se/linux media-tree branch HEAD: 231783073ebfc4acf02a45cb78a52ffa16e4e6d3 media: v4l: rcar_fdp1: Enable compilation on Gen2 platforms TIMEOUT after 600m Sorry we cannot finish the testset for your branch within a reasonable time. It's our fault -- either some

[PATCH v6 0/2] media: imx274: cleanups, improvements and SELECTION API support

2018-07-25 Thread Luca Ceresoli
Hi, this patchset introduces cropping support for the Sony IMX274 sensor using the SELECTION API. Changes since v5 are only minor fixes and cleanups. Patch 1 introduces a helper to greatly simplify the code to write a multibyte register. Patch 2 implements the set_selection pad operation for

[PATCH v6 1/2] media: imx274: use regmap_bulk_write to write multybyte registers

2018-07-25 Thread Luca Ceresoli
Currently 2-bytes and 3-bytes registers are set by very similar functions doing the needed shift & mask manipulation, followed by very similar for loops setting one byte at a time over I2C. Replace all of this code by a unique helper function that calls regmap_bulk_write(), which has two

[PATCH v6 2/2] media: imx274: add cropping support via SELECTION API

2018-07-25 Thread Luca Ceresoli
Currently this driver does not support cropping. The supported modes are the following, all capturing the entire area: - 3840x2160, 1:1 binning (native sensor resolution) - 1920x1080, 2:1 binning - 1280x720, 3:1 binning The VIDIOC_SUBDEV_S_FMT ioctl chooses among these 3 configurations the

[PATCH v4 01/34] doc-rst: Add packed Bayer raw14 pixel formats

2018-07-25 Thread Todor Tomov
From: Sakari Ailus These formats are compressed 14-bit raw bayer formats with four different pixel orders. They are similar to 10-bit variants. The formats added by this patch are V4L2_PIX_FMT_SBGGR14P V4L2_PIX_FMT_SGBRG14P V4L2_PIX_FMT_SGRBG14P

[PATCH v4 02/34] media: v4l: Add new 2X8 10-bit grayscale media bus code

2018-07-25 Thread Todor Tomov
The code will be called MEDIA_BUS_FMT_Y10_2X8_PADHI_LE. It is similar to MEDIA_BUS_FMT_SBGGR10_2X8_PADHI_LE but MEDIA_BUS_FMT_Y10_2X8_PADHI_LE describes grayscale data. Signed-off-by: Todor Tomov --- Documentation/media/uapi/v4l/subdev-formats.rst | 72 +

[PATCH v4 18/34] media: camss: Add basic runtime PM support

2018-07-25 Thread Todor Tomov
There is a PM domain for each of the VFE hardware modules. Add support for basic runtime PM support to be able to control the PM domains. When a PM domain needs to be powered on - a device link is created. When a PM domain needs to be powered off - its device link is removed. This allows separate

[PATCH v4 24/34] media: camss: vfe: Split to hardware dependent and independent parts

2018-07-25 Thread Todor Tomov
This will allow to add support for different hardware. Signed-off-by: Todor Tomov --- drivers/media/platform/qcom/camss/Makefile|1 + drivers/media/platform/qcom/camss/camss-vfe-4-1.c | 1006 +++ drivers/media/platform/qcom/camss/camss-vfe.c | 1074

[PATCH v4 13/34] media: camss: vfe: Get line pointer as container of video_out

2018-07-25 Thread Todor Tomov
Simplify getting of the line pointer by using the container_of macro instead of traversing media controller links. Signed-off-by: Todor Tomov --- drivers/media/platform/qcom/camss/camss-vfe.c | 38 +++ 1 file changed, 4 insertions(+), 34 deletions(-) diff --git

[PATCH v4 33/34] media: doc: media/v4l-drivers: Update Qualcomm CAMSS driver document for 8x96

2018-07-25 Thread Todor Tomov
Update the document to describe the support of Camera Subsystem on MSM8996/APQ8096. Signed-off-by: Todor Tomov --- Documentation/media/v4l-drivers/qcom_camss.rst | 93 +++--- .../media/v4l-drivers/qcom_camss_8x96_graph.dot| 104 + 2 files changed, 164

[PATCH v4 17/34] media: camss: Add 8x96 resources

2018-07-25 Thread Todor Tomov
Add structs with 8x96 resources. As the number of CSIPHY, CSID and VFE hardware modules is different on 8x16 and 8x96 select the number at runtime and allocate needed structures dynamically. Signed-off-by: Todor Tomov --- drivers/media/platform/qcom/camss/camss-csid.c | 20 +-

[PATCH v4 31/34] media: camss: Add support for RAW MIPI14 on 8x96

2018-07-25 Thread Todor Tomov
Add support for RAW MIPI14 format for RDI mode on 8x96. Signed-off-by: Todor Tomov --- drivers/media/platform/qcom/camss/camss-csid.c | 30 drivers/media/platform/qcom/camss/camss-csiphy.c | 4 drivers/media/platform/qcom/camss/camss-ispif.c | 4

[PATCH v4 25/34] media: camss: vfe: Add support for 8x96

2018-07-25 Thread Todor Tomov
Add VFE hardware dependent part for 8x96. Signed-off-by: Todor Tomov --- drivers/media/platform/qcom/camss/Makefile | 1 + drivers/media/platform/qcom/camss/camss-vfe-4-1.c | 6 + .../camss/{camss-vfe-4-1.c => camss-vfe-4-7.c} | 347 -

[PATCH v4 26/34] media: camss: Format configuration per hardware version

2018-07-25 Thread Todor Tomov
As the 8x16 and 8x96 support different formats, separate the arrays which contain the supported formats. For the VFE also add separate arrays for RDI and PIX subdevices. Signed-off-by: Todor Tomov --- drivers/media/platform/qcom/camss/camss-csid.c | 196 +++

[PATCH v4 21/34] media: camss: csiphy: Add support for 8x96

2018-07-25 Thread Todor Tomov
Add CSIPHY hardware dependent part for 8x96. Signed-off-by: Todor Tomov --- drivers/media/platform/qcom/camss/Makefile | 1 + .../platform/qcom/camss/camss-csiphy-3ph-1-0.c | 256 + drivers/media/platform/qcom/camss/camss-csiphy.c | 2 +

[PATCH v4 19/34] media: camss: csiphy: Split to hardware dependent and independent parts

2018-07-25 Thread Todor Tomov
This will allow to add support for different hardware. Signed-off-by: Todor Tomov --- drivers/media/platform/qcom/camss/Makefile | 1 + .../platform/qcom/camss/camss-csiphy-2ph-1-0.c | 173 + drivers/media/platform/qcom/camss/camss-csiphy.c | 171

[PATCH v4 34/34] media: camss: csid: Add support for events triggered by user controls

2018-07-25 Thread Todor Tomov
Changing a user control value can trigger an event to other users. Add support for that. Signed-off-by: Todor Tomov Acked-by: Sakari Ailus --- drivers/media/platform/qcom/camss/camss-csid.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git

[PATCH v4 28/34] media: camss: vfe: Add support for UYVY output from VFE on 8x96

2018-07-25 Thread Todor Tomov
Add support to output UYVY formats from the VFE (via the PIX interface). A configuration for the realign module in the VFE is added. As the realign module is present on 8x96 but not on 8x16, this is supported on 8x96 only. Signed-off-by: Todor Tomov ---

[PATCH v4 32/34] media: camss: Add support for 10-bit grayscale formats

2018-07-25 Thread Todor Tomov
Add support for 10-bit packed V4L2_PIX_FMT_Y10P (on 8x16 and 8x96) and unpacked V4L2_PIX_FMT_Y10 (on 8x96 only) pixel formats. Signed-off-by: Todor Tomov --- drivers/media/platform/qcom/camss/camss-csid.c | 50 +++- drivers/media/platform/qcom/camss/camss-csiphy.c | 2 +

[PATCH v4 22/34] media: camss: csid: Add support for 8x96

2018-07-25 Thread Todor Tomov
CSID hardware modules on 8x16 and 8x96 are similar. There is no need to duplicate the code by adding separate versions. Just update the register macros to return the correct register addresses. Signed-off-by: Todor Tomov --- drivers/media/platform/qcom/camss/camss-csid.c | 60

[PATCH v4 27/34] media: camss: vfe: Different format support on source pad

2018-07-25 Thread Todor Tomov
Rework the format selection on the source pad. Make the format on the source pad selectable amongst a list of formats. This list can be different for each sink pad format. Signed-off-by: Todor Tomov --- drivers/media/platform/qcom/camss/camss-vfe.c | 172 -- 1 file

[PATCH v4 30/34] media: camss: csid: MIPI10 to Plain16 format conversion

2018-07-25 Thread Todor Tomov
Use the PRDI mode on 8x96 to allow to configure RAW MIPI10 to Plain16 format conversion. Signed-off-by: Todor Tomov --- drivers/media/platform/qcom/camss/camss-csid.c | 33 - drivers/media/platform/qcom/camss/camss-ispif.c | 64 +

[PATCH v4 20/34] media: camss: csiphy: Unify lane handling

2018-07-25 Thread Todor Tomov
Restructure lane configuration so it is simpler and will allow similar (although not the same) handling for different hardware versions. Signed-off-by: Todor Tomov --- .../platform/qcom/camss/camss-csiphy-2ph-1-0.c | 48 --

[PATCH v4 29/34] media: camss: csid: Different format support on source pad

2018-07-25 Thread Todor Tomov
Usually the format on the source pad is the same as on the sink pad. However the CSID is able to do some format conversions. To support this make the format on the source pad selectable amongst a list of formats. This list can be different for each sink pad format. This is still not used but will

[PATCH v4 15/34] media: dt-bindings: media: qcom,camss: Fix whitespaces

2018-07-25 Thread Todor Tomov
Use tabs. CC: Rob Herring CC: Mark Rutland CC: devicet...@vger.kernel.org Signed-off-by: Todor Tomov Reviewed-by: Rob Herring --- .../devicetree/bindings/media/qcom,camss.txt | 92 +++--- 1 file changed, 46 insertions(+), 46 deletions(-) diff --git

[PATCH v4 23/34] media: camss: ispif: Add support for 8x96

2018-07-25 Thread Todor Tomov
ISPIF hardware modules on 8x16 and 8x96 are similar. However on 8x96 the ISPIF routes data to two VFE hardware modules. Add separate interrupt handler for 8x96 to handle the additional interrupts. Signed-off-by: Todor Tomov --- drivers/media/platform/qcom/camss/camss-ispif.c | 76

[PATCH v4 12/34] media: camss: vfe: Fix to_vfe() macro member name

2018-07-25 Thread Todor Tomov
Use the member name which is "line" instead of the pointer argument. Signed-off-by: Todor Tomov --- drivers/media/platform/qcom/camss/camss-vfe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/platform/qcom/camss/camss-vfe.c

[PATCH v4 16/34] media: dt-bindings: media: qcom,camss: Add 8996 bindings

2018-07-25 Thread Todor Tomov
Update binding document for MSM8996. CC: Rob Herring CC: Mark Rutland CC: devicet...@vger.kernel.org Signed-off-by: Todor Tomov Reviewed-by: Rob Herring --- .../devicetree/bindings/media/qcom,camss.txt | 44 +++--- 1 file changed, 38 insertions(+), 6 deletions(-) diff

[PATCH v4 11/34] media: camss: csid: Configure data type and decode format properly

2018-07-25 Thread Todor Tomov
The CSID decodes the input data stream. When the input comes from the Test Generator the format of the stream is set on the source media pad. When the input comes from the CSIPHY the format is the one on the sink media pad. Use the proper format for each case. Signed-off-by: Todor Tomov ---

[PATCH v4 00/34] Qualcomm Camera Subsystem driver - 8x96 support

2018-07-25 Thread Todor Tomov
Changelog v4: - patch 17: use unsigned int for line_num; - patch 18: fix error handling on s_power; - patch 19, 21, 24, 25: fix extern usage (extern moved to header files); - patch 34: add acked tag; - patch 35: merge into patch 01.

[PATCH v4 14/34] media: camss: vfe: Do not disable CAMIF when clearing its status

2018-07-25 Thread Todor Tomov
Use "no change" value when clearing CAMIF status and make sure this is done before configuring the new command. Signed-off-by: Todor Tomov --- drivers/media/platform/qcom/camss/camss-vfe.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git

[PATCH v4 05/34] media: camss: Use SPDX license headers

2018-07-25 Thread Todor Tomov
Use SPDX license headers for all files of the Qualcomm CAMSS driver. Signed-off-by: Todor Tomov --- drivers/media/platform/qcom/camss/camss-csid.c | 10 +- drivers/media/platform/qcom/camss/camss-csid.h | 10 +- drivers/media/platform/qcom/camss/camss-csiphy.c | 10

[PATCH v4 08/34] media: dt-bindings: media: qcom,camss: Unify the clock names

2018-07-25 Thread Todor Tomov
Use more logical clock names - similar to the names in documentation. This will allow better handling of the clocks in the driver when support for more hardware versions is added - equivalent clocks on different hardware versions will have the same name. CC: Rob Herring CC: Mark Rutland CC:

[PATCH v4 10/34] media: camss: csiphy: Update settle count calculation

2018-07-25 Thread Todor Tomov
Update settle count calculation as per specification. Signed-off-by: Todor Tomov --- drivers/media/platform/qcom/camss/camss-csiphy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/platform/qcom/camss/camss-csiphy.c

[PATCH v4 09/34] media: camss: Unify the clock names

2018-07-25 Thread Todor Tomov
Use more logical clock names - similar to the names in documentation. This will allow better handling of the clocks in the driver when support for more hardware versions is added - equivalent clocks on different hardware versions will have the same name. Signed-off-by: Todor Tomov ---

[PATCH v4 07/34] media: camss: csiphy: Ensure clock mux config is done before the rest

2018-07-25 Thread Todor Tomov
Add a write memory barier after clock mux config and before the rest of the csiphy config. Signed-off-by: Todor Tomov --- drivers/media/platform/qcom/camss/camss-csiphy.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/media/platform/qcom/camss/camss-csiphy.c

[PATCH v4 04/34] media: Rename CAMSS driver path

2018-07-25 Thread Todor Tomov
Support for camera subsystem on QComm MSM8996/APQ8096 is to be added so remove hardware version from CAMSS driver's path. Signed-off-by: Todor Tomov --- MAINTAINERS | 2 +- drivers/media/platform/Kconfig | 2

[PATCH v4 06/34] media: camss: Fix OF node usage

2018-07-25 Thread Todor Tomov
of_graph_get_next_endpoint increases the refcount of the returned node and decreases the refcount of the passed node. Take this into account and use of_node_put properly. Signed-off-by: Todor Tomov --- drivers/media/platform/qcom/camss/camss.c | 5 +++-- 1 file changed, 3 insertions(+), 2

[PATCH v4 03/34] media: v4l: Add new 10-bit packed grayscale format

2018-07-25 Thread Todor Tomov
The new format will be called V4L2_PIX_FMT_Y10P. It is similar to the V4L2_PIX_FMT_SBGGR10P family formats but V4L2_PIX_FMT_Y10P is a grayscale format. Signed-off-by: Todor Tomov --- Documentation/media/uapi/v4l/pixfmt-y10p.rst | 33

Re: [PATCH v8 2/3] uvcvideo: send a control event when a Control Change interrupt arrives

2018-07-25 Thread Laurent Pinchart
Hi Guennadi, On Wednesday, 18 July 2018 09:55:27 EEST Guennadi Liakhovetski wrote: > On Wed, 18 Jul 2018, Laurent Pinchart wrote: > > On Wednesday, 18 July 2018 00:30:45 EEST Guennadi Liakhovetski wrote: > >> On Tue, 17 Jul 2018, Laurent Pinchart wrote: > >>> On Thursday, 12 July 2018 10:30:46

[PATCH v2 1/5] v4l2-mem2mem: Fix missing v4l2_m2m_try_run call

2018-07-25 Thread Ezequiel Garcia
Commit 34dbb848d5e4 ("media: mem2mem: Remove excessive try_run call") removed a redundant call to v4l2_m2m_try_run but instead introduced a bug. Consider the following case: 1) Context A schedules, queues and runs job A. 2) While the m2m device is running, context B schedules and queues job

[PATCH v2 2/5] v4l2-mem2mem: Avoid v4l2_m2m_prepare_buf from scheduling a job

2018-07-25 Thread Ezequiel Garcia
There is no need for v4l2_m2m_prepare_buf to try to schedule a job, as it only prepares a buffer, but does not queue or changes the state of the queue. Remove the call to v4l2_m2m_try_schedule from v4l2_m2m_prepare_buf. Signed-off-by: Ezequiel Garcia --- drivers/media/v4l2-core/v4l2-mem2mem.c

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

2018-07-25 Thread Ezequiel Garcia
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(), potentially running in interrupt context. This series will be useful for the upcoming Request API, where drivers typically

[PATCH v2 4/5] v4l2-mem2mem: Avoid calling .device_run in v4l2_m2m_job_finish

2018-07-25 Thread Ezequiel Garcia
v4l2_m2m_job_finish() is typically called in interrupt context. Some implementation of .device_run might sleep, and so it's desirable to avoid calling it directly from v4l2_m2m_job_finish(), thus avoiding .device_run from running in interrupt context. Implement a deferred context that calls

[PATCH v2 5/5] selftests: media_tests: Add a memory-to-memory concurrent stress test

2018-07-25 Thread Ezequiel Garcia
Add a test for the memory-to-memory framework, to exercise the scheduling of concurrent jobs, using multiple contexts. This test needs to be run using the vim2m virtual driver, and so needs no hardware. Signed-off-by: Ezequiel Garcia --- tools/testing/selftests/media_tests/Makefile | 4 +-

[PATCH v2 3/5] v4l2-mem2mem: Simplify exiting the function in __v4l2_m2m_try_schedule

2018-07-25 Thread Ezequiel Garcia
From: Sakari Ailus The __v4l2_m2m_try_schedule function acquires and releases multiple spinlocks. Simplify unlocking the job lock by adding labels to unlock the lock and exit the function. Signed-off-by: Sakari Ailus Signed-off-by: Ezequiel Garcia --- drivers/media/v4l2-core/v4l2-mem2mem.c |

Re: [PATCH v8 2/3] uvcvideo: send a control event when a Control Change interrupt arrives

2018-07-25 Thread Guennadi Liakhovetski
On Wed, 25 Jul 2018, Laurent Pinchart wrote: > Hi Guennadi, > > On Wednesday, 18 July 2018 09:55:27 EEST Guennadi Liakhovetski wrote: > > On Wed, 18 Jul 2018, Laurent Pinchart wrote: > > > On Wednesday, 18 July 2018 00:30:45 EEST Guennadi Liakhovetski wrote: > > >> On Tue, 17 Jul 2018, Laurent

Re: [PATCH v8 2/3] uvcvideo: send a control event when a Control Change interrupt arrives

2018-07-25 Thread Laurent Pinchart
Hi Guennadi, On Tuesday, 8 May 2018 18:07:43 EEST Guennadi Liakhovetski wrote: > UVC defines a method of handling asynchronous controls, which sends a > USB packet over the interrupt pipe. This patch implements support for > such packets by sending a control event to the user. Since this can >

drivers/video/fbdev/omap2/omapfb/omapfb-main.c:290:9-10: WARNING: return of 0/1 in function 'cmp_var_to_colormode' with return type bool

2018-07-25 Thread kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 9981b4fb8684883dcc0daf088891ff32260b9794 commit: 7378f1149884b183631c6c16c0f1c62bcd7d759d media: omap2: omapfb: allow building it with COMPILE_TEST date: 3 months ago coccinelle warnings: (new ones

[PATCH] media: omap2: omapfb: fix ifnullfree.cocci warnings

2018-07-25 Thread kbuild test robot
From: kbuild test robot drivers/video/fbdev/omap2/omapfb/dss/core.c:141:2-26: WARNING: NULL check before some freeing functions is not needed. NULL check before some freeing functions is not needed. Based on checkpatch warning "kfree(NULL) is safe this check is probably not required" and

[PATCH] media: omap2: omapfb: fix boolreturn.cocci warnings

2018-07-25 Thread kbuild test robot
From: kbuild test robot drivers/video/fbdev/omap2/omapfb/omapfb-main.c:290:9-10: WARNING: return of 0/1 in function 'cmp_var_to_colormode' with return type bool Return statements in functions returning bool should use true/false instead of 1/0. Generated by:

[PATCH] media: omap2: omapfb: fix bugon.cocci warnings

2018-07-25 Thread kbuild test robot
From: kbuild test robot drivers/video/fbdev/omap2/omapfb/dss/dss_features.c:895:2-5: WARNING: Use BUG_ON instead of if condition followed by BUG. Please make sure the condition has no side effects (see conditional BUG_ON definition in include/asm-generic/bug.h) Use BUG_ON instead of a if

Re: [PATCH v8 2/3] uvcvideo: send a control event when a Control Change interrupt arrives

2018-07-25 Thread Laurent Pinchart
Hi Guennadi, On Wednesday, 25 July 2018 20:25:16 EEST Laurent Pinchart wrote: > On Tuesday, 8 May 2018 18:07:43 EEST Guennadi Liakhovetski wrote: > > UVC defines a method of handling asynchronous controls, which sends a > > USB packet over the interrupt pipe. This patch implements support for > >

Re: [PATCH v8 2/3] uvcvideo: send a control event when a Control Change interrupt arrives

2018-07-25 Thread Laurent Pinchart
Hi Guennadi, On Wednesday, 25 July 2018 20:21:54 EEST Guennadi Liakhovetski wrote: > On Wed, 25 Jul 2018, Laurent Pinchart wrote: > > On Wednesday, 18 July 2018 09:55:27 EEST Guennadi Liakhovetski wrote: > >> On Wed, 18 Jul 2018, Laurent Pinchart wrote: > >>> On Wednesday, 18 July 2018 00:30:45

Re: Logspam with "two consecutive events of type space" on gpio-ir-recv and meson-ir

2018-07-25 Thread Sean Young
Hi Hias, On Sat, Jul 21, 2018 at 09:04:21PM +0200, Matthias Reichl wrote: > Hi Sean, > > I noticed that on 4.18-rc5 I get dmesg logspam with > "rc rc0: two consecutive events of type space" on gpio-ir-recv > and meson-ir - mceusb seems to be fine (haven't tested with > other IR receivers yet). >

  1   2   >