cron job: media_tree daily build: WARNINGS

2019-03-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: Fri Mar 29 05:00:11 CET 2019 media-tree git hash:122d0e8dd050cc5dc3fb9e9b5f2dee3c5276ce35 media_build git

Re: [PATCH v2 08/11] rockchip/vpu: Support the Request API

2019-03-28 Thread Tomasz Figa
On Thu, Mar 28, 2019 at 10:59 PM Hans Verkuil wrote: > > On 3/28/19 8:20 AM, Tomasz Figa wrote: > > > > >> +static int rockchip_vpu_buf_out_validate(struct vb2_buffer *vb) > >> +{ > >> + struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); > >> + > >> + vbuf->field = V4L2_FIELD_NONE

Re: [PATCH v2 06/11] rockchip/vpu: Cleanup JPEG bounce buffer management

2019-03-28 Thread Tomasz Figa
On Fri, Mar 29, 2019 at 3:30 AM Ezequiel Garcia wrote: > > On Thu, 2019-03-28 at 15:15 +0900, Tomasz Figa wrote: > > Hi Ezequiel, > > > > On Tue, Mar 5, 2019 at 4:26 AM Ezequiel Garcia > > wrote: > > > In order to make the code more generic, introduce a pair of start/stop > > > codec operations,

[PATCH] media: platform: Fix a kernel warning on clk control

2019-03-28 Thread Jae Hyun Yoo
Video engine clock control functions in the Aspeed video engine driver are being called from multiple context without any protection so video clocks can be disabled twice and eventually it causes a kernel warning with stack dump printing out like below: [ 120.034729] WARNING: CPU: 0 PID: 1334 at

Re: [PATCH v2 07/11] rockchip/vpu: Open-code media controller register

2019-03-28 Thread Ezequiel Garcia
On Thu, 2019-03-28 at 16:11 +0900, Tomasz Figa wrote: > On Tue, Mar 5, 2019 at 4:27 AM Ezequiel Garcia wrote: > > In preparation to support decoders, using a single memory-to-memory > > device, we need to roll our own media controller entities registration. > > > > Signed-off-by: Ezequiel Garcia

Re: [Bug report] dvbv5-zap crash dvb-tool ARMHF builds

2019-03-28 Thread Mauro Carvalho Chehab
Em Thu, 28 Mar 2019 20:48:34 +0100 Gregor Jasny escreveu: > Hello, > > On 28.03.19 20:17, Mauro Carvalho Chehab wrote: > > Em Thu, 28 Mar 2019 19:48:35 +0100 > > Samuel CHEMLA escreveu: > >> 1) I did reproduce the bug with a serial console, but the serial > >> console was also frozen, and the

Re: [PATCH v3 2/2] media: Introduce helpers to fill pixel format structs

2019-03-28 Thread Jacopo Mondi
Hi Ezequiel, this is very nice, thank you! On Thu, Mar 28, 2019 at 03:07:04PM -0300, Ezequiel Garcia wrote: > Add two new API helpers, v4l2_fill_pixfmt and v4l2_fill_pixfmt_mp, > to be used by drivers to calculate plane sizes and bytes per lines. > > Note that driver-specific padding and alignm

Re: [Bug report] dvbv5-zap crash dvb-tool ARMHF builds

2019-03-28 Thread Gregor Jasny
Hello, On 28.03.19 20:17, Mauro Carvalho Chehab wrote: Em Thu, 28 Mar 2019 19:48:35 +0100 Samuel CHEMLA escreveu: 1) I did reproduce the bug with a serial console, but the serial console was also frozen, and there was no message before freeze. The only way for a machine to freeze even on ser

Re: [PATCH v2 09/11] rockchip/vpu: Add decoder boilerplate

2019-03-28 Thread Ezequiel Garcia
Hey Tomasz, Thanks for taking the time to review this carefully! On Thu, 2019-03-28 at 18:57 +0900, Tomasz Figa wrote: > On Tue, Mar 5, 2019 at 4:27 AM Ezequiel Garcia wrote: > [snip] > > +static const struct rockchip_vpu_fmt * > > +rockchip_vpu_find_format(struct rockchip_vpu_ctx *ctx, u32 four

Re: [Bug report] dvbv5-zap crash dvb-tool ARMHF builds

2019-03-28 Thread Mauro Carvalho Chehab
Em Thu, 28 Mar 2019 19:48:35 +0100 Samuel CHEMLA escreveu: > Hi, Please, don't top post. > > > 1) I did reproduce the bug with a serial console, but the serial > console was also frozen, and there was no message before freeze. The only way for a machine to freeze even on serial console is due

Re: [PATCH v2 08/11] rockchip/vpu: Support the Request API

2019-03-28 Thread Ezequiel Garcia
On Thu, 2019-03-28 at 16:20 +0900, Tomasz Figa wrote: > On Tue, Mar 5, 2019 at 4:27 AM Ezequiel Garcia wrote: > > Introduce support for the Request API. Although the JPEG encoder > > does not mandate using the Request API, it's perfectly possible to > > use it, if the application wants to. > > >

Re: [Bug report] dvbv5-zap crash dvb-tool ARMHF builds

2019-03-28 Thread Samuel CHEMLA
Hi, 1) I did reproduce the bug with a serial console, but the serial console was also frozen, and there was no message before freeze. 2) I also tried a powered USB HUB but it didn't change anything. 3) I tried DVBJet, from https://github.com/lightful/DVBdirect , it is a tuner that directly does i

[GIT PULL FOR v5.2] Fixes, fixes and more fixes

2019-03-28 Thread Hans Verkuil
The following changes since commit 149e31e90b505ae0cc909bd0d92b2ba4826574d6: media: v4l: rcar_fdp1: Fix indentation oddities (2019-03-25 14:14:56 -0400) are available in the Git repository at: git://linuxtv.org/hverkuil/media_tree.git tags/br-v5.2a-new for you to fetch changes up to 0bc6225

[PATCH] media: dvbdev: remove double-unlock

2019-03-28 Thread Mauro Carvalho Chehab
As warned by smatch: drivers/media/dvb-core/dvbdev.c: drivers/media/dvb-core/dvbdev.c:529 dvb_register_device() error: double unlock 'sem:&minor_rwsem' Reported-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- drivers/media/dvb-core/dvbdev.c | 1 - 1 file changed, 1 deletion(-

Re: [PATCH v2 06/11] rockchip/vpu: Cleanup JPEG bounce buffer management

2019-03-28 Thread Ezequiel Garcia
On Thu, 2019-03-28 at 15:15 +0900, Tomasz Figa wrote: > Hi Ezequiel, > > On Tue, Mar 5, 2019 at 4:26 AM Ezequiel Garcia wrote: > > In order to make the code more generic, introduce a pair of start/stop > > codec operations, and use them to allocate and release the JPEG bounce > > buffer. > > > >

[PATCH 0/2] media: Introduce pixel format helpers

2019-03-28 Thread Ezequiel Garcia
Following the "Add MPEG-2 decoding to Rockchip VPU"[1], and given we want to start using the pixel format helpers rather soon, I've decided to submit them separatedly. Aside from documenting the block_w and block_h, as suggested by Emil Velikov, these two patches are unmodified compared to v2 [

[PATCH v3 1/2] rockchip/vpu: Rename pixel format helpers

2019-03-28 Thread Ezequiel Garcia
The rockchip VPU driver uses generic names for its pixel format helpers. We want to use the same names for generic versions of these helpers, so rename the rockchip ones. The driver will be switched to the generic helpers later. Signed-off-by: Ezequiel Garcia --- .../staging/media/rockchip/vpu/

[PATCH v3 2/2] media: Introduce helpers to fill pixel format structs

2019-03-28 Thread Ezequiel Garcia
Add two new API helpers, v4l2_fill_pixfmt and v4l2_fill_pixfmt_mp, to be used by drivers to calculate plane sizes and bytes per lines. Note that driver-specific padding and alignment are not taken into account, and must be done by drivers using this API. Signed-off-by: Ezequiel Garcia --- drive

[PATCH] media: vb2: Minor function naming fix

2019-03-28 Thread Ezequiel Garcia
Minor fix for helper function and comment, s/v4l2_vb2_buffer/vb2_v4l2_buffer. Signed-off-by: Ezequiel Garcia --- drivers/media/common/videobuf2/videobuf2-v4l2.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/media/common/videobuf2/videobuf2-v4l2.c b/drivers/me

Re: TW9910 Video decoder

2019-03-28 Thread Jacopo Mondi
Hello Vinod, On Thu, Mar 28, 2019 at 09:39:35AM +0530, vinodkum...@bel.co.in wrote: > HI, > > Are you still maintaining TW9910 Video decoder. We would like to use this > IC in our project. I'm replying as I think I'm one of the last who touched that driver when the soc_camera based version was po

[PATCH] media: wl128x: Fix some error handling in fmc_prepare()

2019-03-28 Thread Dan Carpenter
The st_register() returns have changed over time, but these days it never returns -1. We should just be checking for any negative error codes. Signed-off-by: Dan Carpenter --- drivers/media/radio/wl128x/fmdrv_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/m

Re: [PATCH v2 08/11] rockchip/vpu: Support the Request API

2019-03-28 Thread Hans Verkuil
On 3/28/19 8:20 AM, Tomasz Figa wrote: >> +static int rockchip_vpu_buf_out_validate(struct vb2_buffer *vb) >> +{ >> + struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); >> + >> + vbuf->field = V4L2_FIELD_NONE; > > Hmm, "validate" in the name of this callback would suggest that w

Re:Hello

2019-03-28 Thread Mr Wong
Hello this is Mr Wong again from hongkong,Can we send the Swift as discuss best regards. Mr Wong Cheng --- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus

print frequency debug only if dvb_frontend_debug is enables

2019-03-28 Thread Peter Holik
Hi! Every transponder switch from my vdr causes this debug message "frequency interval: tuner: ..., frontend: ..." in syslog. I think this should only happen if dvb_frontend_debug parameter is set. cu Peter--- a/drivers/media/dvb-core/dvb_frontend.c +++ b/drivers/media/dvb-core/dvb_frontend.c @

Xilinx/Allegro DVT VCU firmware

2019-03-28 Thread Michael Tretter
Hi Varunkumar, I am working on a mainline driver [0] for the VCU/video-codec that is found on the Xilinx ZynqMP. The driver depends on a firmware for the video codec [1], which is the same firmware that is used by the downstream VCU driver. As the license allows to distribute the binary, it shoul

[RFC V1 04/12] dt-bindings: mt8183: Added camera ISP Pass 1

2019-03-28 Thread Jungo Lin
This patch adds DT binding document for the Pass 1 (P1) unit in Mediatek's camera ISP system. The Pass 1 unit grabs the sensor data out from the sensor interface, applies ISP effects and writes the image data to DRAM. Signed-off-by: Jungo Lin --- .../devicetree/bindings/media/mediatek,camisp.txt

[RFC V1 06/12] media: platform: Add Mediatek ISP Pass 1 driver Kconfig

2019-03-28 Thread Jungo Lin
This patch adds Kconfig for Pass 1 (P1) unit driver of Mediatek's camera ISP system. ISP P1 unit is embedded in Mediatek SoCs. It provides RAW processing which includes optical black correction, defect pixel correction, W/IR imbalance correction and lens shading correction. Signed-off-by: Jungo Li

[RFC V1 08/12] media: platform: Add Mediatek ISP P1 private control

2019-03-28 Thread Jungo Lin
Reserved Mediatek ISP P1 private control number with 16. Moreover, add two private controls for ISP P1 user space usage. 1. V4L2_CID_PRIVATE_GET_BIN_INFO - Provide the image output width & height in case camera binning mode is enabled. 2. V4L2_CID_PRIVATE_RAW_PATH - Export the path control of the

[RFC V1 11/12] media: platform: Add Mediatek ISP P1 SCP communication

2019-03-28 Thread Jungo Lin
This patch adds communication with the co-processor on the SoC through the SCP driver. It supports bi-directional command based to exchange data and flow control. Signed-off-by: Jungo Lin --- This patch dependents on "Add support for mt8183 SCP"[1]. [1] https://patchwork.kernel.org/cover/1087254

[RFC V1 10/12] media: platform: Add Mediatek ISP P1 device driver

2019-03-28 Thread Jungo Lin
This patch adds the Mediatek ISP P1 HW control device driver. It handles the ISP HW configuration, provides interrupt handling and initializes the V4L2 device nodes and other functions. Signed-off-by: Jungo Lin --- .../platform/mtk-isp/isp_50/cam/mtk_cam-regs.h | 147 +++ .../media/platform

Re: [PATCH v2 09/11] rockchip/vpu: Add decoder boilerplate

2019-03-28 Thread Tomasz Figa
On Tue, Mar 5, 2019 at 4:27 AM Ezequiel Garcia wrote: [snip] > +static const struct rockchip_vpu_fmt * > +rockchip_vpu_find_format(struct rockchip_vpu_ctx *ctx, u32 fourcc) > +{ > + struct rockchip_vpu_dev *dev = ctx->dev; > + const struct rockchip_vpu_fmt *formats; > + unsigned

[RFC V1 09/12] media: platform: Add Mediatek ISP P1 V4L2 functions

2019-03-28 Thread Jungo Lin
Implement standard V4L2 video driver that utilizes v4l2 and media frameworks. In this driver, supports one sub-device and six video devices. Moreover, it also connects with sensor & senif drivers with camera IO connection via media controller APIs. Signed-off-by: Jungo Lin --- drivers/media/plat

[RFC V1 12/12] media: platform: Add Mediatek ISP P1 shared memory driver

2019-03-28 Thread Jungo Lin
The purpose of this driver is to provide shared memory management for exchanging tuning data between co-processor and the Pass 1 unit of the camera ISP system. Signed-off-by: Jungo Lin --- .../platform/mtk-isp/isp_50/cam/mtk_cam-smem-drv.c | 398 + .../platform/mtk-isp/isp_50

[RFC V1 07/12] media: platform: Add Mediatek ISP P1 image & meta formats

2019-03-28 Thread Jungo Lin
Add packed/unpacked/full-g bayer format with 8/10/12/14 bit for image output. Add Pass 1 (P1) specific meta formats for parameter processing and 3A/other statistics. Signed-off-by: Jungo Lin --- include/uapi/linux/videodev2.h | 20 1 file changed, 20 insertions(+) diff --gi

[RFC V1 05/12] dts: arm64: mt8183: Add ISP Pass 1 nodes

2019-03-28 Thread Jungo Lin
Add nodes for Pass 1 unit of Mediatek's camera ISP system. Pass 1 unit embedded in Mediatek SoCs, works with the co-processor to process image signal from the image sensor and output RAW data. Signed-off-by: Jungo Lin --- arch/arm64/boot/dts/mediatek/mt8183.dtsi | 42

[RFC V1 03/12] dt-bindings: mt8183: Added cam-smem dt-bindings

2019-03-28 Thread Jungo Lin
This patch adds the DT binding documentation for the shared memory between Pass 1 unit of the camera ISP system and the co-processor in Mediatek SoCs. Signed-off-by: Jungo Lin --- .../bindings/media/mediatek,cam_smem.txt | 32 ++ 1 file changed, 32 insertions(+) cr

[RFC V1 02/12] dts: arm64: mt8183: Add ISP Pass 1 shared memory node

2019-03-28 Thread Jungo Lin
This patch adds a shared memory region used on mt8183 for exchanging tuning data between co-processor and the Pass 1 unit of the camera ISP system. Signed-off-by: Jungo Lin --- arch/arm64/boot/dts/mediatek/mt8183.dtsi | 13 + 1 file changed, 13 insertions(+) diff --git a/arch/arm64/

[RFC V1 00/12] meida: platform: mtk-isp: Add Mediatek ISP Pass 1 driver

2019-03-28 Thread Jungo Lin
Hello, This RFC patch series adding the driver for Pass 1 (P1) unit in Mediatek's camera ISP system on mt8183 SoC, which will be used in camera features of CrOS. It's the first time Mediatek develops ISP kernel drivers based on V4L2 and media controller framework. I posted the main part of the ISP

[RFC V1 01/12] dt-bindings: mt8183: Add binding for ISP Pass 1 reserved memory

2019-03-28 Thread Jungo Lin
This patch adds the binding for describing the reserved shared memory used to exchange configuration and tuning data between the co-processor and Pass 1 (P1) unit of the camera ISP system on Mediatek SoCs. Signed-off-by: Jungo Lin --- .../mediatek,reserve-memory-cam_smem.txt | 44 +

Re: [PATCH v4 2/3] [media] allegro: add Allegro DVT video IP core driver

2019-03-28 Thread Michael Tretter
On Wed, 27 Mar 2019 14:33:40 +0100, Hans Verkuil wrote: > On 3/1/19 4:27 PM, Michael Tretter wrote: > > Add a V4L2 mem-to-mem driver for Allegro DVT video IP cores as found in > > the EV family of the Xilinx ZynqMP SoC. The Zynq UltraScale+ Device > > Technical Reference Manual uses the term VCU (V

Re: [PATCH v4 3/3] [media] allegro: add SPS/PPS nal unit writer

2019-03-28 Thread Michael Tretter
On Wed, 27 Mar 2019 14:45:04 +0100, Hans Verkuil wrote: > On 3/1/19 4:27 PM, Michael Tretter wrote: > > The allegro hardware encoder does not write SPS/PPS nal units into the > > encoded video stream. Therefore, we need to write the units in software. > > > > The implementation follows Rec. ITU-T

Re: [PATCH v4 1/3] media: dt-bindings: media: document allegro-dvt bindings

2019-03-28 Thread Hans Verkuil
On 3/28/19 9:59 AM, Michael Tretter wrote: > On Wed, 27 Mar 2019 13:57:10 +0100, Hans Verkuil wrote: >> On 3/1/19 4:27 PM, Michael Tretter wrote: >>> Add device-tree bindings for the Allegro DVT video IP core found on the >>> Xilinx ZynqMP EV family. >>> >>> Signed-off-by: Michael Tretter >>> Revi

Re: [PATCH v4 1/3] media: dt-bindings: media: document allegro-dvt bindings

2019-03-28 Thread Michael Tretter
On Wed, 27 Mar 2019 13:57:10 +0100, Hans Verkuil wrote: > On 3/1/19 4:27 PM, Michael Tretter wrote: > > Add device-tree bindings for the Allegro DVT video IP core found on the > > Xilinx ZynqMP EV family. > > > > Signed-off-by: Michael Tretter > > Reviewed-by: Rob Herring > > --- > > v3 -> v4: >

PRIVATE...

2019-03-28 Thread svetlana
I have a business Proposal that will be of benefit to the both of us.Kindly contact me on mrmichealwu...@yahoo.com.hk should this be of interest to you.

Re: [PATCH v2 08/11] rockchip/vpu: Support the Request API

2019-03-28 Thread Tomasz Figa
On Tue, Mar 5, 2019 at 4:27 AM Ezequiel Garcia wrote: > > Introduce support for the Request API. Although the JPEG encoder > does not mandate using the Request API, it's perfectly possible to > use it, if the application wants to. > > In addition, add helpers that will be used by video decoders. >

Re: [PATCH v2 07/11] rockchip/vpu: Open-code media controller register

2019-03-28 Thread Tomasz Figa
On Tue, Mar 5, 2019 at 4:27 AM Ezequiel Garcia wrote: > > In preparation to support decoders, using a single memory-to-memory > device, we need to roll our own media controller entities registration. > > Signed-off-by: Ezequiel Garcia > --- > .../staging/media/rockchip/vpu/rockchip_vpu.h | 35 +