[PATCH 2/9] async: Introduce kfence, a N:M completion mechanism

2016-06-24 Thread Chris Wilson
Completions are a simple synchronization mechanism, suitable for 1:M barriers where many waiters maybe waiting for a single event. In situations where a single waiter needs to wait for multiple events they could wait on a list of individual completions. If many waiters need the same set of

Re: [PATCH 1/3] uvcvideo: initialise the entity function field

2016-06-24 Thread Laurent Pinchart
Hi Guennadi, Thank you for the patch. On Friday 24 Jun 2016 13:28:55 Guennadi Liakhovetski wrote: > Since a recent commit: > > [media] media-device: move media entity register/unregister functions > > drivers have to set entity function before registering an entity. Fix > the uvcvideo driver

Re: [PATCH/RFC v2 4/4] v4l: vsp1: Add HGO support

2016-06-24 Thread Laurent Pinchart
Hi Guennadi, On Monday 13 Jun 2016 17:33:01 Guennadi Liakhovetski wrote: > On Thu, 12 May 2016, Laurent Pinchart wrote: > > The HGO is a Histogram Generator One-Dimension. It computes per-channel > > histograms over a configurable region of the image with optional > > subsampling. > > > >

Re: [PATCH 3/3] uvcvideo: add a metadata device node

2016-06-24 Thread kbuild test robot
Hi, [auto build test ERROR on linuxtv-media/master] [also build test ERROR on v4.7-rc4 next-20160624] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Guennadi-Liakhovetski/uvcvideo-a-cosmetic

Re: [PATCH v5 1/9] [media] v4l2-core: Add support for touch devices

2016-06-24 Thread Nick Dyer
On 22/06/2016 23:08, Nick Dyer wrote: > Some touch controllers send out touch data in a similar way to a > greyscale frame grabber. > > Use a new device prefix v4l-touch for these devices, to stop generic > capture software from treating them as webcams. > > Add formats: > -

[PATCH 3/3] uvcvideo: add a metadata device node

2016-06-24 Thread Guennadi Liakhovetski
Some UVC video cameras contain metadata in their payload headers. This patch extracts that data, skipping the standard part of the header, on both bulk and isochronous endpoints and makes it available to the user space on a separate video node, using the V4L2_CAP_META_CAPTURE capability and the

[PATCH 0/3] uvcvideo: a cosmetic fix and 2 new features

2016-06-24 Thread Guennadi Liakhovetski
Hi Laurent, The first patch in the series fixes a warning, introduced by a recent framework change. Maybe you already have a similar one in your queue, drop this one then, please. Patch 2/3 implements support for asynchronous controls, using V4L2 events. Patch 3/3 adds a metadata device node

Re: [PATCH 3/3] uvcvideo: add a metadata device node

2016-06-24 Thread kbuild test robot
Hi, [auto build test ERROR on linuxtv-media/master] [also build test ERROR on v4.7-rc4 next-20160624] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Guennadi-Liakhovetski/uvcvideo-a-cosmetic

[PATCH 1/3] uvcvideo: initialise the entity function field

2016-06-24 Thread Guennadi Liakhovetski
Since a recent commit: [media] media-device: move media entity register/unregister functions drivers have to set entity function before registering an entity. Fix the uvcvideo driver to comply with this. Signed-off-by: Guennadi Liakhovetski ---

[PATCH 2/3] uvcvideo: send a control event when a Control Change interrupt arrives

2016-06-24 Thread Guennadi Liakhovetski
UVC defines a method of handling asynchronous controls, which sends a USB packet over the interrupt pipe. This patch implements support for such packets by sending a control event to the user. Since this can involve USB traffic and, therefore, scheduling, this has to be done in a work queue.

[PATCH 4/9] async: Extend kfences for listening on DMA fences

2016-06-24 Thread Chris Wilson
dma-buf provides an interfaces for receiving notifications from DMA hardware. kfence provides a useful interface for collecting such fences and combining them with other events. Signed-off-by: Chris Wilson Cc: Sumit Semwal Cc: Shuah Khan

[PATCH 9/9] async: Introduce a dependency resolver for parallel execution

2016-06-24 Thread Chris Wilson
A challenge in driver initialisation is the coordination of many small sometimes independent, sometimes interdependent tasks. We would like to schedule the independent tasks for execution in parallel across as many cores as possible for rapid initialisation, and then schedule all the dependent

[PATCH 3/9] async: Extend kfence to allow struct embedding

2016-06-24 Thread Chris Wilson
Provide a kfence_init() function for use for embedding the kfence into a parent structure. kfence_init() takes an optional function pointer argument should the caller wish to be notified when the kfence is complete. This is useful for allowing the kfences to drive other state machinery.

[PATCH 5/9] async: Wrap hrtimer to provide a time source for a kfence

2016-06-24 Thread Chris Wilson
kfence_add_delay() is a convenience wrapper around hrtimer_start_range_ns() to provide a time source for a kfence graph. Signed-off-by: Chris Wilson Cc: Sumit Semwal Cc: Shuah Khan Cc: Tejun Heo Cc:

[PATCH 7/9] async: Add support for explicit fine-grained barriers

2016-06-24 Thread Chris Wilson
The current async-domain model supports running a multitude of independent tasks with a coarse synchronisation point. This is sufficient for its original purpose of allowing independent drivers to run concurrently during various phases (booting, early resume, late resume etc), and keep the

[PATCH 6/9] async: Add a convenience wrapper for waiting on implicit dma-buf

2016-06-24 Thread Chris Wilson
dma-buf implicitly track their (DMA) rendering using a reservation_object, which tracks ether the last write (in an exclusive fence) or the current renders (with a set of shared fences). To wait upon a reservation object in conjunction with other sources, kfence_add_reservation() extracts the DMA

[PATCH 8/9] async: Add execution barriers

2016-06-24 Thread Chris Wilson
A frequent mode of operation is fanning out N tasks to execute in parallel, collating results, fanning out M tasks, rinse and repeat. This is also common to the notion of the async/sync kernel domain split. A barrier provides a mechanism by which all work queued after the barrier must wait (i.e.

[PATCH 13/19] dib0090: comment out the unused tables

2016-06-24 Thread Mauro Carvalho Chehab
Those tables are currently unused, so comment them out: drivers/media/dvb-frontends/dib0090.c:852:18: warning: 'rf_ramp_pwm_sband' defined but not used [-Wunused-const-variable=] static const u16 rf_ramp_pwm_sband[] = { ^

[PATCH 15/19] zr36016: remove some unused tables

2016-06-24 Thread Mauro Carvalho Chehab
Gcc 6.1 warns about some unused tables: drivers/media/pci/zoran/zr36016.c:251:18: warning: 'zr016_yoff' defined but not used [-Wunused-const-variable=] static const int zr016_yoff[] = { 8, 9, 7 }; ^~ drivers/media/pci/zoran/zr36016.c:250:18: warning: 'zr016_xoff'

[PATCH 18/19] adv7842: comment out a table useful for debug

2016-06-24 Thread Mauro Carvalho Chehab
Gcc 6.1 warns about an unused table: drivers/media/i2c/adv7842.c:2400:27: warning: 'prim_mode_txt' defined but not used [-Wunused-const-variable=] static const char * const prim_mode_txt[] = { ^ That seems to be useful for debug, and likely were used

[PATCH 08/19] m5602_s5k83a: move skeletons to the .c file

2016-06-24 Thread Mauro Carvalho Chehab
The header file has some private static structures that are used only by the C file. Move those structures to the C file, in order to shut up gcc 6.1 warnings. Signed-off-by: Mauro Carvalho Chehab --- drivers/media/usb/gspca/m5602/m5602_s5k83a.c | 124

[PATCH 10/19] m5602_ov7660: move skeletons to the .c file

2016-06-24 Thread Mauro Carvalho Chehab
The header file has some private static structures that are used only by the C file. Move those structures to the C file, in order to shut up gcc 6.1 warnings. Signed-off-by: Mauro Carvalho Chehab --- drivers/media/usb/gspca/m5602/m5602_ov7660.c | 153

[PATCH 06/19] m5602_mt9m111: move skeletons to the .c file

2016-06-24 Thread Mauro Carvalho Chehab
The header file has some private static structures that are used only by the C file. Move those structures to the C file, in order to shut up gcc 6.1 warnings. Signed-off-by: Mauro Carvalho Chehab --- drivers/media/usb/gspca/m5602/m5602_mt9m111.c | 144

[PATCH 02/19] exynos4-is: remove some unused vars

2016-06-24 Thread Mauro Carvalho Chehab
Gcc 6.1 warns about some unused vars and functions. Remove them: drivers/media/platform/exynos4-is/mipi-csis.c:665:46: warning: 's5pcsis_sd_internal_ops' defined but not used [-Wunused-const-variable=] static const struct v4l2_subdev_internal_ops s5pcsis_sd_internal_ops = {

[PATCH 14/19] r820t: comment out two ancillary tables

2016-06-24 Thread Mauro Carvalho Chehab
As Gcc6.1 warned, those tables are currently unused: drivers/media/tuners/r820t.c:349:18: warning: 'r820t_mixer_gain_steps' defined but not used [-Wunused-const-variable=] static const int r820t_mixer_gain_steps[] = { ^~

[PATCH 17/19] em28xx-dvb: remove some left over

2016-06-24 Thread Mauro Carvalho Chehab
Gcc 6.1 warns about an unused table: drivers/media/usb/em28xx/em28xx-dvb.c:907:38: warning: 'pctv_461e_m88ds3103_config' defined but not used [-Wunused-const-variable=] static const struct m88ds3103_config pctv_461e_m88ds3103_config = {

[PATCH 09/19] m5602_po1030: move skeletons to the .c file

2016-06-24 Thread Mauro Carvalho Chehab
The header file has some private static structures that are used only by the C file. Move those structures to the C file, in order to shut up gcc 6.1 warnings. Signed-off-by: Mauro Carvalho Chehab --- drivers/media/usb/gspca/m5602/m5602_po1030.c | 104

[PATCH 04/19] m5602_core: move skeletons to the .c file

2016-06-24 Thread Mauro Carvalho Chehab
The mc5602_brigde.h is included at m5602 submodules. This causes Gcc 6.1 to complain: drivers/media/usb/gspca/m5602/m5602_bridge.h:124:28: warning: 'sensor_urb_skeleton' defined but not used [-Wunused-const-variable=] static const unsigned char sensor_urb_skeleton[] = {

[PATCH 05/19] m5602_s5k4aa: move skeletons to the .c file

2016-06-24 Thread Mauro Carvalho Chehab
The mc5602_s5k4aa.h has some private static structures that are used only by the C file. Move those structures to the C file, in order to shut up gcc 6.1 warnings. Signed-off-by: Mauro Carvalho Chehab --- drivers/media/usb/gspca/m5602/m5602_s5k4aa.c | 199

[PATCH 11/19] cx25821-alsa: shutup a Gcc 6.1 warning

2016-06-24 Thread Mauro Carvalho Chehab
The PCI device ID table is only used if compiled with modules support. When compiled with modules disabled, this is now producing this bogus warning: drivers/media/pci/cx25821/cx25821-alsa.c:696:35: warning: 'cx25821_audio_pci_tbl' defined but not used [-Wunused-const-variable=] static const

[PATCH 01/19] usbvision: remove some unused vars

2016-06-24 Thread Mauro Carvalho Chehab
Gcc 6.1 warns about some unused vars. Remove them: drivers/media/usb/usbvision/usbvision-core.c:94:18: warning: 'min_imgheight' defined but not used [-Wunused-const-variable=] static const int min_imgheight = MIN_FRAME_HEIGHT; ^

[PATCH 00/19] Fix new warnings detected by GCC 6.1

2016-06-24 Thread Mauro Carvalho Chehab
After upgrading to Fedora 24, new warnings started to popup. Fix them. Mauro Carvalho Chehab (19): usbvision: remove some unused vars exynos4-is: remove some unused vars cx18: use macros instead of static const vars m5602_core: move skeletons to the .c file m5602_s5k4aa: move skeletons

[PATCH 03/19] cx18: use macros instead of static const vars

2016-06-24 Thread Mauro Carvalho Chehab
Gcc 6.1 now complains about unused vars: drivers/media/pci/cx18/cx18-driver.h:497:18: warning: 'vbi_hblank_samples_50Hz' defined but not used [-Wunused-const-variable=] static const u32 vbi_hblank_samples_50Hz = 284; /* 4 byte EAV + 280 anc/fill */ ^~~

[PATCH 12/19] drxj: comment out the unused nicam_presc_table_val table

2016-06-24 Thread Mauro Carvalho Chehab
Avoid this warning: drivers/media/dvb-frontends/drx39xyj/drxj.c:1243:18: warning: 'nicam_presc_table_val' defined but not used [-Wunused-const-variable=] static const u16 nicam_presc_table_val[43] = { ^ Signed-off-by: Mauro Carvalho Chehab

[PATCH 19/19] bdisp: move the V/H filter spec to bdisp-hw.c

2016-06-24 Thread Mauro Carvalho Chehab
Those structs are used only at bdisp-hw, so they shouldn't be there in a header file that it is used elsewhere. This fixes the following Gcc 6.1 warnings: In file included from drivers/media/platform/sti/bdisp/bdisp-debug.c:11:0: drivers/media/platform/sti/bdisp/bdisp-filter.h:207:65: warning:

[PATCH 07/19] m5602_ov9650: move skeletons to the .c file

2016-06-24 Thread Mauro Carvalho Chehab
The header file has some private static structures that are used only by the C file. Move those structures to the C file, in order to shut up gcc 6.1 warnings. Signed-off-by: Mauro Carvalho Chehab --- drivers/media/usb/gspca/m5602/m5602_ov9650.c | 152

[PATCH 16/19] vivid: remove some unused vars

2016-06-24 Thread Mauro Carvalho Chehab
Gcc 6.1 warns about some unused vars. Remove them: drivers/media/platform/vivid/vivid-vid-cap.c:40:2: warning: 'tpf_default' defined but not used [-Wunused-const-variable=] tpf_default = {.numerator = 1, .denominator = 30}; ^~~ drivers/media/platform/vivid/vivid-sdr-cap.c:54:27:

Re: [PATCH 01/24] v4l: Add metadata buffer type and format

2016-06-24 Thread Hans Verkuil
On 06/20/2016 09:10 PM, Laurent Pinchart wrote: > The metadata buffer type is used to transfer metadata between userspace > and kernelspace through a V4L2 buffers queue. It comes with a new > metadata capture capability and format description. > > Signed-off-by: Laurent Pinchart

Re: [RFC PATCH 00/24] Make Nokia N900 cameras working

2016-06-24 Thread Pavel Machek
Hi! > As omap3isp driver supports only one endpoint on ccp2 interface, > but cameras on N900 require different strobe settings, so far > it is not possible to have both cameras correctly working with > the same board DTS. DTS patch in the series has the correct > settings for the front camera.

Re: [PATCH 01/24] v4l: Add metadata buffer type and format

2016-06-24 Thread Hans Verkuil
On 06/24/2016 05:57 PM, Hans Verkuil wrote: > On 06/20/2016 09:10 PM, Laurent Pinchart wrote: >> The metadata buffer type is used to transfer metadata between userspace >> and kernelspace through a V4L2 buffers queue. It comes with a new >> metadata capture capability and format description. >> >>

Re: [PATCH 11/19] cx25821-alsa: shutup a Gcc 6.1 warning

2016-06-24 Thread Luis de Bethencourt
On 24/06/16 16:31, Mauro Carvalho Chehab wrote: > The PCI device ID table is only used if compiled with modules > support. When compiled with modules disabled, this is now > producing this bogus warning: > > drivers/media/pci/cx25821/cx25821-alsa.c:696:35: warning: > 'cx25821_audio_pci_tbl'

Re: [PATCH] [media] netup_unidvb: trivial fix of spelling mistake "initizalize" -> "initialize"

2016-06-24 Thread Abylay Ospan
Acked-by: Abylay Ospan 2016-06-24 14:00 GMT-04:00 Colin King : > From: Colin Ian King > > trivial fix to spelling mistake in dev_err message > > Signed-off-by: Colin Ian King > --- >

Re: [PATCH 01/24] v4l: Add metadata buffer type and format

2016-06-24 Thread Guennadi Liakhovetski
On Fri, 24 Jun 2016, Hans Verkuil wrote: > On 06/20/2016 09:10 PM, Laurent Pinchart wrote: > > The metadata buffer type is used to transfer metadata between userspace > > and kernelspace through a V4L2 buffers queue. It comes with a new > > metadata capture capability and format description. > >

Re: [PATCH 01/24] v4l: Add metadata buffer type and format

2016-06-24 Thread Guennadi Liakhovetski
Hi Hans, On Fri, 24 Jun 2016, Hans Verkuil wrote: > On 06/24/2016 05:57 PM, Hans Verkuil wrote: > > On 06/20/2016 09:10 PM, Laurent Pinchart wrote: > >> The metadata buffer type is used to transfer metadata between userspace > >> and kernelspace through a V4L2 buffers queue. It comes with a new

[PATCH] [media] netup_unidvb: trivial fix of spelling mistake "initizalize" -> "initialize"

2016-06-24 Thread Colin King
From: Colin Ian King trivial fix to spelling mistake in dev_err message Signed-off-by: Colin Ian King --- drivers/media/pci/netup_unidvb/netup_unidvb_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [PATCH 11/19] cx25821-alsa: shutup a Gcc 6.1 warning

2016-06-24 Thread Mauro Carvalho Chehab
Em Fri, 24 Jun 2016 18:38:42 +0100 Luis de Bethencourt escreveu: > On 24/06/16 16:31, Mauro Carvalho Chehab wrote: > > The PCI device ID table is only used if compiled with modules > > support. When compiled with modules disabled, this is now > > producing this bogus

Re: [PATCH/RFC v2 1/4] v4l: Add metadata buffer type and format

2016-06-24 Thread Sakari Ailus
Hi Laurent, On Wed, Jun 22, 2016 at 07:51:06PM +0300, Laurent Pinchart wrote: > Hello, > > On Tuesday 24 May 2016 19:26:32 Sakari Ailus wrote: > > On Tue, May 24, 2016 at 05:36:42PM +0200, Hans Verkuil wrote: > > > On 05/24/2016 05:28 PM, Sakari Ailus wrote: > > > > Hi Hans, > > > > > > > >>

cron job: media_tree daily build: OK

2016-06-24 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 Jun 25 04:00:29 CEST 2016 git branch: test git hash: 59f0bc11848f8f3242bc1fefae670e745929cd7b gcc