Re: [PATCH v4 0/3] media: imx: Stop stream before disabling IDMA channels

2019-01-21 Thread Hans Verkuil
Hi Steve, On 01/22/2019 12:35 AM, Steve Longerbeam wrote: > Repeatedly sending a stream off immediately followed by stream on can > eventually cause a complete system hard lockup on the SabreAuto when > streaming from the ADV7180: > > while true; do v4l2-ctl -d4 --stream-mmap --stream-count=3; d

Re: [PATCH 1/9] mm: Introduce new vm_insert_range and vm_insert_range_buggy API

2019-01-21 Thread Souptick Joarder
On Fri, Jan 11, 2019 at 8:33 PM Souptick Joarder wrote: > > Previouly drivers have their own way of mapping range of > kernel pages/memory into user vma and this was done by > invoking vm_insert_page() within a loop. > > As this pattern is common across different drivers, it can > be generalized b

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

2019-01-21 Thread Alexandre Courbot
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 driver so far, it should probably still be considered staging for a shor

cron job: media_tree daily build: ERRORS

2019-01-21 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 22 05:00:10 CET 2019 media-tree git hash:337e90ed028643c7acdfd0d31e3224d05ca03d66 media_build git

[v4l-utils] treewide: Fix compilation with uClibc++

2019-01-21 Thread Rosen Penev
Several headers are missing. Signed-off-by: Rosen Penev --- utils/cec-ctl/cec-ctl.cpp | 1 + utils/cec-follower/cec-follower.h | 1 + utils/common/media-info.cpp | 2 +- utils/rds-ctl/rds-ctl.cpp | 2 ++ 4 files changed, 5 insertions(+), 1 deletion(-) diff --git a/utils/ce

Re: [PATCH 1/3] media: dt: bindings: sunxi-ir: Add A64 compatible

2019-01-21 Thread Chen-Yu Tsai
On Tue, Jan 22, 2019 at 8:19 AM Rob Herring wrote: > > On Mon, Jan 21, 2019 at 05:57:57PM +0800, Chen-Yu Tsai wrote: > > On Mon, Jan 21, 2019 at 5:50 PM Maxime Ripard > > wrote: > > > > > > Hi, > > > > > > I'm a bit late to the party, sorry for that. > > > > > > On Sat, Jan 12, 2019 at 09:56:11A

Re: [PATCH] venus: enc: fix enum_frameintervals

2019-01-21 Thread kbuild test robot
/linux/commits/Stanimir-Varbanov/venus-enc-fix-enum_frameintervals/20190121-235146 base: git://linuxtv.org/media_tree.git master config: parisc-allmodconfig (attached as .config) compiler: hppa-linux-gnu-gcc (Debian 8.2.0-11) 8.2.0 reproduce: wget https://raw.githubusercontent.com/intel/lkp

[PATCH v4] media: vimc: Add vimc-streamer for stream control

2019-01-21 Thread Lucas A. M. Magalhaes
Add a linear pipeline logic for the stream control. It's created by walking backwards on the entity graph. When the stream starts it will simply loop through the pipeline calling the respective process_frame function of each entity. Fixes: f2fe89061d797 ("vimc: Virtual Media Controller core, captu

Re: [PATCH RESEND] media: s5p-mfc: Fix memdev DMA configuration

2019-01-21 Thread Rob Herring
On Mon, Jan 14, 2019 at 03:14:14PM +, Robin Murphy wrote: > Having of_reserved_mem_device_init() forcibly reconfigure DMA for all > callers, potentially overriding the work done by a bus-specific > .dma_configure method earlier, is at best a bad idea and at worst > actively harmful. If drivers

Re: [PATCH 1/4] media: imx: csi: Allow unknown nearest upstream entities

2019-01-21 Thread Steve Longerbeam
On 1/21/19 8:50 AM, Philipp Zabel wrote: On Sat, 2019-01-19 at 13:45 -0800, Steve Longerbeam wrote: On i.MX6, the nearest upstream entity to the CSI can only be the CSI video muxes or the Synopsys DW MIPI CSI-2 receiver. However the i.MX53 has no CSI video muxes or a MIPI CSI-2 receiver. So

Re: [PATCH 1/3] media: dt: bindings: sunxi-ir: Add A64 compatible

2019-01-21 Thread Rob Herring
On Mon, Jan 21, 2019 at 05:57:57PM +0800, Chen-Yu Tsai wrote: > On Mon, Jan 21, 2019 at 5:50 PM Maxime Ripard > wrote: > > > > Hi, > > > > I'm a bit late to the party, sorry for that. > > > > On Sat, Jan 12, 2019 at 09:56:11AM +0800, Chen-Yu Tsai wrote: > > > On Sat, Jan 12, 2019 at 1:30 AM Jerne

[PATCH v4 3/3] media: imx: prpencvf: Stop upstream before disabling IDMA channel

2019-01-21 Thread Steve Longerbeam
Upstream must be stopped immediately after receiving the last EOF and before disabling the IDMA channel. This can be accomplished by moving upstream stream off to just after receiving the last EOF completion in prp_stop(). For symmetry also move upstream stream on to end of prp_start(). This fixes

[PATCH v4 1/3] media: imx: csi: Disable CSI immediately after last EOF

2019-01-21 Thread Steve Longerbeam
Disable the CSI immediately after receiving the last EOF before stream off (and thus before disabling the IDMA channel). Do this by moving the wait for EOF completion into a new function csi_idmac_wait_last_eof(). This fixes a complete system hard lockup on the SabreAuto when streaming from the AD

[PATCH v4 2/3] media: imx: csi: Stop upstream before disabling IDMA channel

2019-01-21 Thread Steve Longerbeam
Move upstream stream off to just after receiving the last EOF completion and disabling the CSI (and thus before disabling the IDMA channel) in csi_stop(). For symmetry also move upstream stream on to beginning of csi_start(). Doing this makes csi_s_stream() more symmetric with prp_s_stream() which

[PATCH v4 0/3] media: imx: Stop stream before disabling IDMA channels

2019-01-21 Thread Steve Longerbeam
Repeatedly sending a stream off immediately followed by stream on can eventually cause a complete system hard lockup on the SabreAuto when streaming from the ADV7180: while true; do v4l2-ctl -d4 --stream-mmap --stream-count=3; done Eventually this either causes the system lockup or EOF timeouts

CODA9 (IMX) JPEG support

2019-01-21 Thread Tim Harvey
Philipp, Is there any support for coda9 (imx) JPEG enc/dec support being worked on in the coda driver? I noticed there is support for coda7 but not yet coda9. Best regards, Tim

Re: [PATCH v8 11/11] media: imx.rst: Update doc to reflect fixes to interlaced capture

2019-01-21 Thread Tim Harvey
On Tue, Jan 15, 2019 at 3:54 PM Steve Longerbeam wrote: > > Hi Tim, > > On 1/15/19 1:58 PM, Tim Harvey wrote: > > On Wed, Jan 9, 2019 at 10:30 AM Steve Longerbeam > > wrote: > >> Also add an example pipeline for unconverted capture with interweave > >> on SabreAuto. > >> > >> Cleanup some langua

[v4l-utils PATCH v2 0/5] source change support in v4l2-ctl

2019-01-21 Thread Dafna Hirschfeld
Changes from v2: 1. reomve the patch "test the excpetion fds first in streaming_set_m2m" instead check the last buffer at the end of each loop. 2. The fmt shoud not be queried with g_fmt at each iteration, but only after a resolution change. 3. don't enum/get/set the new format in "Introduce captur

[v4l-utils PATCH v2 2/5] v4l2-ctl: Add function get_codec_type

2019-01-21 Thread Dafna Hirschfeld
Add function get_codec_type that returns the type of codec NOT_CODEC/ENCODER/DEOCDER. Move the functions get_cap_compose/crop_rect to the start of the file. Signed-off-by: Dafna Hirschfeld --- utils/v4l2-ctl/v4l2-ctl-streaming.cpp | 123 ++ 1 file changed, 85 insertions(+

[v4l-utils PATCH v2 1/5] v4l2-ctl: Add support for crop and compose selection in streaming

2019-01-21 Thread Dafna Hirschfeld
Support crop and compose selection. If the driver supports crop/compose then the raw frame is arranged inside a padded buffer. Signed-off-by: Dafna Hirschfeld --- utils/common/codec-fwht.patch | 8 +- utils/common/v4l-stream.c | 14 +-- utils/common/v4l-stream.h

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

2019-01-21 Thread Dafna Hirschfeld
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. Signed-off-by: Dafna Hirschfeld --- utils/v4l2-ctl/v4l2-ctl-streaming.cpp | 37

[v4l-utils PATCH v2 3/5] v4l2-ctl: Introduce capture_setup

2019-01-21 Thread Dafna Hirschfeld
Add function capture_setup that implements the capture setup sequence. Signed-off-by: Dafna Hirschfeld --- utils/v4l2-ctl/v4l2-ctl-streaming.cpp | 46 ++- 1 file changed, 38 insertions(+), 8 deletions(-) diff --git a/utils/v4l2-ctl/v4l2-ctl-streaming.cpp b/utils/v4l2-ct

[v4l-utils PATCH v2 4/5] v4l2-ctl: Add support for source change event for m2m decoder

2019-01-21 Thread Dafna Hirschfeld
Subscribe to source change event. The capture setup sequence is executed only due to a change event. Signed-off-by: Dafna Hirschfeld --- utils/v4l2-ctl/v4l2-ctl-streaming.cpp | 112 +++--- 1 file changed, 85 insertions(+), 27 deletions(-) diff --git a/utils/v4l2-ctl/v4l2-ctl

Re: [PATCH v3 1/2] media: imx: csi: Disable SMFC before disabling IDMA channel

2019-01-21 Thread Steve Longerbeam
On 1/21/19 10:43 AM, Steve Longerbeam wrote: On 1/21/19 3:49 AM, Philipp Zabel wrote: Also ipu_smfc_disable is refcounted, so if the other CSI is capturing simultaneously, this change has no effect. Sigh, you're right. Let me go back to disabling the CSI before the channel, the CSI enabl

Re: [PATCH v3 1/2] media: imx: csi: Disable SMFC before disabling IDMA channel

2019-01-21 Thread Steve Longerbeam
On 1/21/19 3:49 AM, Philipp Zabel wrote: Hi, On Fri, 2019-01-18 at 17:04 -0800, Steve Longerbeam wrote: Disable the SMFC before disabling the IDMA channel, instead of after, in csi_idmac_unsetup(). This fixes a complete system hard lockup on the SabreAuto when streaming from the ADV7180, by

Dearest Friend

2019-01-21 Thread Mercy Kings
Dearest One First i thanks your attention to me, I am mercy kings My parents Mr.and Mrs.kings were assassinated here in IVORY COAST. Before my Before my father's death he had (USD $5.9M) Five Million Nine Hundred Thousand United State Dollars deposited in a bank here in Abidjan. I want you to do m

Re: [PATCH 1/3] media: dt: bindings: sunxi-ir: Add A64 compatible

2019-01-21 Thread Jernej Škrabec
Dne ponedeljek, 21. januar 2019 ob 18:39:26 CET je Chen-Yu Tsai napisal(a): > On Tue, Jan 22, 2019 at 1:33 AM Jernej Škrabec wrote: > > Dne ponedeljek, 21. januar 2019 ob 10:57:57 CET je Chen-Yu Tsai napisal(a): > > > On Mon, Jan 21, 2019 at 5:50 PM Maxime Ripard > > > > > > > wrote: > > > > H

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

2019-01-21 Thread Michael Tretter
On Mon, 21 Jan 2019 11:17:43 -0500, Nicolas Dufresne wrote: > Le lundi 21 janvier 2019 à 11:59 +0100, Philipp Zabel a écrit : > > On Fri, 2019-01-18 at 14:37 +0100, Michael Tretter wrote: > > > Add device-tree bindings for the Allegro DVT video IP core found on the > > > Xilinx ZynqMP EV family.

Re: [PATCH 1/3] media: dt: bindings: sunxi-ir: Add A64 compatible

2019-01-21 Thread Chen-Yu Tsai
On Tue, Jan 22, 2019 at 1:33 AM Jernej Škrabec wrote: > > Dne ponedeljek, 21. januar 2019 ob 10:57:57 CET je Chen-Yu Tsai napisal(a): > > On Mon, Jan 21, 2019 at 5:50 PM Maxime Ripard > wrote: > > > Hi, > > > > > > I'm a bit late to the party, sorry for that. > > > > > > On Sat, Jan 12, 2019 at 0

Re: [PATCH 1/3] media: dt: bindings: sunxi-ir: Add A64 compatible

2019-01-21 Thread Jernej Škrabec
Dne ponedeljek, 21. januar 2019 ob 10:57:57 CET je Chen-Yu Tsai napisal(a): > On Mon, Jan 21, 2019 at 5:50 PM Maxime Ripard wrote: > > Hi, > > > > I'm a bit late to the party, sorry for that. > > > > On Sat, Jan 12, 2019 at 09:56:11AM +0800, Chen-Yu Tsai wrote: > > > On Sat, Jan 12, 2019 at 1:3

RE: [PATCH 4/5] media: rcar-vin: Enable support for r8a774a1

2019-01-21 Thread Fabrizio Castro
Hello Mauro, This is a gentle reminder. Thanks, Fab > From: Biju Das > Sent: 29 November 2018 15:13 > Subject: RE: [PATCH 4/5] media: rcar-vin: Enable support for r8a774a1 > > Hello Mauro, > > Does this patch look ok to you? > > Thanks, > Fab > > > -Original Message- > > From: Biju Das

RE: [PATCH 3/5] media: dt-bindings: media: rcar_vin: Add r8a774a1 support

2019-01-21 Thread Fabrizio Castro
Hello Mauro, This is a gentle reminder. Thanks, Fab > From: Fabrizio Castro > Sent: 08 November 2018 14:26 > Subject: RE: [PATCH 3/5] media: dt-bindings: media: rcar_vin: Add r8a774a1 > support > > Hello Mauro, > > Does this patch look ok to you? > > Thanks, > Fab > > > From: linux-renesas-soc-

RE: [PATCH 2/5] media: rcar-csi2: Enable support for r8a774a1

2019-01-21 Thread Fabrizio Castro
Hello Mauro, This is a gentle reminder. Thanks, Fab > From: linux-renesas-soc-ow...@vger.kernel.org > On Behalf Of Fabrizio Castro > Sent: 08 November 2018 14:24 > Subject: RE: [PATCH 2/5] media: rcar-csi2: Enable support for r8a774a1 > > Hello Mauro, > > Does this patch look ok to you? > > Th

RE: [PATCH 1/5] media: dt-bindings: media: rcar-csi2: Add r8a774a1 support

2019-01-21 Thread Fabrizio Castro
Hello Mauro, This is a gentle reminder. Thanks, Fab > From: linux-renesas-soc-ow...@vger.kernel.org > On Behalf Of Fabrizio Castro > Sent: 08 November 2018 14:19 > Subject: RE: [PATCH 1/5] media: dt-bindings: media: rcar-csi2: Add r8a774a1 > support > > Hello Mauro, > > Does this patch look o

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

2019-01-21 Thread Rob Herring
On Fri, Jan 18, 2019 at 02:37:14PM +0100, 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 > --- > Changes since v1: > none > > --- > .../devicetree/bindings/media/allegro.txt | 35

Re: [PATCH 4/4] media: imx: Don't register IPU subdevs/links if CSI port missing

2019-01-21 Thread Philipp Zabel
On Sat, 2019-01-19 at 13:46 -0800, Steve Longerbeam wrote: > The second IPU internal sub-devices were being registered and links > to them created even when the second IPU is not present. This is wrong > for i.MX6 S/DL and i.MX53 which have only a single IPU. > > Fixes: e130291212df5 ("[media] med

Re: [PATCH 3/4] media: imx: Rename functions that add IPU-internal subdevs/links

2019-01-21 Thread Philipp Zabel
On Sat, 2019-01-19 at 13:45 -0800, Steve Longerbeam wrote: > For the functions that add and remove the internal IPU subdevice > descriptors and links between them, rename them to make clear they > are the subdevs and links internal to the IPU. Also rename the > platform data structure for the inter

Re: [PATCH 1/4] media: imx: csi: Allow unknown nearest upstream entities

2019-01-21 Thread Philipp Zabel
On Sat, 2019-01-19 at 13:45 -0800, Steve Longerbeam wrote: > On i.MX6, the nearest upstream entity to the CSI can only be the > CSI video muxes or the Synopsys DW MIPI CSI-2 receiver. > > However the i.MX53 has no CSI video muxes or a MIPI CSI-2 receiver. > So allow for the nearest upstream entity

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

2019-01-21 Thread Philipp Zabel
On Mon, 2019-01-21 at 11:17 -0500, Nicolas Dufresne wrote: [...] > > > +Example: > > > + al5e: al5e@a0009000 { > > > > Should the node names be "vpu" or "video-codec"? > > Xilinx calls this IP the "vcu", so "vpu" would be even more confusing. > Was this just a typo ? I was just going by what is

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

2019-01-21 Thread Nicolas Dufresne
Le lundi 21 janvier 2019 à 11:59 +0100, Philipp Zabel a écrit : > On Fri, 2019-01-18 at 14:37 +0100, 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 > > --- > > Changes since v1:

[PATCH v5 3/9] phy: dphy: Clarify lanes parameter documentation

2019-01-21 Thread Maxime Ripard
The lanes parameter is not solely about the number of lanes, but it also carries the fact that those are the first lanes in use during the transmission. It was implicit so far, so make sure it's explicit now. Suggested-by: Sakari Ailus Acked-by: Sakari Ailus Signed-off-by: Maxime Ripard --- i

[PATCH v5 4/9] sun6i: dsi: Convert to generic phy handling

2019-01-21 Thread Maxime Ripard
Now that we have everything in place in the PHY framework to deal in a generic way with MIPI D-PHY phys, let's convert our PHY driver and its associated DSI driver to that new API. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/sun4i/Kconfig | 11 +- drivers/gpu/drm/sun4i/Makefile

[PATCH v5 2/9] phy: dphy: Change units of wakeup and init parameters

2019-01-21 Thread Maxime Ripard
The Init and wakeup D-PHY parameters are in the micro/milliseconds range, putting the values real close to the types limits if they were in picoseconds. Move them to microseconds which should be better fit. Suggested-by: Sakari Ailus Acked-by: Sakari Ailus Signed-off-by: Maxime Ripard --- dri

[PATCH v5 0/9] phy: Add configuration interface for MIPI D-PHY devices

2019-01-21 Thread Maxime Ripard
Hi, Here is a set of patches to allow the phy framework consumers to test and apply runtime configurations. This is needed to support more phy classes that require tuning based on parameters depending on the current use case of the device, in addition to the power state management already provide

[PATCH v5 5/9] phy: Move Allwinner A31 D-PHY driver to drivers/phy/

2019-01-21 Thread Maxime Ripard
Now that our MIPI D-PHY driver has been converted to the phy framework, let's move it into the drivers/phy directory. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/sun4i/Kconfig | 10 +- drivers/gpu/drm/sun4i/Makefile | 1 +- drivers/gpu/drm/sun4i/sun6i_mipi_dphy

[PATCH v5 7/9] dt-bindings: phy: Move the Cadence D-PHY bindings

2019-01-21 Thread Maxime Ripard
The Cadence D-PHY bindings was defined as part of the DSI block so far. However, since it's now going to be a separate driver, we need to move the binding to a file of its own. Acked-by: Sakari Ailus Signed-off-by: Maxime Ripard --- Documentation/devicetree/bindings/display/bridge/cdns,dsi.txt

[PATCH v5 1/9] phy: dphy: Remove unused header

2019-01-21 Thread Maxime Ripard
The videomode.h header inclusion is an artifact from the patches development, remove it. Suggested-by: Sakari Ailus Acked-by: Sakari Ailus Signed-off-by: Maxime Ripard --- include/linux/phy/phy-mipi-dphy.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/include/linux/phy/phy-mipi-dphy.h

[PATCH v5 9/9] drm/bridge: cdns: Convert to phy framework

2019-01-21 Thread Maxime Ripard
Now that we have everything we need in the phy framework to allow to tune the phy parameters, let's convert the Cadence DSI bridge to that API instead of creating a ad-hoc driver for its phy. Acked-by: Sean Paul Signed-off-by: Maxime Ripard --- drivers/gpu/drm/bridge/Kconfig| 1 +- driver

[PATCH v5 6/9] drm/bridge: cdns: Separate DSI and D-PHY configuration

2019-01-21 Thread Maxime Ripard
The current configuration of the DSI bridge and its associated D-PHY is intertwined. In order to ease the future conversion to the phy framework for the D-PHY part, let's split the configuration in two. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/bridge/cdns-dsi.c | 101

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

2019-01-21 Thread Maxime Ripard
Cadence has designed a D-PHY that can be used by the, currently in tree, DSI bridge (DRM), CSI Transceiver and CSI Receiver (v4l2) drivers. Only the DSI driver has an ad-hoc driver for that phy at the moment, while the v4l2 drivers are completely missing any phy support. In order to make that phy

Re: [PATCH v4 6/9] drm/bridge: cdns: Separate DSI and D-PHY configuration

2019-01-21 Thread Maxime Ripard
On Thu, Jan 17, 2019 at 08:33:38AM -0500, Sean Paul wrote: > > @@ -768,49 +769,90 @@ static int cdns_dsi_mode2cfg(struct cdns_dsi *dsi, > > > > dsi_cfg->hsa = dpi_to_dsi_timing(tmp, bpp, > > DSI_HSA_FRAME_OVERHEAD); > > - dsi_htot

Re: [PATCH v3 1/2] media: imx: csi: Disable SMFC before disabling IDMA channel

2019-01-21 Thread Gaël PORTAY
Philipp, On Mon, Jan 21, 2019 at 12:49:10PM +0100, Philipp Zabel wrote: > Hi, > > On Fri, 2019-01-18 at 17:04 -0800, Steve Longerbeam wrote: > > Disable the SMFC before disabling the IDMA channel, instead of after, > > in csi_idmac_unsetup(). > > > > This fixes a complete system hard lockup on t

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

2019-01-21 Thread Hans Verkuil
Hi Shuah, On 12/18/2018 06:59 PM, sh...@kernel.org wrote: > From: Shuah Khan > > 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 s

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

2019-01-21 Thread Maxime Ripard
Hi Sean, On Thu, Jan 17, 2019 at 08:53:22AM -0500, Sean Paul wrote: > On Wed, Jan 09, 2019 at 10:33:25AM +0100, Maxime Ripard wrote: > > + opts->wakeup = cdns_dphy_get_wakeup_time_ns(dphy) * 1000; > > This should be "/ 1000" since the units of wakeup is us now (thanks to patch > 2). > You've m

[PATCH 8/8] v4l2-common: drop v4l2_get_timestamp

2019-01-21 Thread hverkuil-cisco
From: Hans Verkuil This function is no longer used, so drop it. Signed-off-by: Hans Verkuil --- drivers/media/v4l2-core/v4l2-common.c | 10 -- include/media/v4l2-common.h | 9 - 2 files changed, 19 deletions(-) diff --git a/drivers/media/v4l2-core/v4l2-common.c b/d

[PATCH 1/8] v4l2-event: keep track of the timestamp in ns

2019-01-21 Thread hverkuil-cisco
From: Hans Verkuil Internally use ktime_get_ns() to get the timestamp of the event. Only convert to timespec when interfacing with userspace. Signed-off-by: Hans Verkuil --- drivers/media/v4l2-core/v4l2-event.c | 19 +-- include/media/v4l2-event.h | 2 ++ 2 files cha

[PATCH 0/8] Preparing for Y2038 support

2019-01-21 Thread hverkuil-cisco
From: Hans Verkuil This patch series modifies v4l2-event, videobuf and various drivers that do not use vb2 or videobuf at all to store the event and buffer timestamps internally as a u64 (ktime_get_ns()). Only when interfacing with the userspace API are these timestamps converted to a timespec o

[PATCH 5/8] stkwebcam: use u64 for the timestamp internally

2019-01-21 Thread hverkuil-cisco
From: Hans Verkuil Just like vb2 does, use u64 internally to store the timestamps of the buffers. Only convert to timeval when interfacing with userspace. Signed-off-by: Hans Verkuil --- drivers/media/usb/stkwebcam/stk-webcam.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH 6/8] usbvision: use u64 for the timestamp internally

2019-01-21 Thread hverkuil-cisco
From: Hans Verkuil Just like vb2 does, use u64 internally to store the timestamps of the buffers. Only convert to timeval when interfacing with userspace. Signed-off-by: Hans Verkuil --- drivers/media/usb/usbvision/usbvision-core.c | 2 +- drivers/media/usb/usbvision/usbvision-video.c | 4 ++-

[PATCH 3/8] meye: use u64 for the timestamp internally

2019-01-21 Thread hverkuil-cisco
From: Hans Verkuil Just like vb2 does, use u64 internally to store the timestamps of the buffers. Only convert to timeval when interfacing with userspace. Signed-off-by: Hans Verkuil --- drivers/media/pci/meye/meye.c | 8 drivers/media/pci/meye/meye.h | 2 +- 2 files changed, 5 insert

[PATCH 4/8] cpia2: use u64 for the timestamp internally

2019-01-21 Thread hverkuil-cisco
From: Hans Verkuil Just like vb2 does, use u64 internally to store the timestamps of the buffers. Only convert to timeval when interfacing with userspace. Signed-off-by: Hans Verkuil --- drivers/media/usb/cpia2/cpia2.h | 2 +- drivers/media/usb/cpia2/cpia2_usb.c | 2 +- drivers/media/usb

[PATCH 7/8] zoran: use u64 for the timestamp internally

2019-01-21 Thread hverkuil-cisco
From: Hans Verkuil Just like vb2 does, use u64 internally to store the timestamps of the buffers. Only convert to timeval when interfacing with userspace. Signed-off-by: Hans Verkuil --- drivers/staging/media/zoran/zoran.h| 2 +- drivers/staging/media/zoran/zoran_device.c | 4 ++-- dri

[PATCH 2/8] videobuf: use u64 for the timestamp internally

2019-01-21 Thread hverkuil-cisco
From: Hans Verkuil Just like vb2 does, use u64 internally to store the timestamps of the buffers. Only convert to timeval when interfacing with userspace. Signed-off-by: Hans Verkuil --- drivers/media/common/saa7146/saa7146_fops.c | 2 +- drivers/media/pci/bt8xx/bttv-driver.c | 8 +

Re: [PATCH v3 1/2] media: imx: csi: Disable SMFC before disabling IDMA channel

2019-01-21 Thread Philipp Zabel
Hi, On Fri, 2019-01-18 at 17:04 -0800, Steve Longerbeam wrote: > Disable the SMFC before disabling the IDMA channel, instead of after, > in csi_idmac_unsetup(). > > This fixes a complete system hard lockup on the SabreAuto when streaming > from the ADV7180, by repeatedly sending a stream off imme

[PATCH v6 4/5] media: vicodec: Separate fwht header from the frame data

2019-01-21 Thread Dafna Hirschfeld
Keep the fwht header in separated field from the data. Refactor job_ready to use a new function 'get_next_header' Signed-off-by: Dafna Hirschfeld --- .../media/platform/vicodec/codec-v4l2-fwht.c | 24 ++-- .../media/platform/vicodec/codec-v4l2-fwht.h | 1 + drivers/media/platform/vicodec/vi

[PATCH v6 2/5] media: vicodec: use 3 bits for the number of components

2019-01-21 Thread Dafna Hirschfeld
Use 3 bits for the number of components mask in the fwht header flags Signed-off-by: Dafna Hirschfeld --- drivers/media/platform/vicodec/codec-fwht.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/platform/vicodec/codec-fwht.h b/drivers/media/platform/vicodec/

[PATCH v6 5/5] media: vicodec: Add support for resolution change event.

2019-01-21 Thread Dafna Hirschfeld
If the the queues are not streaming then the first resolution change is handled in the buf_queue callback. The following resolution change events are handled in job_ready. Signed-off-by: Dafna Hirschfeld --- drivers/media/platform/vicodec/vicodec-core.c | 361 ++ 1 file changed,

[PATCH v6 0/5] media: vicodec: source change support

2019-01-21 Thread Dafna Hirschfeld
Changes from v5 cleanups of 'line too long' warnings' Dafna Hirschfeld (5): media: vicodec: add support for CROP and COMPOSE selection media: vicodec: use 3 bits for the number of components media: vicodec: Add pixel encoding flags to fwht header media: vicodec: Separate fwht header from t

[PATCH v6 3/5] media: vicodec: Add pixel encoding flags to fwht header

2019-01-21 Thread Dafna Hirschfeld
Add flags indicating the pixel encoding - yuv/rgb/hsv to fwht header and to the pixel info. Use it to enumerate the supported pixel formats. Signed-off-by: Dafna Hirschfeld --- drivers/media/platform/vicodec/codec-fwht.h | 6 ++ .../media/platform/vicodec/codec-v4l2-fwht.c | 77 +

[PATCH v6 1/5] media: vicodec: add support for CROP and COMPOSE selection

2019-01-21 Thread Dafna Hirschfeld
Add support for the selection api for the crop and compose targets. The driver rounds up the coded width and height such that all planes dimensions are multiple of 8. Signed-off-by: Dafna Hirschfeld --- drivers/media/platform/vicodec/codec-fwht.c | 83 +++-- drivers/media/platform/vicodec/cod

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

2019-01-21 Thread mgottam
On 2019-01-21 16:50, mgot...@codeaurora.org wrote: On 2019-01-17 21:50, Stanimir Varbanov wrote: This refactored code for start/stop streaming vb2 operations and adds a state machine handling similar to the one in stateful codec API documentation. One major change is that now the HFI session is

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

2019-01-21 Thread mgottam
On 2019-01-17 21:50, Stanimir Varbanov wrote: This refactored code for start/stop streaming vb2 operations and adds a state machine handling similar to the one in stateful codec API documentation. One major change is that now the HFI session is started on STREAMON(OUTPUT) and stopped on REQBUF(OU

[PATCH] v4l2-pci-skeleton.c: fix outdated irq code

2019-01-21 Thread Hans Verkuil
Fix the outdated irq example code. It is under an #ifdef TODO so it is never actually compiled and this code was never compiled. Signed-off-by: Hans Verkuil --- diff --git a/samples/v4l/v4l2-pci-skeleton.c b/samples/v4l/v4l2-pci-skeleton.c index 27ec30952cfa..758ced8c3d06 100644 --- a/samples/v4l

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

2019-01-21 Thread Philipp Zabel
On Fri, 2019-01-18 at 14:37 +0100, 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 > --- > Changes since v1: > none > > --- > .../devicetree/bindings/media/allegro.txt | 35 +++

Re: [RFC PATCH] media/doc: Allow sizeimage to be set by v4l clients

2019-01-21 Thread Stanimir Varbanov
Hi Hans, On 1/18/19 11:13 AM, Hans Verkuil wrote: > On 1/16/19 1:37 PM, Stanimir Varbanov wrote: >> This changes v4l2_pix_format and v4l2_plane_pix_format sizeimage >> field description to allow v4l clients to set bigger image size >> in case of variable length compressed data. >> >> Signed-off-by

Re: [PATCH v2 0/3] Add ZynqMP VCU/Allegro DVT H.264 encoder driver

2019-01-21 Thread Michael Tretter
Hi Hans, On Fri, 18 Jan 2019 15:11:32 +0100, Hans Verkuil wrote: > Hi Michael, > > On 1/18/19 2:37 PM, Michael Tretter wrote: > > This is v2 of the series to add support for the Allegro DVT H.264 encoder > > found in the EV family of the Xilinx ZynqMP platform. > > > > See v1 [0] of the patch se

Re: [PATCH 1/7] Input: document meanings of KEY_SCREEN and KEY_ZOOM

2019-01-21 Thread Benjamin Tissoires
On Mon, Jan 21, 2019 at 11:11 AM Jiri Kosina wrote: > > On Fri, 18 Jan 2019, Dmitry Torokhov wrote: > > > It is hard to say what KEY_SCREEN and KEY_ZOOM mean, but historically DVB > > folks have used them to indicate switch to full screen mode. Later, they > > converged on using KEY_ZOOM to switch

Re: [PATCH v5 0/6] media: vicodec: source change support

2019-01-21 Thread Hans Verkuil
Hi Dafna, On 01/20/2019 02:29 PM, Dafna Hirschfeld wrote: > Main changes from v4: > 1. in patch 5/6 - bugfix in get_next_header > if memchr returns NULL, set p to p_src + sz > 2. in 6/6 - some bugfixzes in buf_queue callback > and remove the field comp_frame_size from vicodec_ctx > since it can al

Re: [PATCH 1/7] Input: document meanings of KEY_SCREEN and KEY_ZOOM

2019-01-21 Thread Jiri Kosina
On Fri, 18 Jan 2019, Dmitry Torokhov wrote: > It is hard to say what KEY_SCREEN and KEY_ZOOM mean, but historically DVB > folks have used them to indicate switch to full screen mode. Later, they > converged on using KEY_ZOOM to switch into full screen mode and KEY)SCREEN > to control aspect ratio

Re: [PATCH 1/3] media: dt: bindings: sunxi-ir: Add A64 compatible

2019-01-21 Thread Chen-Yu Tsai
On Mon, Jan 21, 2019 at 5:50 PM Maxime Ripard wrote: > > Hi, > > I'm a bit late to the party, sorry for that. > > On Sat, Jan 12, 2019 at 09:56:11AM +0800, Chen-Yu Tsai wrote: > > On Sat, Jan 12, 2019 at 1:30 AM Jernej Skrabec > > wrote: > > > > > > A64 IR is compatible with A13, so add A64 comp

Re: [PATCH 1/3] media: dt: bindings: sunxi-ir: Add A64 compatible

2019-01-21 Thread Maxime Ripard
Hi, I'm a bit late to the party, sorry for that. On Sat, Jan 12, 2019 at 09:56:11AM +0800, Chen-Yu Tsai wrote: > On Sat, Jan 12, 2019 at 1:30 AM Jernej Skrabec > wrote: > > > > A64 IR is compatible with A13, so add A64 compatible with A13 as a > > fallback. > > We ask people to add the SoC-spe

Re: [v4l-utils PATCH 4/6] v4l2-ctl: Introduce capture_setup

2019-01-21 Thread Hans Verkuil
On 01/20/2019 12:15 PM, Dafna Hirschfeld wrote: > Add function capture_setup that implements the > capture setup sequence. > > Signed-off-by: Dafna Hirschfeld > --- > utils/v4l2-ctl/v4l2-ctl-streaming.cpp | 58 +++ > 1 file changed, 50 insertions(+), 8 deletions(-) > > d

Re: [v4l-utils PATCH 5/6] v4l2-ctl: Add support for source change event for m2m decoder

2019-01-21 Thread Hans Verkuil
On 01/20/2019 12:15 PM, Dafna Hirschfeld wrote: > Subscribe to source change event. > The capture setup sequence is executed only due to a > change event. > > Signed-off-by: Dafna Hirschfeld > --- > utils/v4l2-ctl/v4l2-ctl-streaming.cpp | 90 ++- > 1 file changed, 76 inse

Re: [v4l-utils PATCH 3/6] v4l2-ctl: test the excpetion fds first in streaming_set_m2m

2019-01-21 Thread Hans Verkuil
On 01/20/2019 12:15 PM, Dafna Hirschfeld wrote: > test the excpetion fds first in the select loop excpetion -> exception > in streaming_set_m2m. This is needed in the next patch > in order to dequeue a source change event before its > coresponding last buffer. coresponding -> corresponding But

Re: [v4l-utils PATCH 2/6] v4l2-ctl: Add function get_codec_type

2019-01-21 Thread Hans Verkuil
On 01/20/2019 12:15 PM, Dafna Hirschfeld wrote: > Add function get_codec_type that returns the type > of codec NOT_CODEC/ENCODER/DEOCDER. > Move the functions get_cap_compose/crop_rect > to the start of the file. > > Signed-off-by: Dafna Hirschfeld > --- > utils/v4l2-ctl/v4l2-ctl-streaming.cpp |

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

2019-01-21 Thread Laurent Pinchart
Hello Raj, On Mon, Jan 21, 2019 at 02:41:03PM +0900, Tomasz Figa wrote: > On Wed, Jan 16, 2019 at 11:16 AM Mani, Rajmohan > wrote: > >> Subject: Re: [PATCH v7 00/16] Intel IPU3 ImgU patchset > >> On Saturday, 12 January 2019 04:30:49 EET Mani, Rajmohan wrote: > >> > >> [snip] > >> > >>> I fin