V4L2_MEMORY_USERPTR

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

V4L2_MEMORY_USERPTR

1,233 Views
ashokp
Contributor I

We are working on the custom IMX6 board. Below are the details.  

Processor: iMX6 (Quad)

Interface: MIPI CSI-2

Camera: any MIPI CSI-2 based camera sensor

We are passing the buffer from user program to V4l2 using the userptr

For the Linux iMX6, v4l2 support,

  1. Whether the V4L2_MEMORY_USERPTR is been supported?
  2. If so, which kernel version is tested for this feature? Can you provide the link/reference?
  3. Any tested/example code for iMX6 platform?

Thanks,

P.Ashok

Labels (4)
0 Kudos
3 Replies

737 Views
Yuri
NXP Employee
NXP Employee

Hello,

  the following may be helpful V4L2_MEMORY_USERPTR example for iMX6

Have a great day,
Yuri

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

737 Views
ashokp
Contributor I

Thanks for your reply. As per the thread, the userptr is only supported for physically contiguous memory. My question is whether iMX6 supports dis-contiguous userptr as well? Meaning, whether iMX6 can receive the streaming data from camera in memory that is discontiguous? If yes, can you point the relevant section in the iMX6 datasheet?

0 Kudos

737 Views
Yuri
NXP Employee
NXP Employee

Hello,

I think - from performance perspective - it would be better to increase continuous

(DMA) space, say, using "cma=" kernel boot parameter.

Regards,

Yuri.

0 Kudos