<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div dir="ltr"><span></span></div><div dir="ltr">Hello All<div><br></div><div>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.</div><div>I could hardly find a driver use the flag <span style="font-size: 12pt; font-family: Helvetica;">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) ?</span></div><div><span style="font-size: 12pt; font-family: Helvetica;"><br></span></div><div><span style="font-size: 12pt; font-family: Helvetica;">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) ?</span></div><div><span style="font-size: 12pt; font-family: Helvetica;"><br></span></div><div><span style="font-size: 12pt; font-family: Helvetica;"><br></span></div><div><span style="font-size: 12pt; font-family: Helvetica;">Sincerely </span></div><div><font face="Helvetica"><span style="font-size: 16px;">ayaka</span></font></div></div></body></html>