Re: CMA usage in driver

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 01/02/2016 10:23 PM, Ran Shalit wrote:
> Hello,
> 
> I made some reading on CMA usage with device driver, nut not quite sure yet.
> Do we need to call dma_declare_contiguous or does it get called from
> within videobuf2 ?
> 
> Is there any example how to use CMA memory in v4l2 driver ?

You don't need to do anything. If the architecture supports cma (ARM does, but I'm
not sure if it is supported for x86_64) and it is enabled in the kernel, then you
have it. All you have to do is to add cma=<memsize> to the kernel options to
reserve CMA memory and when vb2 allocates buffer memory it will automatically use the
CMA memory for it.

Regards,

	Hans

--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux