Re: mx2_camera driver on mx27ipcam: dma_alloc_coherent size failed

2011-08-05 Thread Jan Pohanka
Hello Uwe, thank you for the hint. There was problem with insufficient memory. dma_alloc_from_coherent is called several times and when I allocated only 4MB, last call failed. When I passed 8MB to dma_declare_coherent_memory, it works. Unfortunately I do not understand why 4MB is not enough for

Re: mx2_camera driver on mx27ipcam: dma_alloc_coherent size failed

2011-08-05 Thread Uwe Kleine-König
Hello Jan, On Fri, Aug 05, 2011 at 09:21:36AM +0200, Jan Pohanka wrote: Hello Uwe, thank you for the hint. There was problem with insufficient memory. dma_alloc_from_coherent is called several times and when I allocated only 4MB, last call failed. When I passed 8MB to

Re: mx2_camera driver on mx27ipcam: dma_alloc_coherent size failed

2011-08-04 Thread Jan Pohanka
Dear Uwe, could you please give me some advice once more? It seems I'm not able to make mx2_camera working by myself. I have tried dma memory allocation in my board file in several ways, but nothing seems to work. I use Video capture example for v4l2 for testing. regards Jan

Re: mx2_camera driver on mx27ipcam: dma_alloc_coherent size failed

2011-08-04 Thread Uwe Kleine-König
Hello Jan, On Thu, Aug 04, 2011 at 03:11:11PM +0200, Jan Pohanka wrote: Dear Uwe, could you please give me some advice once more? It seems I'm not able to make mx2_camera working by myself. I have tried dma memory allocation in my board file in several ways, but nothing seems to work. I use

Re: mx2_camera driver on mx27ipcam: dma_alloc_coherent size failed

2011-08-01 Thread Jan Pohanka
Hello Uwe, thank you for the answer again, but I'm still in troubles... Here is the code from my mach-imx27ipcam.c regarding camera initialization and DMESG messages I got. The initialization is almost the same as in pcm037 as you adviced. static int mx27ipcam_camera_power(struct device

mx2_camera driver on mx27ipcam: dma_alloc_coherent size failed

2011-07-29 Thread Jan Pohanka
Dear all, I'm playing with imx27ipcam reference design and I would like to use more recent (or actual) kernel than the one in BSP (2.6.19). I had no problems with running 2.6.39 version from mainline, and now I want to get some signal from CMOS chip. As there is no driver for mt9d131 yet I

Re: mx2_camera driver on mx27ipcam: dma_alloc_coherent size failed

2011-07-29 Thread Uwe Kleine-König
Hello, On Fri, Jul 29, 2011 at 09:31:28AM +0200, Jan Pohanka wrote: I'm playing with imx27ipcam reference design and I would like to use more recent (or actual) kernel than the one in BSP (2.6.19). I had no problems with running 2.6.39 version from mainline, and now I want to get some signal

Re: mx2_camera driver on mx27ipcam: dma_alloc_coherent size failed

2011-07-29 Thread Jan Pohanka
Hi Uwe, thank you for answer. You are right I give no memory to camera device in mach-imx27ipcam.c. I have tried to do it in same way as it is in mach-pcm037.c but no success. Here is my init function static int __init mx27ipcam_camera_init(void) { int dma, ret = -ENOMEM;

Re: mx2_camera driver on mx27ipcam: dma_alloc_coherent size failed

2011-07-29 Thread Uwe Kleine-König
Hi Jan, On Fri, Jul 29, 2011 at 10:59:55AM +0200, Jan Pohanka wrote: thank you for answer. You are right I give no memory to camera device in mach-imx27ipcam.c. I have tried to do it in same way as it is in mach-pcm037.c but no success. Here is my init function static int __init

Re: mx2_camera driver on mx27ipcam: dma_alloc_coherent size failed

2011-07-29 Thread Jan Pohanka
Dear Uwe, which repository should I search 90026c8c823bff54172eab33a5e7fcecfd3df635 in? I have not found it in git.pengutronix.de/git/imx/linux-2.6.git nor in vanilla sources. regards Jan Dne Fri, 29 Jul 2011 11:23:12 +0200 Uwe Kleine-König u.kleine-koe...@pengutronix.de napsal(a): Hi

Re: mx2_camera driver on mx27ipcam: dma_alloc_coherent size failed

2011-07-29 Thread Uwe Kleine-König
Hello Jan, On Fri, Jul 29, 2011 at 12:14:09PM +0200, Jan Pohanka wrote: which repository should I search 90026c8c823bff54172eab33a5e7fcecfd3df635 in? I have not found it in git.pengutronix.de/git/imx/linux-2.6.git nor in vanilla sources. Seems my copy'n'paste foo isn't optimal. Commit