Linux 2.6.39.4 in a AT91SAM9M10G45-EK 10 Mbytes dma buffer allocatiion
Hi
I am running Linux 2.6.39.4 in a AT91SAM9M10G45-EK platfarm. I need to allocate 10 Mbytes dma buffer to capture an image from a CMOS sensor. The board has 128Mbytes of total memory and 110 Mbytes of free memory. Can anybody help me?
Thanks
MArcio
at mm/page_alloc.c:2033 __alloc_pages_nodemask+0x140/0x5f8) ht????? = 19Modules linked in:44;????????????????????????????????????????????? ? ???????????????????????????????????????????????????????????????????????????? ?? ?
fmt.fmt.pix.[] (unwind_backtrace+0x0/0xe4) from [] (warn_sl) pixelformat [] (warn_slowpath_common+0x4c/0x64) from [] (wa) =30314742;?????????????????????????????????????????????????????????????????? ?? ?
f[] (warn_slowpath_null+0x18/0x1c) from [] (__alloc_pages_n) mt.fmt.pix.fiel[] (__alloc_pages_nodemask+0x140/0x5f8) from [d?????? = c72b2[] (__dma_alloc+0x94/0x2d8) from [] (dma_all) cc8????????????????????????????????????????????????????????????????????????? ?? ?
MARCIO[] (dma_alloc_coherent+0x54/0x60) from [] (vb2_dma_co)
: init_mmap: i[] (vb2_dma_contig_alloc+0x38/0xb4) from [] () nit????????????????????????????????????????????????????????????????????????? ?? ?
[] (vb2_reqbufs+0x3b4/0x750) from [] (soc_camera_reqbufs+0x)
[] (soc_camera_reqbufs+0xbc/0x134) from [] (__video_do_ioct)
[] (__video_do_ioctl+0x1de0/0x4a24) from [] (video_usercopy)
[] (video_usercopy+0x358/0x48c) from [] (v4l2_ioctl+0x68/0x)
[] (v4l2_ioctl+0x68/0x114) from [] (vfs_ioctl+0x20/0x3c)?? ?
[] (vfs_ioctl+0x20/0x3c) from [] (do_vfs_ioctl+0x520/0x578)?
[] (do_vfs_ioctl+0x520/0x578) from [] (sys_ioctl+0x34/0x54)?
[] (sys_ioctl+0x34/0x54) from [] (ret_fast_syscall+0x0/0x2c)
---[ end trace acfd933d374f6f12
]---?????????????????????????????????????????? ? atmel_isi atmel_isi.0: dma_alloc_coherent of size 10077696 failed????????????? ?
MARCIO: __vb2_queue_alloc ret=-12????????????????????????????????????????????? ?
MARCIO: __vb2_queue_alloc q->num_buffers=0???????????????????????????????????? ?
MARCIO: vb2_reqbufs req->count=2 ret=0 num_buffers=1?????????????????????????? ?
MARCIO: vb2_reqbufs req->count=2 num_buffers=1 ret=0?????????????????????????? ?
MARCIO:vb2_reqbufs soc_camera_reqbufs ret=-12 icd->vb2_vidq=1? p=1???????????? ?
MARCIO:soc_camera_reqbufs ret=-12????????????????????????????????????????????? ? VIDIOC_REQBUFS error 12, Out of memory
?
?
?
Quoted 11 lines · Marcio Campos de Lima
Hi
I am running Linux 2.6.39.4 in a AT91SAM9M10G45-EK platfarm. I need to allocate 10 Mbytes dma buffer to capture an image from a CMOS sensor. The board has 128Mbytes of total memory and 110 Mbytes of free memory. Can anybody help me?
Thanks
MArcio
10MiB? why that much?
you can not allowcate thar much on dma_alloc_coherent you need to use CMA
Best Regards,
J.
Quoted 51 lines
at
mm/page_alloc.c:2033__alloc_pages_nodemask+0x140/0x5f8) ht????? = 19Modules linked in:44;????????????????????????????????????????????? ? ???????????????????????????????????????????????????????????????????????????? ?? ?
fmt.fmt.pix.[] (unwind_backtrace+0x0/0xe4) from [] (warn_sl) pixelformat [] (warn_slowpath_common+0x4c/0x64) from [] (wa) =30314742;?????????????????????????????????????????????????????????????????? ?? ?
f[] (warn_slowpath_null+0x18/0x1c) from [] (__alloc_pages_n) mt.fmt.pix.fiel[] (__alloc_pages_nodemask+0x140/0x5f8) from [d?????? = c72b2[] (__dma_alloc+0x94/0x2d8) from [] (dma_all) cc8????????????????????????????????????????????????????????????????????????? ?? ?
MARCIO[] (dma_alloc_coherent+0x54/0x60) from [] (vb2_dma_co)
:init_mmap: i[] (vb2_dma_contig_alloc+0x38/0xb4) from [] () nit????????????????????????????????????????????????????????????????????????? ?? ?
[] (vb2_reqbufs+0x3b4/0x750) from [] (soc_camera_reqbufs+0x)
[] (soc_camera_reqbufs+0xbc/0x134) from [] (__video_do_ioct)
[] (__video_do_ioctl+0x1de0/0x4a24) from [] (video_usercopy)
[] (video_usercopy+0x358/0x48c) from [] (v4l2_ioctl+0x68/0x)
[] (v4l2_ioctl+0x68/0x114) from [] (vfs_ioctl+0x20/0x3c)?? ?
[] (vfs_ioctl+0x20/0x3c) from [] (do_vfs_ioctl+0x520/0x578)?
[] (do_vfs_ioctl+0x520/0x578) from [] (sys_ioctl+0x34/0x54)?
[] (sys_ioctl+0x34/0x54) from [] (ret_fast_syscall+0x0/0x2c)---[ end trace acfd933d374f6f12]---?????????????????????????????????????????? ?
atmel_isiatmel_isi.0:dma_alloc_coherentof size 10077696 failed????????????? ?
MARCIO:__vb2_queue_allocret=-12????????????????????????????????????????????? ?
MARCIO:__vb2_queue_allocq->num_buffers=0???????????????????????????????????? ?
MARCIO:vb2_reqbufsreq->count=2 ret=0 num_buffers=1?????????????????????????? ?
MARCIO:vb2_reqbufsreq->count=2 num_buffers=1 ret=0?????????????????????????? ?
MARCIO:vb2_reqbufssoc_camera_reqbufsret=-12 icd->vb2_vidq=1? p=1???????????? ?
MARCIO:soc_camera_reqbufs ret=-12????????????????????????????????????????????? ?VIDIOC_REQBUFSerror 12, Out of memory
?
?
?
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel at lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Thanks Jean
the image takes 10 Mbytes to be stored!
Regards
Marcio
Enviado via iPhone
Em 24/05/2013, ?s 14:19, Jean-Christophe PLAGNIOL-VILLARD <[email protected]> escreveu:
Quoted 75 lines · Marcio Campos de Lima
Quoted 11 lines
Hi
I am running Linux 2.6.39.4 in a AT91SAM9M10G45-EK platfarm. I need to allocate 10 Mbytes dma buffer to capture an image from a CMOS sensor. The board has 128Mbytes of total memory and 110 Mbytes of free memory. Can anybody help me?
Thanks
MArcio10MiB? why that much?
you can not allowcate thar much on
dma_alloc_coherentyou need to use CMABest Regards,
J.Quoted 47 lines
at
mm/page_alloc.c:2033__alloc_pages_nodemask+0x140/0x5f8)
ht = 19Modules linked
in:44;fmt.fmt.pix.[] (
unwind_backtrace+0x0/0xe4) from [] (warn_sl) pixelformat [] (warn_slowpath_common+0x4c/0x64) from [] (wa) =30314742;f[] (
warn_slowpath_null+0x18/0x1c) from [] (__alloc_pages_n)
mt.fmt.pix.fiel[] (__alloc_pages_nodemask+0x140/0x5f8) from [d =
c72b2[] (__dma_alloc+0x94/0x2d8) from [] (dma_all) cc8MARCIO[] (
dma_alloc_coherent+0x54/0x60) from [] (vb2_dma_co) :init_mmap: i[] (vb2_dma_contig_alloc+0x38/0xb4) from [] () nit[] (
vb2_reqbufs+0x3b4/0x750) from [] (soc_camera_reqbufs+0x) [] (soc_camera_reqbufs+0xbc/0x134) from [] (__video_do_ioct) [] (__video_do_ioctl+0x1de0/0x4a24) from [] (video_usercopy) [] (video_usercopy+0x358/0x48c) from [] (v4l2_ioctl+0x68/0x) [] (v4l2_ioctl+0x68/0x114) from [] (vfs_ioctl+0x20/0x3c) [] (vfs_ioctl+0x20/0x3c) from [] (do_vfs_ioctl+0x520/0x578) [] (do_vfs_ioctl+0x520/0x578) from [] (sys_ioctl+0x34/0x54) [] (sys_ioctl+0x34/0x54) from [] (ret_fast_syscall+0x0/0x2c)---[ end trace acfd933d374f6f12]---
atmel_isiatmel_isi.0:dma_alloc_coherentof size 10077696 failed
MARCIO:__vb2_queue_alloc
ret=-12
MARCIO:__vb2_queue_alloc
q->num_buffers=0
MARCIO:vb2_reqbufsreq->count=2 ret=0 num_buffers=1
MARCIO:vb2_reqbufsreq->count=2 num_buffers=1 ret=0
MARCIO:vb2_reqbufssoc_camera_reqbufsret=-12 icd->vb2_vidq=1 p=1
MARCIO:soc_camera_reqbufs
ret=-12VIDIOC_REQBUFSerror 12, Out of memoryQuoted 4 lines
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel at lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel at lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Quoted 3 lines · Marcio Lima
Thanks Jean
the image takes 10 Mbytes to be stored!
what sensor do you use?
4Mpx?
Best Regards,
J.
Quoted 83 lines
Regards
MarcioEnviado via iPhone
Em 24/05/2013, ?s 14:19, Jean-Christophe PLAGNIOL-VILLARD <[email protected]> escreveu:
Quoted 75 lines · Marcio Campos de Lima
Quoted 11 lines
Hi
I am running Linux 2.6.39.4 in a AT91SAM9M10G45-EK platfarm. I need to allocate 10 Mbytes dma buffer to capture an image from a CMOS sensor. The board has 128Mbytes of total memory and 110 Mbytes of free memory. Can anybody help me?
Thanks
MArcio10MiB? why that much?
you can not allowcate thar much on
dma_alloc_coherentyou need to use CMABest Regards,
J.Quoted 47 lines
at
mm/page_alloc.c:2033__alloc_pages_nodemask+0x140/0x5f8)
ht = 19Modules linked
in:44;fmt.fmt.pix.[] (
unwind_backtrace+0x0/0xe4) from [] (warn_sl) pixelformat [] (warn_slowpath_common+0x4c/0x64) from [] (wa) =30314742;f[] (
warn_slowpath_null+0x18/0x1c) from [] (__alloc_pages_n)
mt.fmt.pix.fiel[] (__alloc_pages_nodemask+0x140/0x5f8) from [d =
c72b2[] (__dma_alloc+0x94/0x2d8) from [] (dma_all) cc8MARCIO[] (
dma_alloc_coherent+0x54/0x60) from [] (vb2_dma_co) :init_mmap: i[] (vb2_dma_contig_alloc+0x38/0xb4) from [] () nit[] (
vb2_reqbufs+0x3b4/0x750) from [] (soc_camera_reqbufs+0x) [] (soc_camera_reqbufs+0xbc/0x134) from [] (__video_do_ioct) [] (__video_do_ioctl+0x1de0/0x4a24) from [] (video_usercopy) [] (video_usercopy+0x358/0x48c) from [] (v4l2_ioctl+0x68/0x) [] (v4l2_ioctl+0x68/0x114) from [] (vfs_ioctl+0x20/0x3c) [] (vfs_ioctl+0x20/0x3c) from [] (do_vfs_ioctl+0x520/0x578) [] (do_vfs_ioctl+0x520/0x578) from [] (sys_ioctl+0x34/0x54) [] (sys_ioctl+0x34/0x54) from [] (ret_fast_syscall+0x0/0x2c)---[ end trace acfd933d374f6f12]---
atmel_isiatmel_isi.0:dma_alloc_coherentof size 10077696 failed
MARCIO:__vb2_queue_alloc
ret=-12
MARCIO:__vb2_queue_alloc
q->num_buffers=0
MARCIO:vb2_reqbufsreq->count=2 ret=0 num_buffers=1
MARCIO:vb2_reqbufsreq->count=2 num_buffers=1 ret=0
MARCIO:vb2_reqbufssoc_camera_reqbufsret=-12 icd->vb2_vidq=1 p=1
MARCIO:soc_camera_reqbufs
ret=-12VIDIOC_REQBUFSerror 12, Out of memoryQuoted 4 lines
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel at lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel at lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Quoted 1 line · Marcio
Aptina MTP031
the 9g45 can only be use up to 4Mpx on ISI you use a 5Mpx censor
Best Regards,
J.
Quoted 102 lines
Enviado via iPhone
Em 24/05/2013, ?s 14:37, Jean-Christophe PLAGNIOL-VILLARD <[email protected]> escreveu:
Quoted 97 lines · Marcio Lima
Quoted 4 lines
Thanks Jean
the image takes 10 Mbytes to be stored!
what sensor do you use?
4Mpx?
Best Regards,
J.Quoted 83 lines
Regards
MarcioEnviado via iPhone
Em 24/05/2013, ?s 14:19, Jean-Christophe PLAGNIOL-VILLARD <[email protected]> escreveu:
Quoted 75 lines · Marcio Campos de Lima
Quoted 11 lines
Hi
I am running Linux 2.6.39.4 in a AT91SAM9M10G45-EK platfarm. I need to allocate 10 Mbytes dma buffer to capture an image from a CMOS sensor. The board has 128Mbytes of total memory and 110 Mbytes of free memory. Can anybody help me?
Thanks
MArcio10MiB? why that much?
you can not allowcate thar much on
dma_alloc_coherentyou need to use CMABest Regards,
J.Quoted 47 lines
at
mm/page_alloc.c:2033__alloc_pages_nodemask+0x140/0x5f8)
ht = 19Modules linked
in:44;fmt.fmt.pix.[] (
unwind_backtrace+0x0/0xe4) from [] (warn_sl) pixelformat [] (warn_slowpath_common+0x4c/0x64) from [] (wa) =30314742;f[] (
warn_slowpath_null+0x18/0x1c) from [] (__alloc_pages_n)
mt.fmt.pix.fiel[] (__alloc_pages_nodemask+0x140/0x5f8) from [d =
c72b2[] (__dma_alloc+0x94/0x2d8) from [] (dma_all) cc8MARCIO[] (
dma_alloc_coherent+0x54/0x60) from [] (vb2_dma_co) :init_mmap: i[] (vb2_dma_contig_alloc+0x38/0xb4) from [] () nit[] (
vb2_reqbufs+0x3b4/0x750) from [] (soc_camera_reqbufs+0x) [] (soc_camera_reqbufs+0xbc/0x134) from [] (__video_do_ioct) [] (__video_do_ioctl+0x1de0/0x4a24) from [] (video_usercopy) [] (video_usercopy+0x358/0x48c) from [] (v4l2_ioctl+0x68/0x) [] (v4l2_ioctl+0x68/0x114) from [] (vfs_ioctl+0x20/0x3c) [] (vfs_ioctl+0x20/0x3c) from [] (do_vfs_ioctl+0x520/0x578) [] (do_vfs_ioctl+0x520/0x578) from [] (sys_ioctl+0x34/0x54) [] (sys_ioctl+0x34/0x54) from [] (ret_fast_syscall+0x0/0x2c)---[ end trace acfd933d374f6f12]---
atmel_isiatmel_isi.0:dma_alloc_coherentof size 10077696 failed
MARCIO:__vb2_queue_alloc
ret=-12
MARCIO:__vb2_queue_alloc
q->num_buffers=0
MARCIO:vb2_reqbufsreq->count=2 ret=0 num_buffers=1
MARCIO:vb2_reqbufsreq->count=2 num_buffers=1 ret=0
MARCIO:vb2_reqbufssoc_camera_reqbufsret=-12 icd->vb2_vidq=1 p=1
MARCIO:soc_camera_reqbufs
ret=-12VIDIOC_REQBUFSerror 12, Out of memoryQuoted 4 lines
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel at lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel at lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Aptina MTP031
Enviado via iPhone
Em 24/05/2013, ?s 14:37, Jean-Christophe PLAGNIOL-VILLARD <[email protected]> escreveu:
Quoted 97 lines · Marcio Lima
Quoted 4 lines
Thanks Jean
the image takes 10 Mbytes to be stored!
what sensor do you use?
4Mpx?
Best Regards,
J.Quoted 83 lines
Regards
MarcioEnviado via iPhone
Em 24/05/2013, ?s 14:19, Jean-Christophe PLAGNIOL-VILLARD <[email protected]> escreveu:
Quoted 75 lines · Marcio Campos de Lima
Quoted 11 lines
Hi
I am running Linux 2.6.39.4 in a AT91SAM9M10G45-EK platfarm. I need to allocate 10 Mbytes dma buffer to capture an image from a CMOS sensor. The board has 128Mbytes of total memory and 110 Mbytes of free memory. Can anybody help me?
Thanks
MArcio10MiB? why that much?
you can not allowcate thar much on
dma_alloc_coherentyou need to use CMABest Regards,
J.Quoted 47 lines
at
mm/page_alloc.c:2033__alloc_pages_nodemask+0x140/0x5f8)
ht = 19Modules linked
in:44;fmt.fmt.pix.[] (
unwind_backtrace+0x0/0xe4) from [] (warn_sl) pixelformat [] (warn_slowpath_common+0x4c/0x64) from [] (wa) =30314742;f[] (
warn_slowpath_null+0x18/0x1c) from [] (__alloc_pages_n)
mt.fmt.pix.fiel[] (__alloc_pages_nodemask+0x140/0x5f8) from [d =
c72b2[] (__dma_alloc+0x94/0x2d8) from [] (dma_all) cc8MARCIO[] (
dma_alloc_coherent+0x54/0x60) from [] (vb2_dma_co) :init_mmap: i[] (vb2_dma_contig_alloc+0x38/0xb4) from [] () nit[] (
vb2_reqbufs+0x3b4/0x750) from [] (soc_camera_reqbufs+0x) [] (soc_camera_reqbufs+0xbc/0x134) from [] (__video_do_ioct) [] (__video_do_ioctl+0x1de0/0x4a24) from [] (video_usercopy) [] (video_usercopy+0x358/0x48c) from [] (v4l2_ioctl+0x68/0x) [] (v4l2_ioctl+0x68/0x114) from [] (vfs_ioctl+0x20/0x3c) [] (vfs_ioctl+0x20/0x3c) from [] (do_vfs_ioctl+0x520/0x578) [] (do_vfs_ioctl+0x520/0x578) from [] (sys_ioctl+0x34/0x54) [] (sys_ioctl+0x34/0x54) from [] (ret_fast_syscall+0x0/0x2c)---[ end trace acfd933d374f6f12]---
atmel_isiatmel_isi.0:dma_alloc_coherentof size 10077696 failed
MARCIO:__vb2_queue_alloc
ret=-12
MARCIO:__vb2_queue_alloc
q->num_buffers=0
MARCIO:vb2_reqbufsreq->count=2 ret=0 num_buffers=1
MARCIO:vb2_reqbufsreq->count=2 num_buffers=1 ret=0
MARCIO:vb2_reqbufssoc_camera_reqbufsret=-12 icd->vb2_vidq=1 p=1
MARCIO:soc_camera_reqbufs
ret=-12VIDIOC_REQBUFSerror 12, Out of memoryQuoted 4 lines
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel at lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel at lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel