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 j...@suse.cz 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

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 j...@suse.cz 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 handle kernel NULL

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 m.szyprow...@samsung.com 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.

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 m.szyprow...@samsung.com wrote: alloc_dev_context_buffer method might fail, so add proper return value check. Signed-off-by: Marek Szyprowski m.szyprow...@samsung.com Acked-by: Kamil Debski ka...@wypas.org ---

[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

[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 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 m.szyprow...@samsung.com Tested-by: Marek Szyprowski m.szyprow...@samsung.com Signed-off-by: Jan Kara j...@suse.cz ---

[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 m.szyprow...@samsung.com Tested-by: Marek Szyprowski m.szyprow...@samsung.com Signed-off-by: Jan Kara j...@suse.cz --- drivers/media/v4l2-core/videobuf2-dma-sg.c | 95 +- 1 file changed, 15 insertions(+), 80 deletions(-) diff --git

[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 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:

[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 m.szyprow...@samsung.com Tested-by: Marek Szyprowski m.szyprow...@samsung.com Signed-off-by: Jan Kara

[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 m.szyprow...@samsung.com Tested-by: Marek Szyprowski m.szyprow...@samsung.com Signed-off-by: Jan Kara

[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

[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 j...@suse.cz

[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

[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 m.szyprow...@samsung.com Tested-by: Marek Szyprowski m.szyprow...@samsung.com Signed-off-by: Jan Kara j...@suse.cz --- drivers/media/v4l2-core/videobuf2-memops.c | 58

[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

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 hverk...@xs4all.nl Signed-off-by: Mauro Carvalho Chehab mche...@osg.samsung.com --- drivers/media/usb/au0828/au0828-video.c |

[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 hverk...@xs4all.nl Signed-off-by: Mauro Carvalho Chehab mche...@osg.samsung.com diff --git a/drivers/media/usb/au0828/au0828-cards.c b/drivers/media/usb/au0828/au0828-cards.c index

[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 hverk...@xs4all.nl Signed-off-by: Mauro Carvalho Chehab mche...@osg.samsung.com --- drivers/media/usb/au0828/au0828-video.c | 37 ++---

[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

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

[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:

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 hverk...@xs4all.nl Signed-off-by: Mauro Carvalho Chehab mche...@osg.samsung.com Acked-by: Hans Verkuil hans.verk...@cisco.com

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,

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 j.anaszew...@samsung.com 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

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 atsushi.akatsuka...@hitachi.com 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

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 dhobs...@igel.co.jp 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

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_MASK

[PATCH] [media] mantis: cleanup a warning

2015-06-18 Thread Mauro Carvalho Chehab
Signed-off-by: Mauro Carvalho Chehab mche...@osg.samsung.com 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

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 hverk...@xs4all.nl 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 hans.verk...@cisco.com diff --git

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 da...@hardeman.nu escreveu: On 2015-05-23 13:34, Antti Seppälä wrote: On 22 May 2015 at 13:33, David Härdeman da...@hardeman.nu wrote: On 2015-05-22 07:27, Antti Seppälä wrote: I think that approach too is far from perfect as it leaves us

[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

[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

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/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 dhobs...@igel.co.jp Make sure that

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]

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: [810d5cd0] __lock_acquire+0x2f0/0x2070

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 IP: