[PATCH] [media] drxd: Use kmemdup rather than duplicating its implementation

2011-11-18 Thread Thomas Meyer
The semantic patch that makes this change is available in scripts/coccinelle/api/memdup.cocci. Signed-off-by: Thomas Meyer tho...@m3y3r.de --- diff -u -p a/drivers/media/dvb/frontends/drxd_hard.c b/drivers/media/dvb/frontends/drxd_hard.c --- a/drivers/media/dvb/frontends/drxd_hard.c 2011-11-07

[PATCH] [media] dw2102: Use kmemdup rather than duplicating its implementation

2011-11-18 Thread Thomas Meyer
The semantic patch that makes this change is available in scripts/coccinelle/api/memdup.cocci. Signed-off-by: Thomas Meyer tho...@m3y3r.de --- diff -u -p a/drivers/media/dvb/dvb-usb/dw2102.c b/drivers/media/dvb/dvb-usb/dw2102.c --- a/drivers/media/dvb/dvb-usb/dw2102.c 2011-11-07

[PATCH] [media] v4l: Casting (void *) value returned by kmalloc is useless

2011-11-18 Thread Thomas Meyer
The semantic patch that makes this change is available in scripts/coccinelle/api/alloc/drop_kmalloc_cast.cocci. Signed-off-by: Thomas Meyer tho...@m3y3r.de --- diff -u -p a/drivers/media/video/vino.c b/drivers/media/video/vino.c --- a/drivers/media/video/vino.c 2011-11-07 19:37:51.673341747

[PATCH] [media] cx25821: Use kmemdup rather than duplicating its implementation

2011-11-18 Thread Thomas Meyer
The semantic patch that makes this change is available in scripts/coccinelle/api/memdup.cocci. Signed-off-by: Thomas Meyer tho...@m3y3r.de --- diff -u -p a/drivers/media/video/cx25821/cx25821-audio-upstream.c b/drivers/media/video/cx25821/cx25821-audio-upstream.c ---

[PATCH] [media] pwc: Use kmemdup rather than duplicating its implementation

2011-11-18 Thread Thomas Meyer
The semantic patch that makes this change is available in scripts/coccinelle/api/memdup.cocci. Signed-off-by: Thomas Meyer tho...@m3y3r.de --- diff -u -p a/drivers/media/video/pwc/pwc-ctrl.c b/drivers/media/video/pwc/pwc-ctrl.c --- a/drivers/media/video/pwc/pwc-ctrl.c 2011-11-07

Re: [PATCH v5 2/2] as3645a: Add driver for LED flash controller

2011-11-18 Thread Laurent Pinchart
Hi Andy, On Wednesday 16 November 2011 15:35:18 Andy Shevchenko wrote: On Wed, 2011-11-16 at 15:10 +0100, Laurent Pinchart wrote: This patch adds the driver for the as3645a LED flash controller. This controller supports a high power led in flash and torch modes and an indicator light,

Re: [PATCH] MEM2MEM: Add support for eMMa-PrP mem2mem operations.

2011-11-18 Thread Sylwester Nawrocki
Hi Javier, Good to see non Samsung device using v4l2 mem-to-mem framework. What is your experience, have you encountered any specific problems with it ? And just out of curiosity, are you planning to develop video codec driver in v4l2 for i.MX27 as well ? I have a few comments, please see

Re: [PATCH] MEM2MEM: Add support for eMMa-PrP mem2mem operations.

2011-11-18 Thread javier Martin
Hi Sylwester, thank you for your review. On 18 November 2011 17:07, Sylwester Nawrocki snj...@gmail.com wrote: Hi Javier, Good to see non Samsung device using v4l2 mem-to-mem framework. What is your experience, have you encountered any specific problems with it ? I've found the framework

[PATCH 10/11] ARM: integrate CMA with DMA-mapping subsystem

2011-11-18 Thread Marek Szyprowski
This patch adds support for CMA to dma-mapping subsystem for ARM architecture. By default a global CMA area is used, but specific devices are allowed to have their private memory areas if required (they can be created with dma_declare_contiguous() function during board initialization). Contiguous

[PATCH 05/11] mm: page_alloc: introduce alloc_contig_range()

2011-11-18 Thread Marek Szyprowski
From: Michal Nazarewicz min...@mina86.com This commit adds the alloc_contig_range() function which tries to allocate given range of pages. It tries to migrate all already allocated pages that fall in the range thus freeing them. Once all pages in the range are freed they are removed from the

[PATCH 07/11] mm: page_isolation: MIGRATE_CMA isolation functions added

2011-11-18 Thread Marek Szyprowski
From: Michal Nazarewicz min...@mina86.com This commit changes various functions that change pages and pageblocks migrate type between MIGRATE_ISOLATE and MIGRATE_MOVABLE in such a way as to allow to work with MIGRATE_CMA migrate type. Signed-off-by: Michal Nazarewicz min...@mina86.com

[PATCH 11/11] ARM: Samsung: use CMA for 2 memory banks for s5p-mfc device

2011-11-18 Thread Marek Szyprowski
Replace custom memory bank initialization using memblock_reserve and dma_declare_coherent with a single call to CMA's dma_declare_contiguous. Signed-off-by: Marek Szyprowski m.szyprow...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com --- arch/arm/plat-s5p/dev-mfc.c | 51

[PATCH 06/11] mm: mmzone: MIGRATE_CMA migration type added

2011-11-18 Thread Marek Szyprowski
From: Michal Nazarewicz min...@mina86.com The MIGRATE_CMA migration type has two main characteristics: (i) only movable pages can be allocated from MIGRATE_CMA pageblocks and (ii) page allocator will never change migration type of MIGRATE_CMA pageblocks. This guarantees (to some degree) that

[PATCH 03/11] mm: mmzone: introduce zone_pfn_same_memmap()

2011-11-18 Thread Marek Szyprowski
From: Michal Nazarewicz min...@mina86.com This commit introduces zone_pfn_same_memmap() function which checkes whether two PFNs within the same zone have struct pages within the same memmap. This check is needed because in general pointer arithmetic on struct pages may lead to invalid pointers.

[PATCH 02/11] mm: compaction: introduce isolate_{free,migrate}pages_range().

2011-11-18 Thread Marek Szyprowski
From: Michal Nazarewicz min...@mina86.com This commit introduces isolate_freepages_range() and isolate_migratepages_range() functions. The first one replaces isolate_freepages_block() and the second one extracts functionality from isolate_migratepages(). They are more generic and instead of

[PATCH 08/11] drivers: add Contiguous Memory Allocator

2011-11-18 Thread Marek Szyprowski
The Contiguous Memory Allocator is a set of helper functions for DMA mapping framework that improves allocations of contiguous memory chunks. CMA grabs memory on system boot, marks it with CMA_MIGRATE_TYPE and gives back to the system. Kernel is allowed to allocate movable pages within CMA's

[PATCHv17 0/11] Contiguous Memory Allocator

2011-11-18 Thread Marek Szyprowski
Welcome everyone once again, This is yet another release of the Contiguous Memory Allocator patches. This version is mainly a result of the discussion on Kernel Summit in Prague. The main change is completely different code base for the migration feature of the CMA. Now it shares the code with

[PATCH 09/11] X86: integrate CMA with DMA-mapping subsystem

2011-11-18 Thread Marek Szyprowski
This patch adds support for CMA to dma-mapping subsystem for x86 architecture that uses common pci-dma/pci-nommu implementation. This allows to test CMA on KVM/QEMU and a lot of common x86 boxes. Signed-off-by: Marek Szyprowski m.szyprow...@samsung.com Signed-off-by: Kyungmin Park

[PATCH 04/11] mm: compaction: export some of the functions

2011-11-18 Thread Marek Szyprowski
From: Michal Nazarewicz min...@mina86.com This commit exports some of the functions from compaction.c file outside of it adding their declaration into internal.h header file so that other mm related code can use them. This forced compaction.c to always be compiled (as opposed to being compiled

[PATCH 01/11] mm: page_alloc: handle MIGRATE_ISOLATE in free_pcppages_bulk()

2011-11-18 Thread Marek Szyprowski
From: Michal Nazarewicz min...@mina86.com If page is on PCP list while pageblock it belongs to gets isolated, the page's private still holds the old migrate type. This means that free_pcppages_bulk() will put the page on a freelist of the old migrate type instead of MIGRATE_ISOLATE. This commit

Mygica U6012B support

2011-11-18 Thread M Eaton
I recently purchased a Mygica U6012B hybrid ATSC usb tuner, and made an attempt at adding support. It has the following chips (by visual inspection): CX23102 CX24227 TDA18271 I based the GPIO and memory address on the inf file that came with the tuner:

cron job: media_tree daily build: ERRORS

2011-11-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 Nov 18 19:00:19 CET 2011 git hash:e9eb0dadba932940f721f9d27544a7818b2fa1c5 gcc version: i686-linux-gcc

[PATCH] go7007: Fix 2250 urb type

2011-11-18 Thread Pete Eberlein
commit a846d8fce9e8be30046be3c512982bd0345e7015 Author: Pete Eberlein p...@sensoray.com Date: Fri Nov 18 10:00:15 2011 -0800 go7007: Fix 2250 urb type The 2250 board uses bulk endpoint for interrupt handling, and should use a bulk urb instead of an int urb. Signed-off-by: Pete Eberlein

Re: [Linaro-mm-sig] [PATCHv17 0/11] Contiguous Memory Allocator

2011-11-18 Thread sandeep patil
On Fri, Nov 18, 2011 at 8:43 AM, Marek Szyprowski m.szyprow...@samsung.com wrote: Welcome everyone once again, Please notice that this patch series is aimed to start further discussion. There are still few issues that need to be resolved before CMA will be really ready. The most hot problem

Re: [Linaro-mm-sig] [PATCHv17 0/11] Contiguous Memory Allocator

2011-11-18 Thread Michal Nazarewicz
On Fri, 18 Nov 2011 22:20:48 +0100, sandeep patil psandee...@gmail.com wrote: I am running a simple test to allocate contiguous regions and write a log on in a file on sdcard simultaneously. I can reproduce this migration failure 100% times with it. when I tracked the pages that failed to

Re: [PATCH] MEM2MEM: Add support for eMMa-PrP mem2mem operations.

2011-11-18 Thread Robert Schwebel
On Fri, Nov 18, 2011 at 05:27:12PM +0100, javier Martin wrote: But yes, it could be possible. AFAIK, Sascha Hauer (added to CC) has a prototype driver for this one though. Yes, we have indeed a prototype for the VPU, both on MX27 and MX53. However, it wasn't changed to a mem2mem device yet,

Re: [Linaro-mm-sig] [PATCHv17 0/11] Contiguous Memory Allocator

2011-11-18 Thread sandeep patil
2011/11/18 Michal Nazarewicz min...@mina86.com: On Fri, 18 Nov 2011 22:20:48 +0100, sandeep patil psandee...@gmail.com wrote: I am running a simple test to allocate contiguous regions and write a log on in a file on sdcard simultaneously. I can reproduce this migration failure 100% times

[PATCH] omap3isp: Prevent pipelines that contain a crashed entity from starting

2011-11-18 Thread Laurent Pinchart
The OMAP3 ISP preview engine will violate the L4 bus protocol if we try to write some of its internal registers after it failed to stop properly. This generates an external abort on non-linefetch fault, triggering a fatal kernel oops. We can't always prevent preview engine stop failures (they can