cron job: media_tree daily build: ERRORS

2015-10-02 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 Oct 3 04:00:16 CEST 2015 git branch: test git hash: ca739eb086155007d7264be7ccc07f894d5a7bbe gcc versi

Re: [PATCH 6/7] [media] c8sectpfe: fix namespace on memcpy/memset

2015-10-02 Thread Arnd Bergmann
On Thursday 01 October 2015 19:17:28 Mauro Carvalho Chehab wrote: > @@ -1084,10 +1084,10 @@ static void load_dmem_segment(struct c8sectpfei *fei, > Elf32_Phdr *phdr, > seg_num, phdr->p_paddr, phdr->p_filesz, > dst, phdr->p_memsz); > > - memcpy((void __iomem

Re: [PATCH 5/7] [media] mipi-csis: make sparse happy

2015-10-02 Thread Arnd Bergmann
On Thursday 01 October 2015 19:17:27 Mauro Carvalho Chehab wrote: > diff --git a/drivers/media/platform/exynos4-is/mipi-csis.c > b/drivers/media/platform/exynos4-is/mipi-csis.c > index d74e1bec3d86..4b85105dc159 100644 > --- a/drivers/media/platform/exynos4-is/mipi-csis.c > +++ b/drivers/media/pla

[PATCH MC Next Gen 04/20] media: Media Controller fix to not let stream_count go negative

2015-10-02 Thread Shuah Khan
Add a range check to not let the stream_count become negative. Wthout this check, calls to stop pipeline when there is no active pipeline will result in stream_count < 0 condition and lock and preventing link state (activate/deactivate) changes. This will happen from error leg in start pipeline int

[PATCH MC Next Gen 00/20] Update ALSA, and au0828 drivers to use Managed Media Controller API

2015-10-02 Thread Shuah Khan
This patch series updates ALSA driver, and au0828 core driver to use Managed Media controller API to share tuner. Please note that Managed Media Controller API and DVB and V4L2 drivers updates to use Media Controller API have been added in a prior patch series. Media Controller API is enhanced wit

[PATCH MC Next Gen 10/20] media: au0828 Use au8522_media_pads enum for pad defines

2015-10-02 Thread Shuah Khan
Change au0828-core to use au8522_media_pads enum defines instead of hard-coding the pad values when it creates media graph linking decode pads to other entities. Signed-off-by: Shuah Khan --- drivers/media/usb/au0828/au0828-core.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) dif

[PATCH MC Next Gen 03/20] media: Media Controller enable/disable source handler API

2015-10-02 Thread Shuah Khan
Add new fields to struct media_device to add enable_source, and disable_source handlers, and source_priv to stash driver private data that is need to run these handlers. The enable_source handler finds source entity for the passed in entity and check if it is available, and activate the link using

[PATCH MC Next Gen 13/20] media: dvb-frontend invoke enable/disable_source handlers

2015-10-02 Thread Shuah Khan
Checking for tuner availability from frontend thread start disrupts video stream. Change to check for tuner and start pipeline from frontend open instead and stop pipeline from frontend release. In addition, make a change to invoke enable_source and disable_source handlers to check for tuner availa

[PATCH MC Next Gen 17/20] media: au0828 change to register/unregister entity_notify hook

2015-10-02 Thread Shuah Khan
au0828 registers entity_notify hook to create media graph for the device. This handler runs whenvere a new entity gets added to the media device. It creates necessary links from video, vbi, and ALSA entities to decoder and links tuner and decoder entities. As this handler runs as entities get added

[PATCH MC Next Gen 19/20] media: dvb-core create tuner to demod pad link in disabled state

2015-10-02 Thread Shuah Khan
Create tuner to demod pad link in disabled state to help avoid disable step when tuner resource is requested by video or audio. Signed-off-by: Shuah Khan --- drivers/media/dvb-core/dvbdev.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/media/dvb-core/dvbdev.c b/dr

[PATCH MC Next Gen 09/20] media: au8522 change to create MC pad for ALSA Audio Out

2015-10-02 Thread Shuah Khan
Add new pad for ALSA Audio Out to au8522_media_pads. Signed-off-by: Shuah Khan --- drivers/media/dvb-frontends/au8522.h | 1 + drivers/media/dvb-frontends/au8522_decoder.c | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/media/dvb-frontends/au8522.h b/drivers/media/dvb-fron

[PATCH MC Next Gen 06/20] media: Media Controller non-locking __media_entity_pipeline_start/stop()

2015-10-02 Thread Shuah Khan
Add non-locking __media_entity_pipeline_start/stop() interfaces to be called from code paths that hold the graph_mutex. For this change, the media_entity_pipeline_start() routine is renamed to __media_entity_pipeline_start() minus the graph_mutex lock and unlock. media_entity_pipeline_start() now c

[PATCH MC Next Gen 18/20] media: au0828 implement enable_source and disable_source handlers

2015-10-02 Thread Shuah Khan
Implements enable_source and disable_source handlers for other drivers (v4l2-core, dvb-core, and ALSA) to use to check for tuner connected to the decoder and activate the link if tuner is free, and deactivate and free the tuner when it is no longer needed. Signed-off-by: Shuah Khan --- drivers/m

[PATCH MC Next Gen 01/20] media: Media Controller register/unregister entity_notify API

2015-10-02 Thread Shuah Khan
Add new interfaces to register and unregister entity_notify hook to media device to allow drivers to take appropriate actions when as new entities get added to the shared media device.When a new entity is registered, all registered entity_notify hooks are invoked to allow drivers or modules that re

[PATCH MC Next Gen 02/20] media: Add ALSA Media Controller function entities

2015-10-02 Thread Shuah Khan
Add ALSA Media Controller capture, playback, and mixer function entity defines. Signed-off-by: Shuah Khan --- include/uapi/linux/media.h | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/include/uapi/linux/media.h b/include/uapi/linux/media.h index 90e90a6..46b1e169 100

[PATCH MC Next Gen 07/20] media: v4l-core add v4l_enable/disable_media_tuner() helper functions

2015-10-02 Thread Shuah Khan
Add a new interfaces to be used by v4l-core to invoke enable source and disable_source handlers in the media_device. The enable_source helper function invokes the enable_source handler to find tuner entity connected to the decoder and check is it is available or busy. If tuner is available, link is

[PATCH MC Next Gen 16/20] media: au0828 change to use Managed Media Controller API

2015-10-02 Thread Shuah Khan
Change au0828 to use Managed Media Controller API to coordinate creating/deleting media device on parent usb device it shares with the snd-usb-audio driver. With this change, au0828 uses media_device_get_devres() to allocate a new media device devres or return an existing one, if it finds one. Sig

[PATCH MC Next Gen 14/20] media: au0828 video remove au0828_enable_analog_tuner()

2015-10-02 Thread Shuah Khan
au0828_enable_analog_tuner() is no longer needed with v4l2-core and au0828-video invoking enable_source and disable_source handlers. In addition, it is unnecessary to check for tuner availability in queue_setup() as v4l2-core handles the tuner availability checks. Signed-off-by: Shuah Khan --- d

[PATCH MC Next Gen 05/20] media: Media Controller export non locking __media_entity_setup_link()

2015-10-02 Thread Shuah Khan
Export __media_entity_setup_link() to be used from code paths that hold the graph_mutex. Signed-off-by: Shuah Khan --- drivers/media/media-entity.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/media/media-entity.c b/drivers/media/media-entity.c index 797b7b3..49a8755 100644 --- a/

[PATCH MC Next Gen 08/20] media: Move au8522_media_pads enum to au8522.h from au8522_priv.h

2015-10-02 Thread Shuah Khan
Move the au8522_media_pads enum to au8522.h from au8522_priv.h. This will allow au0828-core to use these defines instead of hard-coding the pad values when it creates media graph linking decode pads to other entities. Signed-off-by: Shuah Khan --- drivers/media/dvb-frontends/au8522.h | 7 ++

[PATCH MC Next Gen 11/20] media: au0828 fix au0828_create_media_graph() entity checks

2015-10-02 Thread Shuah Khan
au0828_create_media_graph() doesn't do any checks to determine, if vbi_dev, vdev, and input entities have been registered prior to creating pad links. Checking graph_obj.mdev field works as the graph_obj.mdev field gets initialized in the entity register interface. Fix it to check graph_obj.mdev fi

[PATCH MC Next Gen 15/20] media: au0828 video change to use v4l_enable_media_tuner()

2015-10-02 Thread Shuah Khan
au0828 is changed to use v4l_enable_media_tuner() to check for tuner availability from vidioc_g_tuner(), and au0828_v4l2_close(), before changing tuner settings. If tuner isn't free, return busy condition from vidioc_g_tuner() and in au0828_v4l2_close() tuner is left untouched without powering down

[PATCH MC Next Gen 20/20] sound/usb: Update ALSA driver to use Managed Media Controller API

2015-10-02 Thread Shuah Khan
Change ALSA driver to use Managed ~media Managed Controller API to share tuner with DVB and V4L2 drivers that control AU0828 media device. Media device is created based on a newly added field value in the struct snd_usb_audio_quirk. Using this approach, the media controller API usage can be added

[PATCH MC Next Gen 12/20] media: Change v4l-core to check for tuner availability

2015-10-02 Thread Shuah Khan
Change s_input, s_fmt, s_tuner, s_frequency, querystd, s_hw_freq_seek, and vb2_internal_streamon interfaces that alter the tuner configuration to check for tuner availability by calling v4l_enable_media_tuner(). If tuner isn't free, return -EBUSY. v4l_disable_media_tuner() is called from v4l2_fh_ex

[PATCH] [media] gspca: ov534/topro: prevent a division by 0

2015-10-02 Thread Antonio Ospite
v4l2-compliance sends a zeroed struct v4l2_streamparm in v4l2-test-formats.cpp::testParmType(), and this results in a division by 0 in some gspca subdrivers: divide error: [#1] SMP Modules linked in: gspca_ov534 gspca_main ... CPU: 0 PID: 17201 Comm: v4l2-compliance Not tainted 4.3.0-rc

Re: Satix S2 driver bug report - kernel tried to execute NX-protected page - exploit attempt?

2015-10-02 Thread Antti Palosaari
Moikka! I wonder if that has something to do with m88ds3103 driver conversion to I2C binding I did... But there is some things I do not understand. According to log it is DVBSky S952 device, cx23885 + m88ds3103, which crash. I see no comments on cx23885 code any Satix S2 model. Also log says it

Re: Coda encoder stop

2015-10-02 Thread Jean-Michel Hautbois
2015-10-02 17:14 GMT+02:00 Philipp Zabel : > Am Freitag, den 02.10.2015, 16:59 +0200 schrieb Jean-Michel Hautbois: > [...] >> Oups, forgot to paste the kernel output : >> >> [ 324.390498] [ cut here ] >> [ 324.395163] WARNING: CPU: 1 PID: 1434 at >> /run/media/jm/SSD_JM/Pr

Re: Coda encoder stop

2015-10-02 Thread Philipp Zabel
Am Freitag, den 02.10.2015, 16:59 +0200 schrieb Jean-Michel Hautbois: [...] > Oups, forgot to paste the kernel output : > > [ 324.390498] [ cut here ] > [ 324.395163] WARNING: CPU: 1 PID: 1434 at > /run/media/jm/SSD_JM/Projets/git_mirrors/linux-2.6-imx/kernel/locking/lock

Re: Coda encoder stop

2015-10-02 Thread Jean-Michel Hautbois
2015-10-02 16:31 GMT+02:00 Jean-Michel Hautbois : > Hi Philipp, > > I have tried to implement V4L2_ENC_CMD_STOP command in coda encoder > but can't make it work with gstreamer (I have modified my gst element > to use the correct command, based on your work on bug > https://bugzilla.gnome.org/show_b

Coda encoder stop

2015-10-02 Thread Jean-Michel Hautbois
Hi Philipp, I have tried to implement V4L2_ENC_CMD_STOP command in coda encoder but can't make it work with gstreamer (I have modified my gst element to use the correct command, based on your work on bug https://bugzilla.gnome.org/show_bug.cgi?id=733864). Here is what I have tried : >From 1dd2f7

Re: Dublin: ELCE linux-media dinner

2015-10-02 Thread Hans Verkuil
On October 2, 2015 1:40:15 PM GMT+01:00, Jean-Michel Hautbois wrote: >Hi, > >2015-10-02 14:32 GMT+02:00 Hans Verkuil : >> On October 2, 2015 12:05:37 PM GMT+01:00, Ricardo Ribalda Delgado > wrote: >>>Hello >>> >>>Some of the people from this list will be in Dublin the next week for >>>the ELCE, u

RE: [PATCH v2 2/2] s5p-mfc: use MFC_BUF_FLAG_EOS to identify last buffers in decoder capture queue

2015-10-02 Thread Kamil Debski
Hi Andrzej, > From: Andrzej Hajda [mailto:a.ha...@samsung.com] > Sent: Friday, October 02, 2015 2:10 PM > > MFC driver never delivered EOS event to apps feeding constantly its capture > buffer with fresh buffers. The patch fixes it by marking last buffers returned > by MFC with MFC_BUF_FLAG_EOS f

RE: [PATCH v2 1/2] s5p-mfc: end-of-stream handling for newer encoders

2015-10-02 Thread Kamil Debski
Hi Andrzej, Thank you for your patch, I have a minor comment. Please find it below. > From: Andrzej Hajda [mailto:a.ha...@samsung.com] > Sent: Friday, October 02, 2015 2:10 PM > > MFC encoder supports end-of-stream handling for encoder in version 5 of > hardware. This patch adds it also for new

Re: Dublin: ELCE linux-media dinner

2015-10-02 Thread Jean-Michel Hautbois
Hi, 2015-10-02 14:32 GMT+02:00 Hans Verkuil : > On October 2, 2015 12:05:37 PM GMT+01:00, Ricardo Ribalda Delgado > wrote: >>Hello >> >>Some of the people from this list will be in Dublin the next week for >>the ELCE, unfortunately, this year we will not have the linux-media >>summit, because it

Re: Dublin: ELCE linux-media dinner

2015-10-02 Thread Hans Verkuil
On October 2, 2015 12:05:37 PM GMT+01:00, Ricardo Ribalda Delgado wrote: >Hello > >Some of the people from this list will be in Dublin the next week for >the ELCE, unfortunately, this year we will not have the linux-media >summit, because it will be in Korea. > >Anyway, I think that it can be a g

[PATCH v2 1/2] s5p-mfc: end-of-stream handling for newer encoders

2015-10-02 Thread Andrzej Hajda
MFC encoder supports end-of-stream handling for encoder in version 5 of hardware. This patch adds it also for newer version. It was successfully tested on MFC-v8. Signed-off-by: Andrzej Hajda --- Hi, This version is rebased on latest media_tree branch. Regards Andrzej --- drivers/media/platfor

[PATCH v2 2/2] s5p-mfc: use MFC_BUF_FLAG_EOS to identify last buffers in decoder capture queue

2015-10-02 Thread Andrzej Hajda
MFC driver never delivered EOS event to apps feeding constantly its capture buffer with fresh buffers. The patch fixes it by marking last buffers returned by MFC with MFC_BUF_FLAG_EOS flag and firing EOS event on de-queuing such buffers. Signed-off-by: Andrzej Hajda --- Hi, This version is rebas

Dublin: ELCE linux-media dinner

2015-10-02 Thread Ricardo Ribalda Delgado
Hello Some of the people from this list will be in Dublin the next week for the ELCE, unfortunately, this year we will not have the linux-media summit, because it will be in Korea. Anyway, I think that it can be a great idea to meet in Dublin and have dinner together. At least these people will

Re: [PATCH v3 5/5] [media] imx-ipu: Add i.MX IPUv3 scaler driver

2015-10-02 Thread Philipp Zabel
Am Freitag, den 02.10.2015, 11:06 +0200 schrieb Jean-Michel Hautbois: > 2015-10-02 10:37 GMT+02:00 Philipp Zabel : > > Hi Jean-Michel, > > > > Am Donnerstag, den 01.10.2015, 09:55 +0200 schrieb Jean-Michel Hautbois: > >> Hi Philipp, Hans, > >> > >> > >> 2015-07-24 17:12 GMT+02:00 Hans Verkuil : > >

Re: iMX6 CSI capture support?

2015-10-02 Thread Philipp Zabel
Hi David, Am Donnerstag, den 01.10.2015, 16:33 +0200 schrieb David Müller: > Hello > > Some time ago, there were some patches around implementing CSI capture > support for the iMX6 IPU. > > It seems like these patches never made it into the vanilla kernel tree. > > What is the status of iMX6 CS

Re: [PATCH] v4l2-flash-led-class: Add missing VIDEO_V4L2 Kconfig dependency

2015-10-02 Thread Jacek Anaszewski
Hi Sakari, On 10/02/2015 11:41 AM, Sakari Ailus wrote: Hi Jacek, On Fri, Oct 02, 2015 at 11:19:15AM +0200, Jacek Anaszewski wrote: Fixes the following randconfig problem: drivers/built-in.o: In function `v4l2_flash_release': (.text+0x12204f): undefined reference to `v4l2_async_unregister_subd

[PATCH 2/2] s5p-mfc: use MFC_BUF_FLAG_EOS to identify last buffers in decoder capture queue

2015-10-02 Thread Andrzej Hajda
MFC driver never delivered EOS event to apps feeding constantly its capture buffer with fresh buffers. The patch fixes it by marking last buffers returned by MFC with MFC_BUF_FLAG_EOS flag and firing EOS event on de-queuing such buffers. Signed-off-by: Andrzej Hajda --- drivers/media/platform/s5

[PATCH 1/2] s5p-mfc: end-of-stream handling for newer encoders

2015-10-02 Thread Andrzej Hajda
MFC encoder supports end-of-stream handling for encoder in version 5 of hardware. This patch adds it also for newer version. It was successfully tested on MFC-v8. Signed-off-by: Andrzej Hajda --- drivers/media/platform/s5p-mfc/s5p_mfc.c| 25 drivers/media/platform/s5p-mf

Re: [PATCH] v4l2-flash-led-class: Add missing VIDEO_V4L2 Kconfig dependency

2015-10-02 Thread Sakari Ailus
Hi Jacek, On Fri, Oct 02, 2015 at 11:19:15AM +0200, Jacek Anaszewski wrote: > Fixes the following randconfig problem: > > drivers/built-in.o: In function `v4l2_flash_release': > (.text+0x12204f): undefined reference to `v4l2_async_unregister_subdev' > drivers/built-in.o: In function `v4l2_flash_r

[PATCH] v4l2-flash-led-class: Add missing VIDEO_V4L2 Kconfig dependency

2015-10-02 Thread Jacek Anaszewski
Fixes the following randconfig problem: drivers/built-in.o: In function `v4l2_flash_release': (.text+0x12204f): undefined reference to `v4l2_async_unregister_subdev' drivers/built-in.o: In function `v4l2_flash_release': (.text+0x122057): undefined reference to `v4l2_ctrl_handler_free' drivers/buil

Re: [PATCH v3 5/5] [media] imx-ipu: Add i.MX IPUv3 scaler driver

2015-10-02 Thread Jean-Michel Hautbois
2015-10-02 10:37 GMT+02:00 Philipp Zabel : > Hi Jean-Michel, > > Am Donnerstag, den 01.10.2015, 09:55 +0200 schrieb Jean-Michel Hautbois: >> Hi Philipp, Hans, >> >> >> 2015-07-24 17:12 GMT+02:00 Hans Verkuil : > [...] >> What is the status of this driver ? >> I can test it here, Philipp, are you pl

[PATCH 1/2] s5p-mfc: fix spelling errors

2015-10-02 Thread Ingi Kim
This patch fixes spelling errors in mfc encoder. inavild -> invaild Signed-off-by: Ingi Kim --- drivers/media/platform/s5p-mfc/s5p_mfc_enc.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/media/platform/s5p-mfc/s5p_mfc_enc.c b/drivers/media/platform/s5p-mfc/

Re: [PATCH v3 5/5] [media] imx-ipu: Add i.MX IPUv3 scaler driver

2015-10-02 Thread Philipp Zabel
Hi Jean-Michel, Am Donnerstag, den 01.10.2015, 09:55 +0200 schrieb Jean-Michel Hautbois: > Hi Philipp, Hans, > > > 2015-07-24 17:12 GMT+02:00 Hans Verkuil : [...] > What is the status of this driver ? > I can test it here, Philipp, are you planning to take Hans remarks > into account in one of y

Satix S2 driver bug report - kernel tried to execute NX-protected page - exploit attempt?

2015-10-02 Thread Stefan Breitegger
Dear Sir or Madam! After upgrading to Ubuntu mainline kernel 4.2.2-040202-generic the cx23885 module is not working any more. A dmesg here: [ 247.320554] nGene PCIE bridge driver, Copyright (C) 2005-2007 Micronas [ 261.359682] media: Linux media interface: v0.10 [ 261.364715] Linux video captu