Re: WARNING in vb2_core_reqbufs

2019-01-28 Thread syzbot
syzbot has found a reproducer for the following crash on: HEAD commit:39ad1c1b6bb8 Add linux-next specific files for 20190129 git tree: linux-next console output: https://syzkaller.appspot.com/x/log.txt?x=17971f1740 kernel config: https://syzkaller.appspot.com/x/.config?x=a2b2e9c0b

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

2019-01-28 Thread Dafna Hirschfeld
On Tue, Jan 22, 2019 at 8:27 AM Alexandre Courbot wrote: > > Documents the protocol that user-space should follow when > communicating with stateless video decoders. > > The stateless video decoding API makes use of the new request and tags > APIs. While it has been implemented with the Cedrus dri

Re: [linux-sunxi] [PATCH v2 1/2] media: v4l: Add definitions for the HEVC slice format and controls

2019-01-28 Thread Alexandre Courbot
On Fri, Jan 25, 2019 at 10:04 PM Paul Kocialkowski wrote: > > Hi, > > On Thu, 2019-01-24 at 20:23 +0800, Ayaka wrote: > > > > Sent from my iPad > > > > > On Jan 24, 2019, at 6:27 PM, Paul Kocialkowski > > > wrote: > > > > > > Hi, > > > > > > > On Thu, 2019-01-10 at 21:32 +0800, ayaka wrote: > >

cron job: media_tree daily build: OK

2019-01-28 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 Jan 29 05:00:14 CET 2019 media-tree git hash:c9d06df612977a88c484668ad0a37bc8e4463b22 media_build git

[PATCH] media: v4l2-tpg: Fix the memory layout of AYUV buffers

2019-01-28 Thread Vivek Kasireddy
From: "Kasireddy, Vivek" The memory layout of AYUV buffers (V4L2_PIX_FMT_YUV32) should be similar to V4L2_PIX_FMT_ABGR32 instead of V4L2_PIX_FMT_ARGB32. While displaying the packed AYUV buffers generated by the Vivid driver using v4l2-tpg on Weston, it was observed that these AYUV images were no

Re: [PATCH v10 0/4] Media Device Allocator API

2019-01-28 Thread shuah
Hi Hans, On 1/28/19 5:03 AM, Hans Verkuil wrote: Hi Shuah, On 1/24/19 9:32 PM, Shuah Khan wrote: Media Device Allocator API to allows multiple drivers share a media device. This API solves a very common use-case for media devices where one physical device (an USB stick) provides both audio and

Re: IMX CSI capture issues with tda1997x HDMI receiver

2019-01-28 Thread Steve Longerbeam
On 1/28/19 11:14 AM, Tim Harvey wrote: On Sun, Jan 27, 2019 at 2:36 PM Steve Longerbeam wrote: Hi Tim, On 1/25/19 3:57 PM, Steve Longerbeam wrote: Now lets go back to a 480p60 source but this time include the vdic (which isn't necessary but should still work right?) No. First, the CSI wi

Re: IMX CSI capture issues with tda1997x HDMI receiver

2019-01-28 Thread Steve Longerbeam
On 1/28/19 11:03 AM, Tim Harvey wrote: On Fri, Jan 25, 2019 at 3:57 PM Steve Longerbeam wrote: Hi Tim, cc: Philipp, On 1/23/19 3:21 PM, Tim Harvey wrote: Steve, I'm testing IMX6 capture again with the tda1997x HDMI receiver found on Gateworks GW54xx and GW551x boards. This is hooked up to

[PATCH 1/6] dt-bindings: media: cedrus: Add H6 compatible

2019-01-28 Thread Jernej Skrabec
This adds a compatible for H6. H6 VPU supports 10-bit HEVC decoding and additional AFBC output format for HEVC. Signed-off-by: Jernej Skrabec --- Documentation/devicetree/bindings/media/cedrus.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/media/cedrus.

[PATCH 2/6] media: cedrus: Add a quirk for not setting DMA offset

2019-01-28 Thread Jernej Skrabec
H6 VPU doesn't work if DMA offset is set. Add a quirk for it. Signed-off-by: Jernej Skrabec --- drivers/staging/media/sunxi/cedrus/cedrus.h| 3 +++ drivers/staging/media/sunxi/cedrus/cedrus_hw.c | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/staging/media/sun

[PATCH 0/6] H6 Cedrus support

2019-01-28 Thread Jernej Skrabec
This patch series adds basic support for H6 VPU. VPU itself has some new features like 10-bit HEVC decoding, support for AFBC output format when decoding HEVC and IOMMU. However, none of that is currently implemented. Please take a look. Best regards, Jernej Jernej Skrabec (6): dt-bindings: me

[PATCH 6/6] arm64: dts: allwinner: h6: Add Video Engine node

2019-01-28 Thread Jernej Skrabec
This adds the Video engine node for H6. It can use whole DRAM range so there is no need for reserved memory node. Signed-off-by: Jernej Skrabec --- arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi | 11 +++ 1 file changed, 11 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h

[PATCH 4/6] dt-bindings: sram: sunxi: Add compatible for the H6 SRAM C1

2019-01-28 Thread Jernej Skrabec
This introduces a new compatible for the H6 SRAM C1 section, that is compatible with the SRAM C1 section as found on the A10. Signed-off-by: Jernej Skrabec --- Documentation/devicetree/bindings/sram/sunxi-sram.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindi

[PATCH 5/6] arm64: dts: allwinner: h6: Add support for the SRAM C1 section

2019-01-28 Thread Jernej Skrabec
Add a node for H6 SRAM C1 section. Manual calls it VE SRAM, but for consistency with older SoCs, SRAM C1 name is used. Signed-off-by: Jernej Skrabec --- arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi | 14 ++ 1 file changed, 14 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner

[PATCH 3/6] media: cedrus: Add support for H6

2019-01-28 Thread Jernej Skrabec
H6 has improved VPU. It supports 10-bit HEVC decoding and AFBC output format for HEVC. Signed-off-by: Jernej Skrabec --- drivers/staging/media/sunxi/cedrus/cedrus.c | 9 + 1 file changed, 9 insertions(+) diff --git a/drivers/staging/media/sunxi/cedrus/cedrus.c b/drivers/staging/media/s

Re: IMX CSI capture issues with tda1997x HDMI receiver

2019-01-28 Thread Tim Harvey
On Sun, Jan 27, 2019 at 2:36 PM Steve Longerbeam wrote: > > Hi Tim, > > On 1/25/19 3:57 PM, Steve Longerbeam wrote: > > >> Now lets go back to a 480p60 source but this time include the vdic > >> (which isn't necessary but should still work right?) > > > > No. First, the CSI will only capture in b

Re: IMX CSI capture issues with tda1997x HDMI receiver

2019-01-28 Thread Tim Harvey
On Fri, Jan 25, 2019 at 3:57 PM Steve Longerbeam wrote: > > Hi Tim, cc: Philipp, > > On 1/23/19 3:21 PM, Tim Harvey wrote: > > Steve, > > > > I'm testing IMX6 capture again with the tda1997x HDMI receiver found > > on Gateworks GW54xx and GW551x boards. This is hooked up to the IMX6 > > CSI in a w

Want retouching for your photos?

2019-01-28 Thread Jennifer
Did you receive my email from last week? Do you have needs for retouching of your photos? We can do it white background for your pictures. If you need clipping path just let me know. You can send 1 or 2 photos for testing to judge our quality. Thanks, Jennifer

Want retouching for your photos?

2019-01-28 Thread Jennifer
Did you receive my email from last week? Do you have needs for retouching of your photos? We can do it white background for your pictures. If you need clipping path just let me know. You can send 1 or 2 photos for testing to judge our quality. Thanks, Jennifer

Re: [PATCH v2 2/2] media: v4l: xilinx: Add Xilinx MIPI CSI-2 Rx Subsystem driver

2019-01-28 Thread Hyun Kwon
Hi Vishal, On Mon, 2019-01-28 at 03:16:49 -0800, Vishal Sagar wrote: > Hi Hyun, > > Thanks for the review. > > > -Original Message- > > From: Hyun Kwon [mailto:hyun.k...@xilinx.com] > > Sent: Saturday, January 26, 2019 7:45 AM > > To: Vishal Sagar > > Cc: Hyun Kwon ; laurent.pinch...@id

[PATCH AUTOSEL 4.20 063/304] media: rc: ensure close() is called on rc_unregister_device

2019-01-28 Thread Sasha Levin
From: Sean Young [ Upstream commit 8e782fcf78275f505194e767c515202d4fd274bc ] If userspace has an open file descriptor on the rc input device or lirc device when rc_unregister_device() is called, then the rc close() is never called. This ensures that the receiver is turned off on the nuvoton-ci

Re: ipu3-imgu 0000:00:05.0: required queues are disabled

2019-01-28 Thread Kai Heng Feng
Hi Kieran, > On Jan 28, 2019, at 4:48 PM, Kieran Bingham > wrote: > > Hi Kai-Heng, > > On 27/01/2019 05:56, Kai-Heng Feng wrote: >> Hi, >> >> We have a bug report [1] that the ipu3 doesn’t work. >> Does ipu3 need special userspace to work? > > Yes, it will need further userspace support to c

[PATCH AUTOSEL 4.20 065/304] media: mtk-vcodec: Release device nodes in mtk_vcodec_init_enc_pm()

2019-01-28 Thread Sasha Levin
From: Alexey Khoroshilov [ Upstream commit 8ea0f2ba0fa3f91ea1b8d823a54b042026ada6b3 ] of_parse_phandle() returns the device node with refcount incremented. There are two nodes that are used temporary in mtk_vcodec_init_enc_pm(), but their refcounts are not decremented. The patch adds one of_nod

[PATCH AUTOSEL 4.20 069/304] media: vivid: fill in media_device bus_info

2019-01-28 Thread Sasha Levin
From: Hans Verkuil [ Upstream commit e10b40f3304360d3a2d07d690ff12197f828f2c8 ] If you create multiple vivid instances, each with their own media device, then there was no way to tell them apart. Fill in the bus_info so each instance has a unique bus_info string. Signed-off-by: Hans Verkuil S

[PATCH AUTOSEL 4.20 114/304] media: i2c: TDA1997x: select CONFIG_HDMI

2019-01-28 Thread Sasha Levin
From: Arnd Bergmann [ Upstream commit 79e89e36dc8a47ef965a35b484d737a5227feed1 ] Without CONFIG_HDMI, we get a link error for this driver: drivers/media/i2c/tda1997x.o: In function `tda1997x_parse_infoframe': tda1997x.c:(.text+0x2195): undefined reference to `hdmi_infoframe_unpack' tda1997x.c:(

[PATCH AUTOSEL 4.20 115/304] media: DaVinci-VPBE: fix error handling in vpbe_initialize()

2019-01-28 Thread Sasha Levin
From: Alexey Khoroshilov [ Upstream commit aa35dc3c71950e3fec3e230c06c27c0fbd0067f8 ] If vpbe_set_default_output() or vpbe_set_default_mode() fails, vpbe_initialize() returns error code without releasing resources. The patch adds error handling for that case. Found by Linux Driver Verification

[PATCH AUTOSEL 4.20 140/304] media: v4l2-device: Link subdevices to their parent devices if available

2019-01-28 Thread Sasha Levin
From: Tomasz Figa [ Upstream commit ee494cf377e142f65f202fadf0d859f8e12119fb ] Currently v4l2_device_register_subdev_nodes() does not initialize the dev_parent field of the video_device structs it creates for subdevices being registered. This leads to __video_register_device() falling back to th

[PATCH AUTOSEL 4.20 144/304] media: coda: fix H.264 deblocking filter controls

2019-01-28 Thread Sasha Levin
From: Philipp Zabel [ Upstream commit 75fa6e4f83a0923fe753827d354998d448b4fd6a ] Add support for the third loop filter mode V4L2_MPEG_VIDEO_H264_LOOP_FILTER_MODE_DISABLED_AT_SLICE_BOUNDARY, and fix V4L2_CID_MPEG_VIDEO_H264_LOOP_FILTER_ALPHA and V4L2_CID_MPEG_VIDEO_H264_LOOP_FILTER_BETA controls.

Want retouching for your photos?

2019-01-28 Thread Jennifer
Did you receive my email from last week? Do you have needs for retouching of your photos? We can do it white background for your pictures. If you need clipping path just let me know. You can send 1 or 2 photos for testing to judge our quality. Thanks, Jennifer

Want retouching for your photos?

2019-01-28 Thread Jennifer
Did you receive my email from last week? Do you have needs for retouching of your photos? We can do it white background for your pictures. If you need clipping path just let me know. You can send 1 or 2 photos for testing to judge our quality. Thanks, Jennifer

[PATCH AUTOSEL 4.19 056/258] media: video-i2c: avoid accessing released memory area when removing driver

2019-01-28 Thread Sasha Levin
From: Akinobu Mita [ Upstream commit c764da98a600a4b068d25c77164f092f159cecec ] The video device release() callback for video-i2c driver frees the whole struct video_i2c_data. If there is no user left for the video device when video_unregister_device() is called, the release callback is execute

[PATCH AUTOSEL 4.19 055/258] media: rc: ensure close() is called on rc_unregister_device

2019-01-28 Thread Sasha Levin
From: Sean Young [ Upstream commit 8e782fcf78275f505194e767c515202d4fd274bc ] If userspace has an open file descriptor on the rc input device or lirc device when rc_unregister_device() is called, then the rc close() is never called. This ensures that the receiver is turned off on the nuvoton-ci

[PATCH AUTOSEL 4.19 069/258] media: adv*/tc358743/ths8200: fill in min width/height/pixelclock

2019-01-28 Thread Sasha Levin
From: Hans Verkuil [ Upstream commit 2912289a518077ddb8214e05336700148e97e235 ] The v4l2_dv_timings_cap struct is used to do sanity checks when setting and enumerating DV timings, ensuring that only valid timings as per the HW capabilities are allowed. However, many drivers just filled in 0 for

[PATCH AUTOSEL 4.19 099/258] media: DaVinci-VPBE: fix error handling in vpbe_initialize()

2019-01-28 Thread Sasha Levin
From: Alexey Khoroshilov [ Upstream commit aa35dc3c71950e3fec3e230c06c27c0fbd0067f8 ] If vpbe_set_default_output() or vpbe_set_default_mode() fails, vpbe_initialize() returns error code without releasing resources. The patch adds error handling for that case. Found by Linux Driver Verification

[PATCH AUTOSEL 4.19 098/258] media: i2c: TDA1997x: select CONFIG_HDMI

2019-01-28 Thread Sasha Levin
From: Arnd Bergmann [ Upstream commit 79e89e36dc8a47ef965a35b484d737a5227feed1 ] Without CONFIG_HDMI, we get a link error for this driver: drivers/media/i2c/tda1997x.o: In function `tda1997x_parse_infoframe': tda1997x.c:(.text+0x2195): undefined reference to `hdmi_infoframe_unpack' tda1997x.c:(

[PATCH AUTOSEL 4.19 108/258] media: imx274: select REGMAP_I2C

2019-01-28 Thread Sasha Levin
From: Luca Ceresoli [ Upstream commit 4f9d7225c70dd9d3f406b79e60f8dbd2cd5ae743 ] The imx274 driver uses regmap and the build will fail without it. Fixes: drivers/media/i2c/imx274.c:142:21: error: variable ‘imx274_regmap_config’ has initializer but incomplete type static const struct regm

[PATCH AUTOSEL 4.14 036/170] media: mtk-vcodec: Release device nodes in mtk_vcodec_init_enc_pm()

2019-01-28 Thread Sasha Levin
From: Alexey Khoroshilov [ Upstream commit 8ea0f2ba0fa3f91ea1b8d823a54b042026ada6b3 ] of_parse_phandle() returns the device node with refcount incremented. There are two nodes that are used temporary in mtk_vcodec_init_enc_pm(), but their refcounts are not decremented. The patch adds one of_nod

[PATCH AUTOSEL 4.14 042/170] media: adv*/tc358743/ths8200: fill in min width/height/pixelclock

2019-01-28 Thread Sasha Levin
From: Hans Verkuil [ Upstream commit 2912289a518077ddb8214e05336700148e97e235 ] The v4l2_dv_timings_cap struct is used to do sanity checks when setting and enumerating DV timings, ensuring that only valid timings as per the HW capabilities are allowed. However, many drivers just filled in 0 for

[PATCH AUTOSEL 4.14 078/170] media: coda: fix H.264 deblocking filter controls

2019-01-28 Thread Sasha Levin
From: Philipp Zabel [ Upstream commit 75fa6e4f83a0923fe753827d354998d448b4fd6a ] Add support for the third loop filter mode V4L2_MPEG_VIDEO_H264_LOOP_FILTER_MODE_DISABLED_AT_SLICE_BOUNDARY, and fix V4L2_CID_MPEG_VIDEO_H264_LOOP_FILTER_ALPHA and V4L2_CID_MPEG_VIDEO_H264_LOOP_FILTER_BETA controls.

Re: [PATCH v2 1/5] dt-bindings: media: Add Allwinner A10 CSI binding

2019-01-28 Thread Rob Herring
On Mon, Jan 28, 2019 at 8:52 AM Maxime Ripard wrote: > > The Allwinner A10 CMOS Sensor Interface is a camera capture interface also > used in later (A10s, A13, A20, R8 and GR8) SoCs. > > On some SoCs, like the A10, there's multiple instances of that controller, > with one instance supporting more

[PATCH AUTOSEL 4.9 022/107] media: mtk-vcodec: Release device nodes in mtk_vcodec_init_enc_pm()

2019-01-28 Thread Sasha Levin
From: Alexey Khoroshilov [ Upstream commit 8ea0f2ba0fa3f91ea1b8d823a54b042026ada6b3 ] of_parse_phandle() returns the device node with refcount incremented. There are two nodes that are used temporary in mtk_vcodec_init_enc_pm(), but their refcounts are not decremented. The patch adds one of_nod

[PATCH AUTOSEL 4.9 025/107] media: adv*/tc358743/ths8200: fill in min width/height/pixelclock

2019-01-28 Thread Sasha Levin
From: Hans Verkuil [ Upstream commit 2912289a518077ddb8214e05336700148e97e235 ] The v4l2_dv_timings_cap struct is used to do sanity checks when setting and enumerating DV timings, ensuring that only valid timings as per the HW capabilities are allowed. However, many drivers just filled in 0 for

[PATCH AUTOSEL 4.9 038/107] media: DaVinci-VPBE: fix error handling in vpbe_initialize()

2019-01-28 Thread Sasha Levin
From: Alexey Khoroshilov [ Upstream commit aa35dc3c71950e3fec3e230c06c27c0fbd0067f8 ] If vpbe_set_default_output() or vpbe_set_default_mode() fails, vpbe_initialize() returns error code without releasing resources. The patch adds error handling for that case. Found by Linux Driver Verification

[PATCH AUTOSEL 4.4 28/80] media: DaVinci-VPBE: fix error handling in vpbe_initialize()

2019-01-28 Thread Sasha Levin
From: Alexey Khoroshilov [ Upstream commit aa35dc3c71950e3fec3e230c06c27c0fbd0067f8 ] If vpbe_set_default_output() or vpbe_set_default_mode() fails, vpbe_initialize() returns error code without releasing resources. The patch adds error handling for that case. Found by Linux Driver Verification

Re: [PATCH 10/10] venus: dec: make decoder compliant with stateful codec API

2019-01-28 Thread Stanimir Varbanov
Hi Tomasz, On 1/28/19 9:38 AM, Tomasz Figa wrote: > On Fri, Jan 25, 2019 at 7:25 PM Stanimir Varbanov > wrote: >> >> Hi Tomasz, >> >> Thanks for the comments! >> >> On 1/25/19 9:59 AM, Tomasz Figa wrote: >>> .Hi Stan, >>> >>> On Fri, Jan 18, 2019 at 1:21 AM Stanimir Varbanov >>> wrote:

[PATCH AUTOSEL 3.18 20/61] media: DaVinci-VPBE: fix error handling in vpbe_initialize()

2019-01-28 Thread Sasha Levin
From: Alexey Khoroshilov [ Upstream commit aa35dc3c71950e3fec3e230c06c27c0fbd0067f8 ] If vpbe_set_default_output() or vpbe_set_default_mode() fails, vpbe_initialize() returns error code without releasing resources. The patch adds error handling for that case. Found by Linux Driver Verification

Re: [PATCH] : media : hackrf : memory leak

2019-01-28 Thread Yavuz, Tuba
Hi Hans, You are right.. This was a false positive due to a bug in my environment model. Obviously, v4l2_device_disconnect does not affect the v4l2_device reference count. Best, Tuba From: Hans Verkuil Sent: Monday, January 28, 2019 9:10 AM To: Yavuz,

[PATCH AUTOSEL 4.14 063/170] media: DaVinci-VPBE: fix error handling in vpbe_initialize()

2019-01-28 Thread Sasha Levin
From: Alexey Khoroshilov [ Upstream commit aa35dc3c71950e3fec3e230c06c27c0fbd0067f8 ] If vpbe_set_default_output() or vpbe_set_default_mode() fails, vpbe_initialize() returns error code without releasing resources. The patch adds error handling for that case. Found by Linux Driver Verification

[PATCH AUTOSEL 4.19 121/258] media: coda: fix H.264 deblocking filter controls

2019-01-28 Thread Sasha Levin
From: Philipp Zabel [ Upstream commit 75fa6e4f83a0923fe753827d354998d448b4fd6a ] Add support for the third loop filter mode V4L2_MPEG_VIDEO_H264_LOOP_FILTER_MODE_DISABLED_AT_SLICE_BOUNDARY, and fix V4L2_CID_MPEG_VIDEO_H264_LOOP_FILTER_ALPHA and V4L2_CID_MPEG_VIDEO_H264_LOOP_FILTER_BETA controls.

[PATCH AUTOSEL 4.19 057/258] media: mtk-vcodec: Release device nodes in mtk_vcodec_init_enc_pm()

2019-01-28 Thread Sasha Levin
From: Alexey Khoroshilov [ Upstream commit 8ea0f2ba0fa3f91ea1b8d823a54b042026ada6b3 ] of_parse_phandle() returns the device node with refcount incremented. There are two nodes that are used temporary in mtk_vcodec_init_enc_pm(), but their refcounts are not decremented. The patch adds one of_nod

[PATCH AUTOSEL 4.20 126/304] media: imx274: select REGMAP_I2C

2019-01-28 Thread Sasha Levin
From: Luca Ceresoli [ Upstream commit 4f9d7225c70dd9d3f406b79e60f8dbd2cd5ae743 ] The imx274 driver uses regmap and the build will fail without it. Fixes: drivers/media/i2c/imx274.c:142:21: error: variable ‘imx274_regmap_config’ has initializer but incomplete type static const struct regm

[PATCH AUTOSEL 4.20 082/304] media: adv*/tc358743/ths8200: fill in min width/height/pixelclock

2019-01-28 Thread Sasha Levin
From: Hans Verkuil [ Upstream commit 2912289a518077ddb8214e05336700148e97e235 ] The v4l2_dv_timings_cap struct is used to do sanity checks when setting and enumerating DV timings, ensuring that only valid timings as per the HW capabilities are allowed. However, many drivers just filled in 0 for

[PATCH AUTOSEL 4.20 064/304] media: video-i2c: avoid accessing released memory area when removing driver

2019-01-28 Thread Sasha Levin
From: Akinobu Mita [ Upstream commit c764da98a600a4b068d25c77164f092f159cecec ] The video device release() callback for video-i2c driver frees the whole struct video_i2c_data. If there is no user left for the video device when video_unregister_device() is called, the release callback is execute

WTS Refurb Apple MacBook and Apple iPad

2019-01-28 Thread Toner
Dear Brokers , Want to Sell the following laptops and Apple iPad's. Refurb Apple MacBook Pro Core i5 2.5 13" 2012 model A1278Part number MD101LL/A Specs INTEL CORE I5-3210M 2.5ghz 4GB 500GB DVDRWQTY40pcs We can do $220/ea Grade A Apple iPad with Retina Display MD510LL/A (16GB, Wi-Fi, Black

[PATCH v2 2/5] media: sunxi: Refactor the Makefile and Kconfig

2019-01-28 Thread Maxime Ripard
The Makefile and Kconfig for the sun6i CSI driver are included in the main Makefile / KConfig file. Since we're going to add a new CSI driver for an older chip, and the Cedrus driver eventually, it makes more sense to put those in our directory. Signed-off-by: Maxime Ripard --- drivers/media/pla

[PATCH v2 0/5] media: Allwinner A10 CSI support

2019-01-28 Thread Maxime Ripard
Hi, Here is a series introducing the support for the A10 (and SoCs of the same generation) CMOS Sensor Interface (called CSI, not to be confused with MIPI-CSI, which isn't support by that IP). That interface is pretty straightforward, but the driver has a few issues that I wanted to bring up:

[PATCH v2 5/5] DO NOT MERGE: ARM: dts: bananapi: Add Camera support

2019-01-28 Thread Maxime Ripard
Signed-off-by: Maxime Ripard --- arch/arm/boot/dts/sun7i-a20-bananapi.dts | 94 +- 1 file changed, 94 insertions(+) diff --git a/arch/arm/boot/dts/sun7i-a20-bananapi.dts b/arch/arm/boot/dts/sun7i-a20-bananapi.dts index 556b1b591c5d..f5fee1f95900 100644 --- a/arch/arm/boo

[PATCH v2 3/5] media: sunxi: Add A10 CSI driver

2019-01-28 Thread Maxime Ripard
The older CSI drivers have camera capture interface different from the one in the newer ones. This IP is pretty simple. Some variants (one controller out of two instances on some SoCs) have an ISP embedded, but there's no code that make use of it, so we ignored that part for now. Signed-off-by: M

[PATCH v2 1/5] dt-bindings: media: Add Allwinner A10 CSI binding

2019-01-28 Thread Maxime Ripard
The Allwinner A10 CMOS Sensor Interface is a camera capture interface also used in later (A10s, A13, A20, R8 and GR8) SoCs. On some SoCs, like the A10, there's multiple instances of that controller, with one instance supporting more channels and having an ISP. Signed-off-by: Maxime Ripard --- D

[PATCH v2 4/5] ARM: dts: sun7i: Add CSI0 controller

2019-01-28 Thread Maxime Ripard
The CSI controller embedded in the A20 can be supported by our new driver. Let's add it to our DT. Signed-off-by: Maxime Ripard --- arch/arm/boot/dts/sun7i-a20.dtsi | 11 +++ 1 file changed, 11 insertions(+) diff --git a/arch/arm/boot/dts/sun7i-a20.dtsi b/arch/arm/boot/dts/sun7i-a20.dts

Re: [PATCH v3 3/6] media: adv748x: csi2: Link AFE with TXA and TXB

2019-01-28 Thread Jacopo Mondi
Hi Niklas, sorry for replying late On Wed, Jan 16, 2019 at 02:44:25PM +0100, Niklas Söderlund wrote: > Hi (again) Jacopo, > > I found something else in this patch unfortunately :-( > > On 2019-01-14 15:55:33 +0100, Niklas Söderlund wrote: > > Hi Jacopo, > > > > Thanks for your patch. > > > > On

[GIT PULL FOR v5.1] mtk-vcodec clock patches

2019-01-28 Thread Hans Verkuil
Yunfei Dong, I assume another subsystem will take care of the dts changes? (patch 2/3) Regards, Hans The following changes since commit c9d06df612977a88c484668ad0a37bc8e4463b22: media: vicodec: get_next_header is static (2019-01-26 09:12:59 -0200) are available in the Git repository

Re: [PATCH] : media : hackrf : memory leak

2019-01-28 Thread Hans Verkuil
Hi Tuba, On 1/27/19 11:57 PM, Yavuz, Tuba wrote: > > > Due to a missing v4l2_device_get function in the hackrf_probe function,  > the reference count of the v4l2_device object reaches zero inside the  > wrong API function (video_unregister_device) instead of v4l2_device_put.  > This causes

Re: [PATCH v3 1/2] media: tc358743: fix connected/active CSI-2 lane reporting

2019-01-28 Thread Hans Verkuil
On 12/5/18 5:14 PM, Philipp Zabel wrote: > g_mbus_config was supposed to indicate all supported lane numbers, not > only the number of those currently in active use. Since the TC358743 > can dynamically reduce the number of active lanes if the required > bandwidth allows for it, report all lane num

Re: devicetree: media: Documentation of Bt.656 Bus DT bindings

2019-01-28 Thread Hans Verkuil
+Sakari On 1/24/19 3:53 AM, Ken Sloat wrote: > There are a number of v4l2 subdevices in the kernel that support a > Bt.656 bus also known as "embedded sync." Previously in older versions > of the kernel (and in the current 4.14 LTS kernel), the standard way > to enable this in device tree on a par

[GIT FIXES FOR v5.0] imx: Stop stream before disabling IDMA channels

2019-01-28 Thread Hans Verkuil
The following changes since commit c9d06df612977a88c484668ad0a37bc8e4463b22: media: vicodec: get_next_header is static (2019-01-26 09:12:59 -0200) are available in the Git repository at: git://linuxtv.org/hverkuil/media_tree.git tags/br-v5.0d for you to fetch changes up to 596a639f7b7745ea1

Re: [PATCH v10 0/4] Media Device Allocator API

2019-01-28 Thread Hans Verkuil
Hi Shuah, On 1/24/19 9:32 PM, Shuah Khan wrote: > Media Device Allocator API to allows multiple drivers share a media device. > This API solves a very common use-case for media devices where one physical > device (an USB stick) provides both audio and video. When such media device > exposes a stan

Re: [PATCH 1/2] media: dt-bindings: media: xilinx: Add Xilinx MIPI CSI-2 Rx Subsystem

2019-01-28 Thread Sakari Ailus
Hi Vishal, On Mon, Jan 14, 2019 at 09:47:41AM +, Vishal Sagar wrote: > Hi Sakari, > > Thanks for reviewing this. > > > -Original Message- > > From: Sakari Ailus [mailto:sakari.ai...@linux.intel.com] > > Sent: Tuesday, January 08, 2019 6:35 PM > > To: Vishal Sagar > > Cc: Hyun Kwon

Re: [PATCH 3/3] Staging: media: ipu3: fixed max charecter style issue

2019-01-28 Thread Dan Carpenter
On Sun, Jan 27, 2019 at 10:24:16PM +0530, Prashantha SP wrote: > fixed coding style issue. > > Signed-off-by: Prashantha SP ^^ Please use your full name that you would use to sign legal documents. > --- > drivers/staging/media/ipu3/ipu3-css.c | 178 ++---

Re: drivers/media/platform/imx-pxp.c:683: possible cut''n'paste error ?

2019-01-28 Thread Philipp Zabel
On Sun, 2019-01-27 at 08:17 +, David Binderman wrote: > Hello there, > > drivers/media/platform/imx-pxp.c:683:24: warning: duplicated ‘if’ condition > [-Wd > uplicated-cond] > > Source code is > >} else if (ycbcr_enc == V4L2_YCBCR_ENC_709) { > if (qua

[PATCH] media: imx-pxp: fix duplicated if condition

2019-01-28 Thread Philipp Zabel
Fix a copy&paste error to make RGB -> BT.2020 YUV conversion actually selectable. Fixes the following warning: drivers/media/platform/imx-pxp.c:683:24: warning: duplicated ‘if’ condition [-Wduplicated-cond] Reported-by: David Binderman Fixes: 51abcf7fdb70 ("media: imx-pxp: add i.MX Pixel Pipe

RE: [PATCH v2 1/2] media: dt-bindings: media: xilinx: Add Xilinx MIPI CSI-2 Rx Subsystem

2019-01-28 Thread Vishal Sagar
Hi Hyun, Thanks for the review. > -Original Message- > From: Hyun Kwon [mailto:hyun.k...@xilinx.com] > Sent: Saturday, January 26, 2019 7:45 AM > To: Vishal Sagar > Cc: Hyun Kwon ; laurent.pinch...@ideasonboard.com; > mche...@kernel.org; robh...@kernel.org; mark.rutl...@arm.com; Michal

RE: [PATCH v2 2/2] media: v4l: xilinx: Add Xilinx MIPI CSI-2 Rx Subsystem driver

2019-01-28 Thread Vishal Sagar
Hi Hyun, Thanks for the review. > -Original Message- > From: Hyun Kwon [mailto:hyun.k...@xilinx.com] > Sent: Saturday, January 26, 2019 7:45 AM > To: Vishal Sagar > Cc: Hyun Kwon ; laurent.pinch...@ideasonboard.com; > mche...@kernel.org; robh...@kernel.org; mark.rutl...@arm.com; Michal >

Re: [PATCH v8 3/5] arm64: dts: allwinner: a64: Add A64 CSI controller

2019-01-28 Thread Maxime Ripard
On Mon, Jan 28, 2019 at 02:28:45PM +0530, Jagan Teki wrote: > Add dts node details for Allwinner A64 CSI controller. > > A64 CSI has similar features as like in H3, but the CSI_SCLK > need to update it to 300MHz than default clock rate. > > Signed-off-by: Jagan Teki > Acked-by: Maxime Ripard A

Re: [PATCH v8 2/5] media: sun6i: Add A64 CSI block support

2019-01-28 Thread Maxime Ripard
On Mon, Jan 28, 2019 at 02:28:44PM +0530, Jagan Teki wrote: > CSI block in Allwinner A64 has similar features as like in H3, > but the default CSI_SCLK rate cannot work properly to drive the > connected sensor interface. > > The tested mod cock rate is 300 MHz and BSP vfe media driver is also > us

Re: [RFC PATCH] videodev2.h: introduce VIDIOC_DQEXTEVENT

2019-01-28 Thread Hans Verkuil
On 1/28/19 11:41 AM, Sakari Ailus wrote: > Hi Hans, > > On Mon, Jan 28, 2019 at 10:52:40AM +0100, Hans Verkuil wrote: >> On 1/28/19 10:21 AM, Sakari Ailus wrote: >>> Hi Hans, >>> >>> Thanks for the patch. >>> >>> On Sat, Jan 26, 2019 at 12:06:19PM +0100, Hans Verkuil wrote: This patch adds an

Re: [RFC PATCH] videodev2.h: introduce VIDIOC_DQEXTEVENT

2019-01-28 Thread Sakari Ailus
Hi Hans, On Mon, Jan 28, 2019 at 10:52:40AM +0100, Hans Verkuil wrote: > On 1/28/19 10:21 AM, Sakari Ailus wrote: > > Hi Hans, > > > > Thanks for the patch. > > > > On Sat, Jan 26, 2019 at 12:06:19PM +0100, Hans Verkuil wrote: > >> This patch adds an extended version of VIDIOC_DQEVENT that: > >>

Re: [PATCH v7 00/16] Intel IPU3 ImgU patchset

2019-01-28 Thread Jacopo Mondi
Hi Sakari, everyone.. On Wed, Jan 02, 2019 at 10:26:56PM +0200, Sakari Ailus wrote: > Hi Laurent, > > On Wed, Jan 02, 2019 at 10:20:13AM +0200, Laurent Pinchart wrote: > > Hello Bingbu, > > > > On Wednesday, 2 January 2019 04:38:33 EET Bingbu Cao wrote: > > > On 12/26/2018 07:03 PM, Laurent Pincha

Re: [RFC PATCH] videodev2.h: introduce VIDIOC_DQEXTEVENT

2019-01-28 Thread Hans Verkuil
On 1/28/19 10:21 AM, Sakari Ailus wrote: > Hi Hans, > > Thanks for the patch. > > On Sat, Jan 26, 2019 at 12:06:19PM +0100, Hans Verkuil wrote: >> This patch adds an extended version of VIDIOC_DQEVENT that: >> >> 1) is Y2038 safe by using a __u64 for the timestamp >> 2) needs no compat32 conversi

Re: [PATCH 3/3] media: vicodec: Register another node for stateless decoder

2019-01-28 Thread Hans Verkuil
On 1/26/19 2:47 PM, Dafna Hirschfeld wrote: > Add stateless decoder instance field to the dev struct and > register another node for the statelsess decoder. > The stateless API for the node will be implemented in further patches. > > Signed-off-by: Dafna Hirschfeld > --- > drivers/media/platform

Re: [PATCH 2/3] media: vicodec: Introducing stateless fwht defs and structs

2019-01-28 Thread Hans Verkuil
On 1/26/19 2:47 PM, Dafna Hirschfeld wrote: > Add structs and definitions needed to implement stateless > decoder for fwht. > > Signed-off-by: Dafna Hirschfeld > --- > drivers/media/platform/vicodec/vicodec-core.c | 12 > drivers/media/v4l2-core/v4l2-ctrls.c | 6 ++ >

Re: [PATCH 1/3] media: vicodec: add struct for encoder/decoder instance

2019-01-28 Thread Hans Verkuil
On 1/26/19 2:47 PM, Dafna Hirschfeld wrote: > Add struct 'vicodec_dev_instance' for the fields in vicodec_dev > that have have both decoder and encoder versions. > > Signed-off-by: Dafna Hirschfeld > --- > drivers/media/platform/vicodec/vicodec-core.c | 175 +- > 1 file changed,

Re: [RFC PATCH] videodev2.h: introduce VIDIOC_DQEXTEVENT

2019-01-28 Thread Sakari Ailus
Hi Hans, Thanks for the patch. On Sat, Jan 26, 2019 at 12:06:19PM +0100, Hans Verkuil wrote: > This patch adds an extended version of VIDIOC_DQEVENT that: > > 1) is Y2038 safe by using a __u64 for the timestamp > 2) needs no compat32 conversion code > 3) is able to handle control events from 64-

Re: [v4l-utils PATCH v2 5/5] v4l2-ctl: Add --stream-pixformat option

2019-01-28 Thread Hans Verkuil
Hi Dafna, On 1/21/19 7:56 PM, Dafna Hirschfeld wrote: > This option sets the capture pixelformat in the > capture setup sequence. > If the format is not supported decoding will stop. > If the option is not given then the default is to set > the first supported format. I'm not convinced about this

[PATCH v8 2/5] media: sun6i: Add A64 CSI block support

2019-01-28 Thread Jagan Teki
CSI block in Allwinner A64 has similar features as like in H3, but the default CSI_SCLK rate cannot work properly to drive the connected sensor interface. The tested mod cock rate is 300 MHz and BSP vfe media driver is also using the same rate. Unfortunately there is no valid information about clo

[DO NOT MERGE] [PATCH v8 5/5] arm64: dts: allwinner: bananapi-m64: Add HDF5640 camera module

2019-01-28 Thread Jagan Teki
Bananapi M64 comes with an optional sensor based on the ov5640, add support for it with below pin information. - PE13, PE12 via i2c-gpio bitbanging - CLK_CSI_MCLK as external clock - PE1 as external clock pin muxing - DLDO3 as AVDD supply - ALDO1 as DOVDD supply - ELDO3 as DVDD supply - PE16 gpio

[PATCH v8 4/5] arm64: dts: allwinner: a64: Add pinmux setting for CSI MCLK on PE1

2019-01-28 Thread Jagan Teki
Some camera modules have the SoC feeding a master clock to the sensor instead of having a standalone crystal. This clock signal is generated from the clock control unit and output from the CSI MCLK function of pin PE1. Add a pinmux setting for it for camera sensors to reference. Signed-off-by: Ja

[PATCH v8 3/5] arm64: dts: allwinner: a64: Add A64 CSI controller

2019-01-28 Thread Jagan Teki
Add dts node details for Allwinner A64 CSI controller. A64 CSI has similar features as like in H3, but the CSI_SCLK need to update it to 300MHz than default clock rate. Signed-off-by: Jagan Teki Acked-by: Maxime Ripard --- arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi | 20 +++

[PATCH v8 0/5] media/sun6i: Allwinner A64 CSI support

2019-01-28 Thread Jagan Teki
Add CSI support for Allwinner A64. Here is previous series[1] Changes for v8: - update proper enable and disable sequnce for clk_mod - fix warning for patch "media: sun6i: Add A64 CSI block support" - collect Maxime Acked-by Changes for v7: - Drop quirk change, and add as suggusted by Maxime - Use

[PATCH v8 1/5] dt-bindings: media: sun6i: Add A64 CSI compatible

2019-01-28 Thread Jagan Teki
Allwinner A64 CSI is a single channel time-multiplexed BT.656 protocol interface. Add separate compatible string for A64 since it require explicit change in sun6i_csi driver to update default CSI_SCLK rate. Signed-off-by: Jagan Teki Reviewed-by: Rob Herring Acked-by: Maxime Ripard --- Documen

Re: ipu3-imgu 0000:00:05.0: required queues are disabled

2019-01-28 Thread Kieran Bingham
Hi Kai-Heng, On 27/01/2019 05:56, Kai-Heng Feng wrote: > Hi, > > We have a bug report [1] that the ipu3 doesn’t work. > Does ipu3 need special userspace to work? Yes, it will need further userspace support to configure the pipeline, and to provide 3A algorithms for white balance, focus, and expo

Re: [PATCH v3 1/3] media: mt9m111: make VIDIOC_SUBDEV_G_FMT ioctl work with V4L2_SUBDEV_FORMAT_TRY

2019-01-28 Thread Sakari Ailus
Hi Mita-san, Marco, On Sun, Jan 27, 2019 at 09:29:30PM +0900, Akinobu Mita wrote: > 2019年1月24日(木) 0:17 Marco Felsch : > > > > Hi Akinobu, > > > > sorry for the delayed response. > > > > On 19-01-15 23:05, Akinobu Mita wrote: > > > The VIDIOC_SUBDEV_G_FMT ioctl for this driver doesn't recognize > >

Re: [PATCH] media: ov5640: Fix set 15fps regression

2019-01-28 Thread Jacopo Mondi
Hi everyone, On Mon, Jan 28, 2019 at 01:20:37PM +0530, Jagan Teki wrote: > On Fri, Jan 25, 2019 at 9:10 PM Maxime Ripard > wrote: > > > > On Thu, Jan 24, 2019 at 11:28:01PM +0530, Jagan Teki wrote: > > > The ov5640_try_frame_interval operation updates the FPS as per user > > > input based on def