Thread (11 messages) 11 messages, 2 authors, 2011-08-05

Re: mx2_camera driver on mx27ipcam: dma_alloc_coherent size failed

From: Jan Pohanka <hidden>
Date: 2011-08-05 07:21:37

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 640x480 YUV image...

regards
Jan

2011/8/4 Uwe Kleine-König [off-list ref]:
Hello Jan,

On Thu, Aug 04, 2011 at 03:11:11PM +0200, Jan Pohanka wrote:
quoted
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

mx27ipcam_camera_power: 1
mx27ipcam_camera_reset
mx2-camera mx2-camera.0: Camera driver attached to camera 0
mx2-camera mx2-camera.0: dma_alloc_coherent size 614400 failed
mmap error 12, Cannot allocate memory
mx2-camera mx2-camera.0: Camera driver detached from camera 0
mx27ipcam_camera_power: 0
Cannot say offhand. I'd instrument dma_alloc_from_coherent to check
where it fails.

The patch looks OK from a first glance.

Best regards
Uwe

--
Pengutronix e.K.                           | Uwe Kleine-König            |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help