Re: [RFT PATCH v3 6/6] uvcvideo: Move decode processing to process context

2018-01-12 Thread Kieran Bingham
Hi Guennadi, Thanks for your review and time on this. I certainly appreciate the extra eyes here! On 12/01/18 09:37, Guennadi Liakhovetski wrote: > Hi Kieran, > > On Fri, 12 Jan 2018, Kieran Bingham wrote: > >> Newer high definition cameras, and cameras with multiple lenses such as >> the range

cron job: media_tree daily build: ERRORS

2018-01-12 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: Sat Jan 13 05:00:17 CET 2018 media-tree git hash:e3ee691dbf24096ea51b3200946b11d68ce75361 media_build git

[PATCH RESEND] media: video-i2c: add video-i2c driver

2018-01-12 Thread Matt Ranostay
There are several thermal sensors that only have a low-speed bus interface but output valid video data. This patchset enables support for the AMG88xx "Grid-Eye" sensor family. Cc: Luca Barbato Cc: Laurent Pinchart Signed-off-by: Matt Ranostay --- drivers/media/i2c/Kconfig | 9 + drivers/

Re: [PATCH v2 00/19] prevent bounds-check bypass via speculative execution

2018-01-12 Thread Tony Luck
On Thu, Jan 11, 2018 at 5:19 PM, Linus Torvalds wrote: > Should the array access in entry_SYSCALL_64_fastpath be made to use > the masking approach? That one has a bounds check for an inline constant. cmpq$__NR_syscall_max, %rax so should be safe. The classic Spectre variant #1 code s

media: tc358743: clk_disable_unprepare(refclk) missed

2018-01-12 Thread Alexey Khoroshilov
Hello, tc358743_probe_of() enables refclk and disables it on its error paths. But there is no clk_disable_unprepare(refclk) in tc358743_remove() and on error paths in tc358743_probe(). Is it a problem? If we should fix it, is adding struct clk *refclk; to tc358743_state the reasonable way to keep

Re: dvb usb issues since kernel 4.9

2018-01-12 Thread Eric Dumazet
On Fri, 2018-01-12 at 19:13 -0200, Mauro Carvalho Chehab wrote: > > > The .config file used to build the Kernel is at: > https://pastebin.com/wpZghann > Hi Mauro Any chance you can try CONFIG_HZ_1000=y, CONFIG_HZ=1000 ? Thanks.

Re: dvb usb issues since kernel 4.9

2018-01-12 Thread Mauro Carvalho Chehab
Em Tue, 9 Jan 2018 09:48:47 -0800 Linus Torvalds escreveu: > On Tue, Jan 9, 2018 at 9:27 AM, Eric Dumazet wrote: > > > > So yes, commit 4cd13c21b207 ("softirq: Let ksoftirqd do its job") has > > shown up multiple times in various 'regressions' > > simply because it could surface the problem more

Re: [PATCH 1/7] cx231xx: Add second frontend option

2018-01-12 Thread Alex Deucher
On Fri, Jan 12, 2018 at 11:19 AM, Brad Love wrote: > Include ability to add a second dvb attach style frontend to cx231xx > USB bridge. All current boards set to use frontend[0]. Changes are > backwards compatible with current behaviour. > > Signed-off-by: Brad Love > --- > drivers/media/usb/cx2

Re: Fwd: Re: [PATCHv5 0/3] drm/i915: add DisplayPort CEC-Tunneling-over-AUX support

2018-01-12 Thread Hans Verkuil
On 01/12/2018 07:12 PM, Hans Verkuil wrote: > On 01/12/2018 06:52 PM, Ville Syrjälä wrote: >> On Fri, Jan 12, 2018 at 06:14:53PM +0100, Hans Verkuil wrote: >>> On 01/12/2018 05:30 PM, Ville Syrjälä wrote: On Fri, Jan 12, 2018 at 05:19:44PM +0100, Hans Verkuil wrote: > Hi Ville, > >

Re: iMX6q/coda encoder failures with ffmpeg/gstreamer m2m encoders

2018-01-12 Thread Nicolas Dufresne
Le mardi 19 décembre 2017 à 13:38 +0100, Neil Armstrong a écrit : > > > > The coda driver does not allow S_FMT anymore, as soon as the > > buffers are > > allocated with REQBUFS: > > > > https://bugzilla.gnome.org/show_bug.cgi?id=791338 > > > > regards > > Philipp > > > > Thanks Philipp, > >

Re: Fwd: Re: [PATCHv5 0/3] drm/i915: add DisplayPort CEC-Tunneling-over-AUX support

2018-01-12 Thread Hans Verkuil
On 01/12/2018 06:52 PM, Ville Syrjälä wrote: > On Fri, Jan 12, 2018 at 06:14:53PM +0100, Hans Verkuil wrote: >> On 01/12/2018 05:30 PM, Ville Syrjälä wrote: >>> On Fri, Jan 12, 2018 at 05:19:44PM +0100, Hans Verkuil wrote: Hi Ville, For some strange reason your email disappeared from

RE: [PATCH 1/2] media: intel-ipu3: cio2: fix a crash with out-of-bounds access

2018-01-12 Thread Mani, Rajmohan
Hi Yong, > -Original Message- > From: Zhi, Yong > Sent: Wednesday, January 03, 2018 6:57 PM > To: linux-media@vger.kernel.org; sakari.ai...@linux.intel.com > Cc: tf...@chromium.org; Mani, Rajmohan ; Zhi, > Yong ; Cao, Bingbu > Subject: [PATCH 1/2] media: intel-ipu3: cio2: fix a crash with

[PATCH v3 1/2] media: dt-bindings: Add OF properties to ov7670

2018-01-12 Thread Jacopo Mondi
Describe newly introduced OF properties for ov7670 image sensor. The driver supports two standard properties to configure synchronism signals polarities and one custom property already supported as platform data options by the driver to suppress pixel clock during horizontal blanking. Re-phrase ch

[PATCH v3 0/2] media: ov7670: Implement mbus configuration

2018-01-12 Thread Jacopo Mondi
Hello, round 3 for this series. I have now removed 'pll-bypass' property as suggested by Sakari, and restructured bindings description to list hsync and vsync properties as required. Changelog reported below. Thanks j v2->v3: - Drop 'pll-bypass' property - Make 'plck-hb-disable' a boolean

[PATCH v3 2/2] v4l2: i2c: ov7670: Implement OF mbus configuration

2018-01-12 Thread Jacopo Mondi
ov7670 driver supports two optional properties supplied through platform data, but currently does not support any standard video interface property. Add support through OF parsing for 2 generic properties (vsync and hsync polarities) and for one custom property already supported through platform d

Re: Fwd: Re: [PATCHv5 0/3] drm/i915: add DisplayPort CEC-Tunneling-over-AUX support

2018-01-12 Thread Ville Syrjälä
On Fri, Jan 12, 2018 at 06:14:53PM +0100, Hans Verkuil wrote: > On 01/12/2018 05:30 PM, Ville Syrjälä wrote: > > On Fri, Jan 12, 2018 at 05:19:44PM +0100, Hans Verkuil wrote: > >> Hi Ville, > >> > >> For some strange reason your email disappeared from the Cc list. Perhaps > >> it's the > >> ä that

Re: Fwd: Re: [PATCHv5 0/3] drm/i915: add DisplayPort CEC-Tunneling-over-AUX support

2018-01-12 Thread Hans Verkuil
On 01/12/2018 05:30 PM, Ville Syrjälä wrote: > On Fri, Jan 12, 2018 at 05:19:44PM +0100, Hans Verkuil wrote: >> Hi Ville, >> >> For some strange reason your email disappeared from the Cc list. Perhaps >> it's the >> ä that confuses something somewhere. >> >> So I'll just forward this directly to y

Re: [PATCH 1/2] MAINTAINERS: linux-media: update Microchip ISI and ISC entries

2018-01-12 Thread Nicolas Ferre
On 09/01/2018 at 14:46, Nicolas Ferre wrote: > These two image capture interface drivers are now handled > by Wenyou Yang. > I benefit from this change to update the two entries by correcting the > binding documentation link for ISC and moving the ISI to the new > MICROCHIP / ATMEL location. > > S

Re: Fwd: Re: [PATCHv5 0/3] drm/i915: add DisplayPort CEC-Tunneling-over-AUX support

2018-01-12 Thread Ville Syrjälä
On Fri, Jan 12, 2018 at 05:19:44PM +0100, Hans Verkuil wrote: > Hi Ville, > > For some strange reason your email disappeared from the Cc list. Perhaps it's > the > ä that confuses something somewhere. > > So I'll just forward this directly to you. > > Can you please take a look? This patch seri

[PATCH 3/7] si2157: Add hybrid tuner support

2018-01-12 Thread Brad Love
Add ability to share a tuner amongst demodulators. Addtional demods are attached using hybrid_tuner_instance_list. The changes are equivalent to moving all of probe to _attach. Results are backwards compatible with current usage. If the tuner is acquired via attach, then .release cleans state. if

[PATCH 7/7] cx231xx: Add second i2c demod to Hauppauge 975

2018-01-12 Thread Brad Love
Hauppauge HVR-975 is a dual frontend, single tuner USB device. It contains lgdt3306a and si2168 frontends and one si2157 tuner. The lgdt3306a frontend is currently enabled. This creates the second demodulator and attaches it to the tuner. Enables lgdt3306a|si2168 + si2157 Signed-off-by: Brad Love

[PATCH 4/7] si2168: Add ts bus coontrol, turn off bus on sleep

2018-01-12 Thread Brad Love
Includes a function to set TS MODE property os si2168. The function either disables the TS output bus, or sets mode to config option. When going to sleep the TS bus is turned off, this makes the driver compatible with multiple frontend usage. Signed-off-by: Brad Love --- drivers/media/dvb-front

[PATCH 6/7] si2168: Announce frontend creation failure

2018-01-12 Thread Brad Love
The driver outputs on success, but is silent on failure. Give one message that probe failed. Signed-off-by: Brad Love --- drivers/media/dvb-frontends/si2168.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/dvb-frontends/si2168.c b/drivers/media/dvb-frontends/s

[PATCH 0/7] cx231xx: Add multiple frontend USB device

2018-01-12 Thread Brad Love
This patch set requires: https://patchwork.linuxtv.org/patch/46396/ https://patchwork.linuxtv.org/patch/46397/ The Hauppauge HVR-975 is a dual frontend, single tuner USB device. The 975 has lgdt3306a (currently enabled) and si2168 demodulators, and one si2157 tuner. It provides analog capture via

[PATCH 2/7] cx231xx: Add second i2c demod client

2018-01-12 Thread Brad Love
Include ability to add a i2c device style frontend to cx231xx USB bridge. All current boards set to use frontend[0]. Changes are backwards compatible with current behaviour. Signed-off-by: Brad Love --- drivers/media/usb/cx231xx/cx231xx-dvb.c | 45 ++--- drivers/media

[PATCH 1/7] cx231xx: Add second frontend option

2018-01-12 Thread Brad Love
Include ability to add a second dvb attach style frontend to cx231xx USB bridge. All current boards set to use frontend[0]. Changes are backwards compatible with current behaviour. Signed-off-by: Brad Love --- drivers/media/usb/cx231xx/cx231xx-dvb.c | 173 ++-- 1 file

[PATCH 5/7] lgdt3306a: Announce successful creation

2018-01-12 Thread Brad Love
The driver is near silent, this adds a simple announcement at the end of probe after the chip has been detected and upgrades a debug message to error if probe has failed. Signed-off-by: Brad Love --- drivers/media/dvb-frontends/lgdt3306a.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)

[GIT PULL FOR v4.16] Various fixes

2018-01-12 Thread Hans Verkuil
Hi Mauro, Some fixes for 4.16. Note the cec-gpio.txt patch: that has a CC to stable for 4.15. It's probably too late to get that in for 4.15 itself, but it definitely should be backported to 4.15. Otherwise you can fry your Rpi if you aren't aware of the voltages involved. Regards, Hans

Re: MT9M131 on I.MX6DL CSI color issue

2018-01-12 Thread Nicolas Dufresne
Le vendredi 12 janvier 2018 à 10:58 +0100, Anatolij Gustschin a écrit : > On Fri, 12 Jan 2018 01:16:03 +0100 > Florian Boor florian.b...@kernelconcepts.de wrote: > ... > > Basically it works pretty well apart from the really strange > > colors. I guess its > > some YUV vs. RGB issue or similar. Her

Re: [PATCH v7 6/6] [media] v4l: Document explicit synchronization behavior

2018-01-12 Thread Hans Verkuil
On 01/10/18 17:07, Gustavo Padovan wrote: > From: Gustavo Padovan > > Add section to VIDIOC_QBUF about it > > v5: > - Remove V4L2_CAP_ORDERED > - Add doc about V4L2_FMT_FLAG_UNORDERED > > v4: > - Document ordering behavior for in-fences > - Document V4L2_CAP_ORDERED capa

Re: [PATCH v5 0/9] Renesas Capture Engine Unit (CEU) V4L2 driver

2018-01-12 Thread Laurent Pinchart
Hi Jacopo, On Friday, 12 January 2018 16:04:00 EET Jacopo Mondi wrote: > Hello, >(hopefully) last round for CEU driver. > > Changelog is quite thin, I have updated CEU driver MODULE_LICENSE to match > SPDX identifier, added Rob's and Laurent's Reviewed-by tags to bindings, and > made variable

Re: [PATCH v2 2/2] media: ov9650: add device tree binding

2018-01-12 Thread Sylwester Nawrocki
On 01/08/2018 10:35 AM, Sakari Ailus wrote: > I was going to say you're missing the MAINTAINERS entry for this newly > added file but then I noticed that the entire driver is missing an entry. > Still this file should have a MAINTAINERS entry added for it independently > of that, in the same patc

Re: [PATCH v2 1/2] media: ov9650: support device tree probing

2018-01-12 Thread Sylwester Nawrocki
On 01/07/2018 05:54 PM, Akinobu Mita wrote: > The ov9650 driver currently only supports legacy platform data probe. > This change adds device tree probing. > Signed-off-by: Akinobu Mita > --- > drivers/media/i2c/ov9650.c | 130 > - > 1 file changed,

Re: [PATCH v2] MAINTAINERS: mtd/nand: update Microchip nand entry

2018-01-12 Thread Boris Brezillon
On Thu, 11 Jan 2018 17:26:59 +0100 Nicolas Ferre wrote: > Update Wenyou Yang email address. > Take advantage of this update to move this entry to the MICROCHIP / ATMEL > location and add the DT binding documentation link. > > Signed-off-by: Nicolas Ferre > Acked-by: Wenyou Yang Applied. Than

[PATCH v5 0/9] Renesas Capture Engine Unit (CEU) V4L2 driver

2018-01-12 Thread Jacopo Mondi
Hello, (hopefully) last round for CEU driver. Changelog is quite thin, I have updated CEU driver MODULE_LICENSE to match SPDX identifier, added Rob's and Laurent's Reviewed-by tags to bindings, and made variables of "struct ceu_data" type static in the driver. All of the patches are now Review

[PATCH v5 1/9] dt-bindings: media: Add Renesas CEU bindings

2018-01-12 Thread Jacopo Mondi
Add bindings documentation for Renesas Capture Engine Unit (CEU). Signed-off-by: Jacopo Mondi Reviewed-by: Rob Herring Reviewed-by: Laurent Pinchart --- .../devicetree/bindings/media/renesas,ceu.txt | 81 ++ 1 file changed, 81 insertions(+) create mode 100644 Document

[PATCH v5 2/9] include: media: Add Renesas CEU driver interface

2018-01-12 Thread Jacopo Mondi
Add renesas-ceu header file. Do not remove the existing sh_mobile_ceu.h one as long as the original driver does not go away. Signed-off-by: Jacopo Mondi Reviewed-by: Laurent Pinchart --- include/media/drv-intf/renesas-ceu.h | 26 ++ 1 file changed, 26 insertions(+) cre

[PATCH v5 4/9] ARM: dts: r7s72100: Add Capture Engine Unit (CEU)

2018-01-12 Thread Jacopo Mondi
Add Capture Engine Unit (CEU) node to device tree. Signed-off-by: Jacopo Mondi Reviewed-by: Geert Uytterhoeven Reviewed-by: Laurent Pinchart --- arch/arm/boot/dts/r7s72100.dtsi | 15 --- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/arch/arm/boot/dts/r7s72100.dtsi

[PATCH v5 3/9] v4l: platform: Add Renesas CEU driver

2018-01-12 Thread Jacopo Mondi
Add driver for Renesas Capture Engine Unit (CEU). The CEU interface supports capturing 'data' (YUV422) and 'images' (NV[12|21|16|61]). This driver aims to replace the soc_camera-based sh_mobile_ceu one. Tested with ov7670 camera sensor, providing YUYV_2X8 data on Renesas RZ platform GR-Peach. T

[PATCH v5 6/9] media: i2c: ov772x: Remove soc_camera dependencies

2018-01-12 Thread Jacopo Mondi
Remove soc_camera framework dependencies from ov772x sensor driver. - Handle clock and gpios - Register async subdevice - Remove soc_camera specific g/s_mbus_config operations - Change image format colorspace from JPEG to SRGB as the two use the same colorspace information but JPEG makes assumpti

[PATCH v5 5/9] v4l: i2c: Copy ov772x soc_camera sensor driver

2018-01-12 Thread Jacopo Mondi
Copy the soc_camera based driver in v4l2 sensor driver directory. This commit just copies the original file without modifying it. No modification to KConfig and Makefile as soc_camera framework dependencies need to be removed first in next commit. Signed-off-by: Jacopo Mondi Acked-by: Laurent Pin

Re: [PATCH v7 5/6] [media] vb2: add out-fence support to QBUF

2018-01-12 Thread Hans Verkuil
On 01/10/18 17:07, Gustavo Padovan wrote: > From: Gustavo Padovan > > If V4L2_BUF_FLAG_OUT_FENCE flag is present on the QBUF call we create > an out_fence and send its fd to userspace on the fence_fd field as a > return arg for the QBUF call. > > The fence is signaled on buffer_done(), when the

[PATCH v5 7/9] v4l: i2c: Copy tw9910 soc_camera sensor driver

2018-01-12 Thread Jacopo Mondi
Copy the soc_camera based driver in v4l2 sensor driver directory. This commit just copies the original file without modifying it. No modification to KConfig and Makefile as soc_camera framework dependencies need to be removed first in next commit. Signed-off-by: Jacopo Mondi Acked-by: Laurent Pin

[PATCH v5 8/9] media: i2c: tw9910: Remove soc_camera dependencies

2018-01-12 Thread Jacopo Mondi
Remove soc_camera framework dependencies from tw9910 sensor driver. - Handle clock and gpios - Register async subdevice - Remove soc_camera specific g/s_mbus_config operations - Add kernel doc to driver interface header file - Adjust build system This commit does not remove the original soc_camera

[PATCH v5 9/9] arch: sh: migor: Use new renesas-ceu camera driver

2018-01-12 Thread Jacopo Mondi
Migo-R platform uses sh_mobile_ceu camera driver, which is now being replaced by a proper V4L2 camera driver named 'renesas-ceu'. Move Migo-R platform to use the v4l2 renesas-ceu camera driver interface and get rid of soc_camera defined components used to register sensor drivers and of platform sp

Re: [PATCH v7 4/6] [media] vb2: add in-fence support to QBUF

2018-01-12 Thread Hans Verkuil
On 01/10/18 17:07, Gustavo Padovan wrote: > From: Gustavo Padovan > > Receive in-fence from userspace and add support for waiting on them > before queueing the buffer to the driver. Buffers can't be queued to the > driver before its fences signal. And a buffer can't be queue to the driver > out o

Re: [PATCH v4 3/9] v4l: platform: Add Renesas CEU driver

2018-01-12 Thread jacopo mondi
Hi Philippe, Laurent, Geert, On Fri, Jan 12, 2018 at 11:36:31AM +0100, Philippe Ombredanne wrote: > On Tue, Jan 9, 2018 at 5:25 PM, Jacopo Mondi > wrote: > > Add driver for Renesas Capture Engine Unit (CEU). > > > > > --- /dev/null > > +++ b/drivers/media/platform/renesas-ceu.c > > @@ -0,0 +1,1

[PATCH] media: imx258: Add imx258 camera sensor driver

2018-01-12 Thread Andy Yeh
Add a V4L2 sub-device driver for the Sony IMX258 image sensor. This is a camera sensor using the I2C bus for control and the CSI-2 bus for data. Signed-off-by: Andy Yeh --- MAINTAINERS|7 + drivers/media/i2c/Kconfig | 11 + drivers/media/i2c/Makefile |1 + drivers/medi

RE: [PATCH] media: imx258: Add imx258 camera sensor driver

2018-01-12 Thread Yeh, Andy
Hi Sakari, > > + /* stream off */ > > + ret = imx258_write_reg(imx258, IMX258_REG_MODE_SELECT, > > + IMX258_REG_VALUE_08BIT, > > +IMX258_MODE_STANDBY); >> Yes, this is true. But the sensor is already in software standby mode here, >> isn't it

Re: [PATCH v7 3/6] [media] vb2: add explicit fence user API

2018-01-12 Thread Hans Verkuil
On 01/10/18 17:07, Gustavo Padovan wrote: > From: Gustavo Padovan > > Turn the reserved2 field into fence_fd that we will use to send > an in-fence to the kernel and return an out-fence from the kernel to > userspace. > > Two new flags were added, V4L2_BUF_FLAG_IN_FENCE, that should be used > wh

Re: [PATCH v7 3/6] [media] vb2: add explicit fence user API

2018-01-12 Thread Hans Verkuil
On 01/10/18 17:07, Gustavo Padovan wrote: > From: Gustavo Padovan > > Turn the reserved2 field into fence_fd that we will use to send > an in-fence to the kernel and return an out-fence from the kernel to s/and/or/ > userspace. > > Two new flags were added, V4L2_BUF_FLAG_IN_FENCE, that should

Re: [PATCH v7 2/6] [media] v4l: add 'unordered' flag to format description ioctl

2018-01-12 Thread Hans Verkuil
On 01/10/18 17:07, Gustavo Padovan wrote: > From: Gustavo Padovan > > For explicit synchronization it important for userspace to know if the > format being used by the driver can deliver the buffers back to userspace > in the same order they were queued with QBUF. > > Ordered streams fits nicely

Re: [PATCH v7 1/6] [media] vb2: add is_unordered callback for drivers

2018-01-12 Thread Hans Verkuil
On 01/10/18 17:07, Gustavo Padovan wrote: > From: Gustavo Padovan > > Explicit synchronization benefits a lot from ordered queues, they fit > better in a pipeline with DRM for example so create a opt-in way for > drivers notify videobuf2 that the queue is unordered. > > Drivers don't need implem

Re: [RFC PATCH 0/9] media: base request API support

2018-01-12 Thread Hans Verkuil
Hi Alexandre, On 12/15/17 08:56, Alexandre Courbot wrote: > Here is a new attempt at the request API, following the UAPI we agreed on in > Prague. Hopefully this can be used as the basis to move forward. > > This series only introduces the very basics of how requests work: allocate a > request, q

Re: [RFC PATCH 6/9] media: vb2: add support for requests in QBUF ioctl

2018-01-12 Thread Hans Verkuil
On 12/15/17 08:56, Alexandre Courbot wrote: > Support the request argument of the QBUF ioctl. > > Signed-off-by: Alexandre Courbot > --- > drivers/media/v4l2-core/v4l2-ioctl.c | 93 > +++- > 1 file changed, 92 insertions(+), 1 deletion(-) > > diff --git a/driver

Re: [RFC PATCH 5/9] media: vb2: add support for requests

2018-01-12 Thread Hans Verkuil
On 12/15/17 08:56, Alexandre Courbot wrote: > Add throttling support for buffers when requests are in use on a given > queue. Buffers associated to a request are kept into the vb2 queue until > the request becomes active, at which point all the buffers are passed to > the driver. The queue can also

Re: [PATCH v4 3/9] v4l: platform: Add Renesas CEU driver

2018-01-12 Thread Philippe Ombredanne
On Tue, Jan 9, 2018 at 5:25 PM, Jacopo Mondi wrote: > Add driver for Renesas Capture Engine Unit (CEU). > --- /dev/null > +++ b/drivers/media/platform/renesas-ceu.c > @@ -0,0 +1,1648 @@ > +// SPDX-License-Identifier: GPL-2.0 > +MODULE_DESCRIPTION("Renesas CEU camera driver"); > +MODULE_AUTHO

Re: [PATCH v4 3/9] v4l: platform: Add Renesas CEU driver

2018-01-12 Thread Laurent Pinchart
Hi Geert, On Friday, 12 January 2018 11:01:18 EET Geert Uytterhoeven wrote: > On Fri, Jan 12, 2018 at 12:12 AM, Laurent Pinchart wrote: > > On Tuesday, 9 January 2018 18:25:25 EET Jacopo Mondi wrote: > >> Add driver for Renesas Capture Engine Unit (CEU). > >> > >> The CEU interface supports captu

Re: [Linaro-mm-sig] [PATCH] dma-buf: add some lockdep asserts to the reservation object implementation

2018-01-12 Thread Lucas Stach
Am Donnerstag, den 11.01.2018, 11:54 +0100 schrieb Christian König: > Yeah, somehow missed that one. > > The patch looks mostly good, except for reservation_object_get_excl(). > > For that one an RCU protection is usually sufficient, so annotating it  > with reservation_object_assert_held() sound

Re: [Linaro-mm-sig] [PATCH] dma-buf: add some lockdep asserts to the reservation object implementation

2018-01-12 Thread Lucas Stach
Did this fall through the cracks over the holidays? It really has made my work much easier while reworking some of the reservation object handling in etnaviv and I think it might benefit others. Regards, Lucas Am Freitag, den 01.12.2017, 12:12 +0100 schrieb Lucas Stach: > This adds lockdep assert

Re: [RFC PATCH 4/9] videodev2.h: Add request field to v4l2_buffer

2018-01-12 Thread Hans Verkuil
On 12/15/17 08:56, Alexandre Courbot wrote: > From: Hans Verkuil > > When queuing buffers allow for passing the request ID that > should be associated with this buffer. > > Signed-off-by: Hans Verkuil > [acour...@chromium.org: make request ID 32-bit] > Signed-off-by: Alexandre Courbot > --- >

Re: [RFC PATCH 1/9] media: add request API core and UAPI

2018-01-12 Thread Hans Verkuil
Hi Alexandre, A quick review: I'm primarily concentrating on the uAPI as that is the most critical part to get right at this stage. On 12/15/17 08:56, Alexandre Courbot wrote: > The request API provides a way to group buffers and device parameters > into units of work to be queued and executed. T

Re: MT9M131 on I.MX6DL CSI color issue

2018-01-12 Thread Anatolij Gustschin
On Fri, 12 Jan 2018 10:58:40 +0100 Anatolij Gustschin ag...@denx.de wrote: ... > gst-launch v4l2src device=/dev/video4 num-buffers=1 ! \ >videoparse format=5 width=1280 height=1024 framerate=25/1 ! \ >jpegenc ! filesink location=capture1.jpeg I forgot the videoconvert, sorr

Re: [PATCH v2 00/19] prevent bounds-check bypass via speculative execution

2018-01-12 Thread Russell King - ARM Linux
Do you think that the appropriate patches could be copied to the appropriate people please? On Thu, Jan 11, 2018 at 04:46:24PM -0800, Dan Williams wrote: > Changes since v1 [1]: > * fixup the ifence definition to use alternative_2 per recent AMD > changes in tip/x86/pti (Tom) > > * drop 'nospec

Re: MT9M131 on I.MX6DL CSI color issue

2018-01-12 Thread Anatolij Gustschin
On Fri, 12 Jan 2018 01:16:03 +0100 Florian Boor florian.b...@kernelconcepts.de wrote: ... >Basically it works pretty well apart from the really strange colors. I guess >its >some YUV vs. RGB issue or similar. Here [1] is an example generated with the >following command. > >gst-launch v4l2src devic

[PATCH 2/3] drm/amdgpu: add amdgpu_pasid_free_delayed v2

2018-01-12 Thread Christian König
Free up a pasid after all fences signaled. v2: also handle the case when we can't allocate a fence array. Signed-off-by: Christian König --- drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c | 82 + drivers/gpu/drm/amd/amdgpu/amdgpu_ids.h | 2 + 2 files changed, 84 insert

[PATCH 1/3] dma-buf: make returning the exclusive fence optional

2018-01-12 Thread Christian König
Change reservation_object_get_fences_rcu to make the exclusive fence pointer optional. If not specified the exclusive fence is put into the fence array as well. This is helpful for a couple of cases where we need all fences in a single array. Signed-off-by: Christian König --- drivers/dma-buf/

[PATCH 3/3] drm/amdgpu: always allocate a PASIDs for each VM v2

2018-01-12 Thread Christian König
Start to always allocate a pasid for each VM. v2: use dev_warn when we run out of PASIDs Signed-off-by: Christian König --- drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c | 43 ++--- 1 file changed, 29 insertions(+), 14 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/

Re: [RFT PATCH v3 6/6] uvcvideo: Move decode processing to process context

2018-01-12 Thread Guennadi Liakhovetski
Hi Kieran, On Fri, 12 Jan 2018, Kieran Bingham wrote: > Newer high definition cameras, and cameras with multiple lenses such as > the range of stereo-vision cameras now available have ever increasing > data rates. > > The inclusion of a variable length packet header in URB packets mean > that we

[RFT PATCH v3 2/6] uvcvideo: Convert decode functions to use new context structure

2018-01-12 Thread Kieran Bingham
The URB completion handlers currently reference the stream context. Now that each URB has its own context structure, convert the decode (and one encode) functions to utilise this context for URB management. Signed-off-by: Kieran Bingham Reviewed-by: Laurent Pinchart --- v2: - fix checkpatch w

[RFT PATCH v3 3/6] uvcvideo: Protect queue internals with helper

2018-01-12 Thread Kieran Bingham
The URB completion operation obtains the current buffer by reading directly into the queue internal interface. Protect this queue abstraction by providing a helper uvc_queue_get_current_buffer() which can be used by both the decode task, and the uvc_queue_next_buffer() functions. Signed-off-by: K

[RFT PATCH v3 6/6] uvcvideo: Move decode processing to process context

2018-01-12 Thread Kieran Bingham
Newer high definition cameras, and cameras with multiple lenses such as the range of stereo-vision cameras now available have ever increasing data rates. The inclusion of a variable length packet header in URB packets mean that we must memcpy the frame data out to our destination 'manually'. This

[RFT PATCH v3 1/6] uvcvideo: Refactor URB descriptors

2018-01-12 Thread Kieran Bingham
We currently store three separate arrays for each URB reference we hold. Objectify the data needed to track URBs into a single uvc_urb structure, allowing better object management and tracking of the URB. All accesses to the data pointers through stream, are converted to use a uvc_urb pointer for

[RFT PATCH v3 4/6] uvcvideo: queue: Simplify spin-lock usage

2018-01-12 Thread Kieran Bingham
Both uvc_start_streaming(), and uvc_stop_streaming() are called from userspace context. As such, they do not need to save the IRQ state, and can use spin_lock_irq() and spin_unlock_irq() respectively. Signed-off-by: Kieran Bingham --- drivers/media/usb/uvc/uvc_queue.c | 10 -- 1 file cha

[RFT PATCH v3 5/6] uvcvideo: queue: Support asynchronous buffer handling

2018-01-12 Thread Kieran Bingham
The buffer queue interface currently operates sequentially, processing buffers after they have fully completed. In preparation for supporting parallel tasks operating on the buffers, we will need to support buffers being processed on multiple CPUs. Adapt the uvc_queue_next_buffer() such that a re

[RFT PATCH v3 0/6] Asynchronous UVC

2018-01-12 Thread Kieran Bingham
The Linux UVC driver has long provided adequate performance capabilities for web-cams and low data rate video devices in Linux while resolutions were low. Modern USB cameras are now capable of high data rates thanks to USB3 with 1080p, and even 4k capture resolutions supported. Cameras such as th

Re: [PATCH v3 00/27] kill devm_ioremap_nocache

2018-01-12 Thread Yisheng Xie
Hi Christophe , On 2018/1/4 16:05, Christophe LEROY wrote: > > > Le 25/12/2017 à 02:34, Yisheng Xie a écrit : >> >> >> On 2017/12/24 17:05, christophe leroy wrote: >>> >>> >>> Le 23/12/2017 à 14:48, Greg KH a écrit : On Sat, Dec 23, 2017 at 06:55:25PM +0800, Yisheng Xie wrote: > Hi all,

Re: [PATCH v5 0/5] Add OV5640 parallel interface and RGB565/YUYV support

2018-01-12 Thread Maxime Ripard
Hi, On Fri, Jan 12, 2018 at 10:18:39AM +0800, Yong wrote: > > On Thu, Jan 11, 2018 at 09:15:08AM +0800, Yong wrote: > > > > On Mon, Jan 08, 2018 at 05:13:39PM +, Hugues FRUCHET wrote: > > > > > I'm using a ST board with OV5640 wired in parallel bus output in > > > > > order > > > > > to inte

Re: [PATCH v4 3/9] v4l: platform: Add Renesas CEU driver

2018-01-12 Thread Geert Uytterhoeven
Hi Laurent, On Fri, Jan 12, 2018 at 12:12 AM, Laurent Pinchart wrote: > On Tuesday, 9 January 2018 18:25:25 EET Jacopo Mondi wrote: >> Add driver for Renesas Capture Engine Unit (CEU). >> >> The CEU interface supports capturing 'data' (YUV422) and 'images' >> (NV[12|21|16|61]). >> >> This driver

Re: [PATCH] media: imx258: Add imx258 camera sensor driver

2018-01-12 Thread Sakari Ailus
Hi Andy, On Fri, Jan 12, 2018 at 08:18:50AM +, Yeh, Andy wrote: > Thanks Sakari to remind. > Since I would like to attach some snips from the datasheets. But blocked, I > will re-edit to plain table and hope it could be understood. Please wrap the lines at 80 characters. > > Regards, Andy

Re: [linux-sunxi] Re: [PATCH v5 2/2] media: V3s: Add support for Allwinner CSI.

2018-01-12 Thread Maxime Ripard
On Fri, Jan 12, 2018 at 09:51:14AM +0800, Yong wrote: > Hi Maxime, > > On Thu, 11 Jan 2018 14:28:44 +0100 > Maxime Ripard wrote: > > > Hi Yong, > > > > On Thu, Jan 11, 2018 at 11:06:06AM +0800, Yong Deng wrote: > > > Allwinner V3s SoC features two CSI module. CSI0 is used for MIPI CSI-2 > > > i

RE: [PATCH] media: imx258: Add imx258 camera sensor driver

2018-01-12 Thread Yeh, Andy
Thanks Sakari to remind. Since I would like to attach some snips from the datasheets. But blocked, I will re-edit to plain table and hope it could be understood. Regards, Andy From: Yeh, Andy Sent: Friday, January 12, 2018 3:31 PM To: 'Sakari Ailus' Cc: 'linux-media@vger.kernel.org' ; AlanX Ch

Re: [PATCH 2/2] media: intel-ipu3: cio2: fix for wrong vb2buf state warnings

2018-01-12 Thread Tomasz Figa
On Thu, Jan 4, 2018 at 11:57 AM, Yong Zhi wrote: > cio2 driver should release buffer with QUEUED state > when start_stream op failed, wrong buffer state will > cause vb2 core throw a warning. > > Signed-off-by: Yong Zhi > Signed-off-by: Cao Bing Bu > --- > drivers/media/pci/intel/ipu3/ipu3-cio2

Re: [PATCH 1/2] media: intel-ipu3: cio2: fix a crash with out-of-bounds access

2018-01-12 Thread Tomasz Figa
On Thu, Jan 4, 2018 at 11:57 AM, Yong Zhi wrote: > When dmabuf is used for BLOB type frame, the frame > buffers allocated by gralloc will hold more pages > than the valid frame data due to height alignment. > > In this case, the page numbers in sg list could exceed the > FBPT upper limit value - m