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

2018-11-16 Thread Souptick Joarder
On Fri, Nov 16, 2018 at 11:59 PM Mike Rapoport wrote: > > On Thu, Nov 15, 2018 at 09:15:30PM +0530, 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. > > > > A

cron job: media_tree daily build: WARNINGS

2018-11-16 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 Nov 17 05:00:11 CET 2018 media-tree git hash:fbe57dde7126d1b2712ab5ea93fb9d15f89de708 media_build git

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

2018-11-16 Thread Nicolas Dufresne
Le jeudi 15 novembre 2018 à 15:34 +0100, Hans Verkuil a écrit : > On 10/22/2018 04:48 PM, Tomasz Figa wrote: > > Due to complexity of the video decoding process, the V4L2 drivers of > > stateful decoder hardware require specific sequences of V4L2 API calls > > to be followed. These include capabili

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

2018-11-16 Thread Nicolas Dufresne
Le lundi 12 novembre 2018 à 14:23 +0100, Hans Verkuil a écrit : > On 10/22/2018 04:49 PM, Tomasz Figa wrote: > > Due to complexity of the video encoding process, the V4L2 drivers of > > stateful encoder hardware require specific sequences of V4L2 API calls > > to be followed. These include capabili

[PATCH] media: videobuf2-core: fix use after free in vb2_mmap

2018-11-16 Thread Sudip Mukherjee
When we are using __find_plane_by_offset() to find the matching plane number and the buffer, the queue is not locked. So, after we have calculated the buffer number and assigned the pointer to vb, it can get freed. And if that happens then we get a use-after-free when we try to use this for the mma

kernel BUG at arch/x86/mm/physaddr.c:LINE! (2)

2018-11-16 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:5929a1f0ff30 Merge tag 'riscv-for-linus-4.20-rc2' of git:/.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=137766a340 kernel config: https://syzkaller.appspot.com/x/.config?x=4a0a89f12ca9b0f5 da

Re: [Ksummit-discuss] [RFC PATCH 2/3] MAINTAINERS, Handbook: Subsystem Profile

2018-11-16 Thread Randy Dunlap
On 11/15/18 7:44 AM, Mauro Carvalho Chehab wrote: > > Anyway, RFC patch follows. > > - > > [PATCH] [RFC] Add a system profile description for media subsystem > > This RFC aligns with current Dan's proposal for having subsystem > specific ruleset stored at the Kernel tree. > > On this initial R

RE: [PATCH v7 03/16] v4l: Add Intel IPU3 meta data uAPI

2018-11-16 Thread Zhi, Yong
Hi, Sakari, Thanks for the thorough review. > -Original Message- > From: Sakari Ailus [mailto:sakari.ai...@linux.intel.com] > Sent: Friday, November 2, 2018 8:03 AM > To: Zhi, Yong > Cc: linux-media@vger.kernel.org; tf...@chromium.org; > mche...@kernel.org; hans.verk...@cisco.com; > laur

possible deadlock in v4l2_release

2018-11-16 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:5929a1f0ff30 Merge tag 'riscv-for-linus-4.20-rc2' of git:/.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=1443d26d40 kernel config: https://syzkaller.appspot.com/x/.config?x=4a0a89f12ca9b0f5 da

Re: TechnoTrend CT2-4500 remote not working

2018-11-16 Thread martin.kono...@mknetz.de
Sean, Am 16.11.2018 um 12:26 schrieb Sean Young: Ok, thank you. Now, we don't know how the IR is wired up. Please could you try enabling the enable_885_ir module parameter for cx23885. If this goes badly, then we might end up in an infinite loop of unending interrupts, so it would be prudent to

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

2018-11-16 Thread Mike Rapoport
On Thu, Nov 15, 2018 at 09:15:30PM +0530, 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 gener

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

2018-11-16 Thread Randy Dunlap
On 11/16/18 12:15 AM, Souptick Joarder wrote: > On Fri, Nov 16, 2018 at 12:11 PM Matthew Wilcox wrote: >> >> On Fri, Nov 16, 2018 at 11:00:30AM +0530, Souptick Joarder wrote: >>> On Thu, Nov 15, 2018 at 11:44 PM Randy Dunlap wrote: On 11/15/18 7:45 AM, Souptick Joarder wrote: What is th

Re: [PATCH 08/15] ARM/arm64: sunxi: Move H3/H5 syscon label over to soc-specific nodes

2018-11-16 Thread Maxime Ripard
Hi, On Fri, Nov 16, 2018 at 05:47:50PM +0800, Chen-Yu Tsai wrote: > On Fri, Nov 16, 2018 at 5:39 PM Maxime Ripard > wrote: > > > > On Thu, Nov 15, 2018 at 03:50:06PM +0100, Paul Kocialkowski wrote: > > > Now that we have specific nodes for the H3 and H5 system-controller > > > that allow proper

I AWAIT YOUR SWIFT RESPONSE !!!

2018-11-16 Thread Raymond Chien Hang Seng
I am Vice Chairman of Hang Seng Bank, I have Important Matter to Discuss with you concerning my late client. Died without a NEXT OF KIN. Send me your private email for full details information. email me at E-Mail: draymondchie...@gmail.com Regards Mr.Fung

Re: Logitech QuickCam USB detected by Linux, but not user space applications

2018-11-16 Thread Paul Menzel
Dear Mauro, Thank you very much for the quick reply. On 11/15/18 12:38, Mauro Carvalho Chehab wrote: > Em Thu, 15 Nov 2018 11:42:32 +0100 Paul Menzel escreveu: >> I tried to get a Logitech QuickCam USB camera working, but unfortunately, it >> is >> not detected by user space (Cheese, MPlayer

Re: [PATCH v3] media: vivid: Improve timestamping

2018-11-16 Thread Hans Verkuil
On 11/11/2018 11:39 PM, Gabriel Francisco Mandaji wrote: > Simulate a more precise timestamp by calculating it based on the > current framerate. > > Signed-off-by: Gabriel Francisco Mandaji Something is still wrong: the frame period calculation is fine for input 0 (webcam), but if I switch to an

I AWAIT YOUR SWIFT RESPONSE !!!

2018-11-16 Thread Raymond Chien Hang Seng
I am Vice Chairman of Hang Seng Bank, I have Important Matter to Discuss with you concerning my late client. Died without a NEXT OF KIN. Send me your private email for full details information. email me at E-Mail: draymondchie...@gmail.com Regards Mr.Fung

Re: [PATCH v2 3/6] media: mt9m111: add support to select formats and fps for {Q,SXGA}

2018-11-16 Thread Sakari Ailus
Hi Hans, On Fri, Nov 16, 2018 at 02:31:01PM +0100, Hans Verkuil wrote: > On 11/16/2018 02:26 PM, Sakari Ailus wrote: > > Hi Marco, Michael, > > > > On Mon, Oct 29, 2018 at 07:24:07PM +0100, Marco Felsch wrote: > >> From: Michael Grzeschik > >> > >> This patch implements the framerate selection u

Re: [PATCH v2 4/6] media: mt9m111: allow to setup pixclk polarity

2018-11-16 Thread Sakari Ailus
Hi Marco, Enrico, On Mon, Oct 29, 2018 at 07:24:08PM +0100, Marco Felsch wrote: > From: Enrico Scholz > > The chip can be configured to output data transitions on the > rising or falling edge of PIXCLK (Datasheet R58:1[9]), default is on the > falling edge. > > Parsing the fw-node is made in a

Re: [PATCH v2 3/6] media: mt9m111: add support to select formats and fps for {Q,SXGA}

2018-11-16 Thread Hans Verkuil
On 11/16/2018 02:26 PM, Sakari Ailus wrote: > Hi Marco, Michael, > > On Mon, Oct 29, 2018 at 07:24:07PM +0100, Marco Felsch wrote: >> From: Michael Grzeschik >> >> This patch implements the framerate selection using the skipping and >> readout power-modi features. The power-modi cut the framerate

Re: [PATCH v2 3/6] media: mt9m111: add support to select formats and fps for {Q,SXGA}

2018-11-16 Thread Sakari Ailus
Hi Marco, Michael, On Mon, Oct 29, 2018 at 07:24:07PM +0100, Marco Felsch wrote: > From: Michael Grzeschik > > This patch implements the framerate selection using the skipping and > readout power-modi features. The power-modi cut the framerate by half > and each context has an independent select

Re: [PATCH 4/4] media: ov5640: Add additional media bus formats

2018-11-16 Thread Sakari Ailus
Hi Sam, On Mon, Oct 08, 2018 at 11:48:02PM -0700, Sam Bobrowicz wrote: > Add support for 1X16 yuv media bus formats (v4l2_mbus_framefmt). > These formats are equivalent to the 2X8 formats that are already > supported, both of which accurately describe the data present on > the CSI2 interface. This

Re: [PATCHv2 0/9] vb2/cedrus: add tag support

2018-11-16 Thread Hans Verkuil
On 11/16/2018 10:00 AM, Tomasz Figa wrote: > Hi Hans, > > On Wed, Nov 14, 2018 at 10:47 PM Hans Verkuil wrote: >> >> From: Hans Verkuil >> >> As was discussed here (among other places): >> >> https://lkml.org/lkml/2018/10/19/440 >> >> using capture queue buffer indices to refer to reference fram

Re: [PATCH v5 0/2] media: platform: Add Aspeed Video Engine Driver

2018-11-16 Thread Hans Verkuil
On 11/15/2018 10:20 AM, Hans Verkuil wrote: > On 11/12/2018 10:00 PM, Eddie James wrote: >> From: Eddie James >> >> The Video Engine (VE) embedded in the Aspeed AST2400 and AST2500 SOCs >> can capture and compress video data from digital or analog sources. With >> the Aspeed chip acting as a servi

Re: [PATCH] media: cedrus: Remove global IRQ spin lock from the driver

2018-11-16 Thread Maxime Ripard
On Thu, Nov 15, 2018 at 03:39:55PM +0100, Paul Kocialkowski wrote: > We initially introduced a spin lock to ensure that the VPU registers > are not accessed concurrently between our setup function and IRQ > handler. Because the V4L2 M2M API only allows one job to run at a time > and our jobs are co

Re: [PATCH 01/15] ARM: dts: sun8i-a33: Remove heading 0 in video-codec unit address

2018-11-16 Thread Paul Kocialkowski
Hi, Le jeudi 15 novembre 2018 à 23:50 +0800, Chen-Yu Tsai a écrit : > On Thu, Nov 15, 2018 at 10:50 PM Paul Kocialkowski > wrote: > > This cosmetic change removes the heading 0 in the video-codec unit > > address, as it's done for other nodes. > > > > Signed-off-by: Paul Kocialkowski > > Nit:

Re: [PATCH 08/15] ARM/arm64: sunxi: Move H3/H5 syscon label over to soc-specific nodes

2018-11-16 Thread Paul Kocialkowski
Hi, Le vendredi 16 novembre 2018 à 17:47 +0800, Chen-Yu Tsai a écrit : > On Fri, Nov 16, 2018 at 5:39 PM Maxime Ripard > wrote: > > On Thu, Nov 15, 2018 at 03:50:06PM +0100, Paul Kocialkowski wrote: > > > Now that we have specific nodes for the H3 and H5 system-controller > > > that allow proper

Re: [PATCH 2/2] vb2: don't allow queueing buffers when canceling queue

2018-11-16 Thread Hans Verkuil
On 11/16/2018 09:45 AM, Tomasz Figa wrote: > On Fri, Nov 16, 2018 at 5:42 PM Hans Verkuil wrote: >> >> On 11/16/2018 09:34 AM, Tomasz Figa wrote: >>> Hi Hans, >>> >>> On Wed, Nov 14, 2018 at 12:08 AM Hans Verkuil wrote: Calling the stop_streaming op can release the core serialization lo

Re: [PATCH 08/15] ARM/arm64: sunxi: Move H3/H5 syscon label over to soc-specific nodes

2018-11-16 Thread Chen-Yu Tsai
On Fri, Nov 16, 2018 at 5:39 PM Maxime Ripard wrote: > > On Thu, Nov 15, 2018 at 03:50:06PM +0100, Paul Kocialkowski wrote: > > Now that we have specific nodes for the H3 and H5 system-controller > > that allow proper access to the EMAC clock configuration register, > > we no longer need a common

[PATCH v4l-utils] keytable: match every entry in rc_maps.cfg, not just the first

2018-11-16 Thread Sean Young
Signed-off-by: Sean Young --- utils/keytable/keytable.c | 71 --- 1 file changed, 36 insertions(+), 35 deletions(-) diff --git a/utils/keytable/keytable.c b/utils/keytable/keytable.c index e15440de..df9cfc49 100644 --- a/utils/keytable/keytable.c +++ b/utils/k

Re: [PATCH 1/2] vb2: add waiting_in_dqbuf flag

2018-11-16 Thread Hans Verkuil
On 11/16/2018 09:43 AM, Tomasz Figa wrote: > Hi Hans, > > On Wed, Nov 14, 2018 at 12:08 AM Hans Verkuil wrote: >> >> Calling VIDIOC_DQBUF can release the core serialization lock pointed to >> by vb2_queue->lock if it has to wait for a new buffer to arrive. >> >> However, if userspace dup()ped the

Re: [PATCH 15/15] arm64: dts: allwinner: a64: Add Video Engine and reserved memory node

2018-11-16 Thread Maxime Ripard
On Thu, Nov 15, 2018 at 03:50:13PM +0100, Paul Kocialkowski wrote: > This adds nodes for the Video Engine and the associated reserved memory > for the A64. Up to 96 MiB of memory are dedicated to the CMA pool. > > The pool is located at the end of the first 256 MiB of RAM so that the > VPU can acc

Re: [PATCH 08/15] ARM/arm64: sunxi: Move H3/H5 syscon label over to soc-specific nodes

2018-11-16 Thread Maxime Ripard
On Thu, Nov 15, 2018 at 03:50:06PM +0100, Paul Kocialkowski wrote: > Now that we have specific nodes for the H3 and H5 system-controller > that allow proper access to the EMAC clock configuration register, > we no longer need a common dummy syscon node. > > Switch the syscon label over to each pla

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

2018-11-16 Thread Maxime Ripard
Hi! On Mon, Nov 12, 2018 at 03:21:56PM +0530, Kishon Vijay Abraham I wrote: > > +static int cdns_dphy_validate(struct phy *phy, enum phy_mode mode, > > + union phy_configure_opts *opts) > > +{ > > + struct cdns_dphy_cfg cfg = { 0 }; > > + > > + if (mode != PHY_MODE_MIPI

Re: [PATCHv2 0/9] vb2/cedrus: add tag support

2018-11-16 Thread Tomasz Figa
Hi Hans, On Wed, Nov 14, 2018 at 10:47 PM Hans Verkuil wrote: > > From: Hans Verkuil > > As was discussed here (among other places): > > https://lkml.org/lkml/2018/10/19/440 > > using capture queue buffer indices to refer to reference frames is > not a good idea. A better idea is to use a 'tag'

Re: [PATCH 2/2] vb2: don't allow queueing buffers when canceling queue

2018-11-16 Thread Tomasz Figa
On Fri, Nov 16, 2018 at 5:42 PM Hans Verkuil wrote: > > On 11/16/2018 09:34 AM, Tomasz Figa wrote: > > Hi Hans, > > > > On Wed, Nov 14, 2018 at 12:08 AM Hans Verkuil wrote: > >> > >> Calling the stop_streaming op can release the core serialization lock > >> pointed to by vb2_queue->lock if it has

Re: [PATCH 1/2] vb2: add waiting_in_dqbuf flag

2018-11-16 Thread Tomasz Figa
Hi Hans, On Wed, Nov 14, 2018 at 12:08 AM Hans Verkuil wrote: > > Calling VIDIOC_DQBUF can release the core serialization lock pointed to > by vb2_queue->lock if it has to wait for a new buffer to arrive. > > However, if userspace dup()ped the video device filehandle, then it is > possible to rea

Re: [PATCH 2/2] vb2: don't allow queueing buffers when canceling queue

2018-11-16 Thread Hans Verkuil
On 11/16/2018 09:34 AM, Tomasz Figa wrote: > Hi Hans, > > On Wed, Nov 14, 2018 at 12:08 AM Hans Verkuil wrote: >> >> Calling the stop_streaming op can release the core serialization lock >> pointed to by vb2_queue->lock if it has to wait for buffers to finish. >> An example of that behavior is th

Re: [PATCH 2/2] vb2: don't allow queueing buffers when canceling queue

2018-11-16 Thread Tomasz Figa
Hi Hans, On Wed, Nov 14, 2018 at 12:08 AM Hans Verkuil wrote: > > Calling the stop_streaming op can release the core serialization lock > pointed to by vb2_queue->lock if it has to wait for buffers to finish. > An example of that behavior is the vivid driver. Why would vb2_queue->lock have to be

Re: media: ov8856: Add support for OV8856 sensor

2018-11-16 Thread Sakari Ailus
Hi Ben, On Thu, Nov 08, 2018 at 11:41:46AM +0800, Ben Kao wrote: > This patch adds driver for Omnivision's ov8856 sensor, > the driver supports following features: > > - manual exposure/gain(analog and digital) control support > - two link frequencies > - VBLANK/HBLANK support > - test pattern su

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

2018-11-16 Thread Souptick Joarder
On Fri, Nov 16, 2018 at 12:11 PM Matthew Wilcox wrote: > > On Fri, Nov 16, 2018 at 11:00:30AM +0530, Souptick Joarder wrote: > > On Thu, Nov 15, 2018 at 11:44 PM Randy Dunlap wrote: > > > On 11/15/18 7:45 AM, Souptick Joarder wrote: > > > What is the opposite of vm_insert_range() or even of vm_in