[PATCH for v4.2] cobalt: set Kconfig default to n

2015-06-18 Thread Hans Verkuil
Since this board is a Cisco-internal board there is no point in having it compiled by default. So set the Kconfig default to n. Signed-off-by: Hans Verkuil diff --git a/drivers/media/pci/cobalt/Kconfig b/drivers/media/pci/cobalt/Kconfig index 3be1b2c..4d0777a 100644 --- a/drivers/media/pci/coba

Re: [PATCH v9 2/8] media: Add registration helpers for V4L2 flash sub-devices

2015-06-18 Thread Jacek Anaszewski
Hi Alexey, On 06/18/2015 07:45 PM, Alexey Klimov wrote: Hi Jacek, On Mon, May 25, 2015 at 6:13 PM, Jacek Anaszewski wrote: This patch adds helper functions for registering/unregistering LED Flash class devices as V4L2 sub-devices. The functions should be called from the LED subsystem device d

Re: [RFC PATCH 2/2] v4l2-utils: extend set-dv-timing options for RB version

2015-06-18 Thread Hans Verkuil
On 06/16/2015 11:30 AM, Prashant Laddha wrote: > To support the timings calculations for reduced blanking version 2 > (RB v2), extended the command line options to include flag indicating > whether to use RB V2 or not. Updated the command usage for the same. > > Cc: Hans Verkuil > Signed-off-by:

cron job: media_tree daily build: OK

2015-06-18 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: Fri Jun 19 04:00:21 CEST 2015 git branch: test git hash: 6f32a8c97f11eb074027052b6b507891e5c9d8b1 gcc versi

[linuxtv-media:media-controller 1243/1278] drivers/media/dvb-frontends/ts2020.c:60:2: error: implicit declaration of function 'i2c_unregister_device'

2015-06-18 Thread kbuild test robot
tree: git://linuxtv.org/media_tree.git media-controller head: 027cf164d8f3a80c2127cc92e4620e04e883e829 commit: f158cbceb165f318a89a8bb831dc3ea27823b3f8 [1243/1278] [media] ts2020: convert to regmap I2C API config: x86_64-randconfig-r0-06190935 (attached as .config) reproduce: git checkout f1

[linuxtv-media:media-controller 1277/1278] drivers/media/usb/au0828/au0828-video.c:674:7: warning: 'entity' may be used uninitialized in this function

2015-06-18 Thread kbuild test robot
tree: git://linuxtv.org/media_tree.git media-controller head: 027cf164d8f3a80c2127cc92e4620e04e883e829 commit: 61891e24706322835582f8b6b184be9adbf78427 [1277/1278] [media] au0828: Cache the decoder info at au0828 dev structure config: blackfin-allyesconfig (attached as .config) reproduce: wg

Re: [PATCH v3 1/7] rc: rc-ir-raw: Add scancode encoder callback

2015-06-18 Thread Mauro Carvalho Chehab
Em Sun, 14 Jun 2015 01:44:54 +0200 David Härdeman escreveu: > On 2015-05-23 13:34, Antti Seppälä wrote: > > On 22 May 2015 at 13:33, David Härdeman wrote: > >> On 2015-05-22 07:27, Antti Seppälä wrote: > >>> I think that approach too is far from perfect as it leaves us with > >>> questions such

[linuxtv-media:media-controller 1277/1277] drivers/media/usb/au0828/au0828-cards.c:231:5: warning: "CONFIG_MEDIA_CONTROLLER" is not defined

2015-06-18 Thread kbuild test robot
tree: git://linuxtv.org/media_tree.git media-controller head: 61891e24706322835582f8b6b184be9adbf78427 commit: 61891e24706322835582f8b6b184be9adbf78427 [1277/1277] [media] au0828: Cache the decoder info at au0828 dev structure config: x86_64-rhel (attached as .config) reproduce: git checkout

Re: [PATCH] mantis: fix unused variable compiler warning

2015-06-18 Thread Mauro Carvalho Chehab
Em Thu, 11 Jun 2015 08:05:25 +0200 Hans Verkuil escreveu: > mantis_i2c.c:222:15: warning: variable 'intmask' set but not used > [-Wunused-but-set-variable] > u32 intstat, intmask; >^ > > Signed-off-by: Hans Verkuil > > diff --git a/drivers/media/pci/mantis/mantis_i2c.c > b/

[GIT PULL FOR v4.2] VSP1 miscellaneous fixes

2015-06-18 Thread Laurent Pinchart
Hi Mauro, I suppose it's too late for v4.2, but who knows :-) If it is, v4.3 is fine as well. The following changes since commit f8d5556fa9dbf6b88e1a8fe88e47ad1b8ddb4742: [media] videodev2.h: fix copy-and-paste error in V4L2_MAP_XFER_FUNC_DEFAULT (2015-06-18 14:34:46 -0300) are available in

Re: [PATCH v2] v4l: vsp1: Align crop rectangle to even boundary for YUV formats

2015-06-18 Thread Laurent Pinchart
Hi Kaneko-san, Thank you for the patch. On Thursday 28 May 2015 21:59:39 Yoshihiro Kaneko wrote: > From: Damian Hobson-Garcia > > Make sure that there are valid values in the crop rectangle to ensure > that the color plane doesn't get shifted when cropping. > Since there is no distinction betwe

Re: [PATCH/RFC] v4l: vsp1: Align crop rectangle to even boundary for YUV formats

2015-06-18 Thread Laurent Pinchart
Hi Damian, On Monday 18 May 2015 17:17:52 Damian Hobson-Garcia wrote: > On 2015-05-04 7:13 AM, Laurent Pinchart wrote: > > On Thursday 30 April 2015 14:22:02 Sergei Shtylyov wrote: > >> On 4/29/2015 8:05 PM, Yoshihiro Kaneko wrote: > >>> From: Damian Hobson-Garcia > >>> > >>> Make sure that ther

Re: [PATCH/RFC] v4l: vsp1: Change pixel count at scale-up setting

2015-06-18 Thread Laurent Pinchart
Hi Kaneko-san, Thank you for the patch. On Monday 15 June 2015 02:29:14 Yoshihiro Kaneko wrote: > From: Atsushi Akatsuka > > This commit sets AMD bit of VI6_UDSn_CTRL register, > and modifies scaling formula to fit AMD bit. What's the rationale for that ? What are the side effects of setting t

Re: [PATCH v3 1/1] V4L2: platform: Renesas R-Car JPEG codec driver

2015-06-18 Thread Laurent Pinchart
Hi Mikhail, (CC'ing Kamil Debski) On Wednesday 06 May 2015 01:03:10 Mikhail Ulianov wrote: > On Mon, 04 May 2015 02:32:05 +0300 Laurent Pinchart wrote: > >> +/* > >> + * > >> + * video ioctl operations > >> + * =

Re: [PATCH 1/3] [media] v4l: vsp1: Fix VI6_WPF_SZCLIP_SIZE_MASK macro

2015-06-18 Thread Laurent Pinchart
Hi Iwamatsu-san, I've found this patch series in my inbox, my apologies for not having noticed it earlier. On Thursday 29 January 2015 09:53:53 Nobuhiro Iwamatsu wrote: > Clipping size bit of VI6_WPFn _HSZCLIP and VI6_WPFn _VSZCLIP register are > from 0 bit to 11 bit. But VI6_WPF_SZCLIP_SIZE_MAS

Re: [PATCH] [media] au0828: Cache the decoder info at au0828 dev structure

2015-06-18 Thread Hans Verkuil
On 06/18/2015 07:27 PM, Mauro Carvalho Chehab wrote: > Instead of seeking for the decoder every time analog stream is > started, cache it. > > Requested-by: Hans Verkuil > Signed-off-by: Mauro Carvalho Chehab Acked-by: Hans Verkuil Regards, Hans > > diff --git a/drivers/media/usb/a

Kedves Email felhasználói;

2015-06-18 Thread rendszer Administrator®
Kedves Email felhasználói; Túllépte a határt 23432 tárolása a megadott e-mail fiókkal által beállított Web Service / Administrator, és akkor sikerül a küldo és a bejövo üzenetek, amíg meg újból érvényesíti az e-mail címre. A szükséges eljárások nyújtottak be az alábbiakban a nézetet, el

Re: [PATCH v9 2/8] media: Add registration helpers for V4L2 flash sub-devices

2015-06-18 Thread Alexey Klimov
Hi Jacek, On Mon, May 25, 2015 at 6:13 PM, Jacek Anaszewski wrote: > This patch adds helper functions for registering/unregistering > LED Flash class devices as V4L2 sub-devices. The functions should > be called from the LED subsystem device driver. In case the > support for V4L2 Flash sub-device

[PATCH] [media] mantis: cleanup a warning

2015-06-18 Thread Mauro Carvalho Chehab
Signed-off-by: Mauro Carvalho Chehab drivers/media/pci/mantis/mantis_i2c.c: In function 'mantis_i2c_init': drivers/media/pci/mantis/mantis_i2c.c:222:15: warning: variable 'intmask' set but not used [-Wunused-but-set-variable] u32 intstat, intmask; Signed-off-by: Mauro Carvalho Chehab diff --

[PATCH] [media] au0828: Cache the decoder info at au0828 dev structure

2015-06-18 Thread Mauro Carvalho Chehab
Instead of seeking for the decoder every time analog stream is started, cache it. Requested-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab diff --git a/drivers/media/usb/au0828/au0828-cards.c b/drivers/media/usb/au0828/au0828-cards.c index 6b469e8c4c6e..f7337dbbc59f 100644 --- a/drivers

Re: [PATCH] au0828: Cache the decoder info at au0828 dev structure

2015-06-18 Thread Hans Verkuil
On 06/18/2015 06:09 PM, Mauro Carvalho Chehab wrote: > Instead of seeking for the decoder every time analog stream is > started, cache it. > > Requested-by: Hans Verkuil > Signed-off-by: Mauro Carvalho Chehab > --- > drivers/media/usb/au0828/au0828-video.c | 37 > ++

[PATCH] au0828: Cache the decoder info at au0828 dev structure

2015-06-18 Thread Mauro Carvalho Chehab
Instead of seeking for the decoder every time analog stream is started, cache it. Requested-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- drivers/media/usb/au0828/au0828-video.c | 37 ++--- drivers/media/usb/au0828/au0828.h | 1 + 2 files changed,

[PATCH 1/2] genalloc: add name arg to gen_pool_get() and devm_gen_pool_create()

2015-06-18 Thread Vladimir Zapolskiy
This change modifies gen_pool_get() and devm_gen_pool_create() client interfaces adding one more argument "name" of a gen_pool object. Due to implementation gen_pool_get() is capable to retrieve only one gen_pool associated with a device even if multiple gen_pools are created, fortunately right at

[PATCH v2 0/2] genalloc: add support of multiple gen_pools per device

2015-06-18 Thread Vladimir Zapolskiy
This is continuation of development of a proposed earlier functionality to have multiple gen_pools per device, see https://lkml.org/lkml/2015/6/8/588 discussion. The main difference with the originally sent change is that instead of adding two new interfaces gen_pool_get_named() and devm_gen_pool_

[PATCH 10/10] mm: Move get_vaddr_frames() behind a config option

2015-06-18 Thread Jan Kara
get_vaddr_frames() is used by relatively rare drivers so hide it and the related functions behind a config option that is selected only by drivers that need the infrastructure. The saving are: add/remove: 0/6 grow/shrink: 0/0 up/down: 0/-868 (-868) function old

[PATCH 8/10] media: vb2: Remove unused functions

2015-06-18 Thread Jan Kara
Conversion to the use of pinned pfns made some functions unused. Remove them. Also there's no need to lock mmap_sem in __buf_prepare() anymore. Acked-by: Marek Szyprowski Tested-by: Marek Szyprowski Signed-off-by: Jan Kara --- drivers/media/v4l2-core/videobuf2-memops.c | 114 --

[PATCH 5/10] media: vb2: Convert vb2_dma_sg_get_userptr() to use frame vector

2015-06-18 Thread Jan Kara
Acked-by: Marek Szyprowski Tested-by: Marek Szyprowski Signed-off-by: Jan Kara --- drivers/media/v4l2-core/videobuf2-dma-sg.c | 95 +- 1 file changed, 15 insertions(+), 80 deletions(-) diff --git a/drivers/media/v4l2-core/videobuf2-dma-sg.c b/drivers/media/v4l2-cor

[PATCH 3/10] media: omap_vout: Convert omap_vout_uservirt_to_phys() to use get_vaddr_pfns()

2015-06-18 Thread Jan Kara
Convert omap_vout_uservirt_to_phys() to use get_vaddr_pfns() instead of hand made mapping of virtual address to physical address. Also the function leaked page reference from get_user_pages() so fix that by properly release the reference when omap_vout_buffer_release() is called. Signed-off-by: Ja

[PATCH 6/10] media: vb2: Convert vb2_vmalloc_get_userptr() to use frame vector

2015-06-18 Thread Jan Kara
Convert vb2_vmalloc_get_userptr() to use frame vector infrastructure. When we are doing that there's no need to allocate page array and some code can be simplified. Acked-by: Marek Szyprowski Tested-by: Marek Szyprowski Signed-off-by: Jan Kara --- drivers/media/v4l2-core/videobuf2-vmalloc.c |

[PATCH 7/10] media: vb2: Convert vb2_dc_get_userptr() to use frame vector

2015-06-18 Thread Jan Kara
Convert vb2_dc_get_userptr() to use frame vector infrastructure. When we are doing that there's no need to allocate page array and some code can be simplified. Acked-by: Marek Szyprowski Tested-by: Marek Szyprowski Signed-off-by: Jan Kara --- drivers/media/v4l2-core/videobuf2-dma-contig.c | 21

[PATCH 1/10] [media] vb2: Push mmap_sem down to memops

2015-06-18 Thread Jan Kara
Currently vb2 core acquires mmap_sem just around call to __qbuf_userptr(). However since commit f035eb4e976ef5 (videobuf2: fix lockdep warning) it isn't necessary to acquire it so early as we no longer have to drop queue mutex before acquiring mmap_sem. So push acquisition of mmap_sem down into .ge

[PATCH 9/10] drm/exynos: Convert g2d_userptr_get_dma_addr() to use get_vaddr_frames()

2015-06-18 Thread Jan Kara
Convert g2d_userptr_get_dma_addr() to pin pages using get_vaddr_frames(). This removes the knowledge about vmas and mmap_sem locking from exynos driver. Also it fixes a problem that the function has been mapping user provided address without holding mmap_sem. Signed-off-by: Jan Kara --- drivers/

[PATCH 2/10] mm: Provide new get_vaddr_frames() helper

2015-06-18 Thread Jan Kara
Provide new function get_vaddr_frames(). This function maps virtual addresses from given start and fills given array with page frame numbers of the corresponding pages. If given start belongs to a normal vma, the function grabs reference to each of the pages to pin them in memory. If start belongs

[PATCH 4/10] vb2: Provide helpers for mapping virtual addresses

2015-06-18 Thread Jan Kara
Provide simple helper functions to map virtual address range into an array of pfns / pages. Acked-by: Marek Szyprowski Tested-by: Marek Szyprowski Signed-off-by: Jan Kara --- drivers/media/v4l2-core/videobuf2-memops.c | 58 ++ include/media/videobuf2-memops.h

[PATCH 0/10 v6] Helper to abstract vma handling in media layer

2015-06-18 Thread Jan Kara
Hello, I'm sending the sixth version of my patch series to abstract vma handling from the various media drivers. Since the previous version I have added a patch to move mm helpers into a separate file and behind a config option. I also changed patch pushing mmap_sem down in videobuf2 core to avo

Re: [PATCH 9/9] [media] mm: Move get_vaddr_frames() behind a config option

2015-06-18 Thread Jan Kara
On Wed 10-06-15 09:37:20, Josh Triplett wrote: > On Wed, Jun 10, 2015 at 06:20:52AM -0300, Mauro Carvalho Chehab wrote: > > From: Jan Kara > > > > get_vaddr_frames() is used by relatively rare drivers so hide it and the > > related functions behind a config option that is selected only by > > dri

Re: [PATCH 1/2] media: s5p-mfc: add return value check in mfc_sys_init_cmd

2015-06-18 Thread Kamil Debski
On 3 June 2015 at 11:36, Marek Szyprowski wrote: > alloc_dev_context_buffer method might fail, so add proper return value > check. > > Signed-off-by: Marek Szyprowski Acked-by: Kamil Debski > --- > drivers/media/platform/s5p-mfc/s5p_mfc_cmd_v6.c | 6 +- > 1 file changed, 5 insertions(+),

Re: [PATCH 2/2] media: s5p-mfc: add additional check for incorrect memory configuration

2015-06-18 Thread Kamil Debski
On 3 June 2015 at 11:36, Marek Szyprowski wrote: > MFC hardware is known to trash random memory if one tries to use a > buffer buffer, which has lower DMA addresses than the configured DMA > base address. This patch adds a check for this case and proper error > handling. > > Signed-off-by: Marek S

Re: [git:media_tree/master] [media] vb2: Push mmap_sem down to memops

2015-06-18 Thread Mauro Carvalho Chehab
Hi Jan, Please keep Andrew in the loop. The patch series is on his tree. Regards, Mauro Em Thu, 18 Jun 2015 12:12:08 +0200 Jan Kara escreveu: > On Thu 11-06-15 10:52:22, Hans Verkuil wrote: > > Jan, > > > > This patch causes a regressing in videobuf2-dma-sg with a potential > > deadlock: > >

Re: [PATCH] Revert "[media] vb2: Push mmap_sem down to memops"

2015-06-18 Thread Jan Kara
On Thu 18-06-15 12:45:26, Hans Verkuil wrote: > On 06/18/2015 12:33 PM, Jan Kara wrote: > > On Mon 15-06-15 09:24:55, Hans Verkuil wrote: > >> This reverts commit 48b25a3a713b90988b6882d318f7c0a6bed9aabc. > >> > >> That commit caused two regressions. The first is a BUG: > >> > >> BUG: unable to han

Re: [PATCH] Revert "[media] vb2: Push mmap_sem down to memops"

2015-06-18 Thread Hans Verkuil
On 06/18/2015 12:33 PM, Jan Kara wrote: > On Mon 15-06-15 09:24:55, Hans Verkuil wrote: >> This reverts commit 48b25a3a713b90988b6882d318f7c0a6bed9aabc. >> >> That commit caused two regressions. The first is a BUG: >> >> BUG: unable to handle kernel NULL pointer dereference at 0100 >> I

Re: [PATCH] Revert "[media] vb2: Push mmap_sem down to memops"

2015-06-18 Thread Jan Kara
On Mon 15-06-15 09:24:55, Hans Verkuil wrote: > This reverts commit 48b25a3a713b90988b6882d318f7c0a6bed9aabc. > > That commit caused two regressions. The first is a BUG: > > BUG: unable to handle kernel NULL pointer dereference at 0100 > IP: [] __lock_acquire+0x2f0/0x2070 > PGD 0 > Oo

Re: [git:media_tree/master] [media] vb2: Push mmap_sem down to memops

2015-06-18 Thread Jan Kara
On Thu 11-06-15 10:52:22, Hans Verkuil wrote: > Jan, > > This patch causes a regressing in videobuf2-dma-sg with a potential deadlock: > > [ 82.290231] == > [ 82.290232] [ INFO: possible circular locking dependency detected ] > [ 82.290235