CMA: why DMA_ATTR_FORCE_CONTIGUOUS is not used in v4l2 or DRM cma helper

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

 



Hello All

I am looking for the CMA allocator in current kernel, when I check the videobuf2-dma-contig.c and drm_gem_cma_helper.c, they just call dma_alloc_wc()/dma_alloc_attrs() without any flag that request a contiguous pages.
I could hardly find a driver use the flag DMA_ATTR_FORCE_CONTIGUOUS, what I need to do if I want to allocate a CMA and DMA capable buffer for a driver(not all the buffers, because it may have a iommu in a different direction) ?

And anything I could that limit a driver that only allocate the pages for the DMA in a address base(for example only the low 4G memory) ?


Sincerely 
ayaka
_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]

  Powered by Linux