does dma_alloc_coherent setup iommu page table?

ckim at ckim at
Wed Sep 29 04:18:25 EDT 2021

I realized the IOMMU mapping is done with dma_alloc_  or dma_map_..

It's so basic (I have read ) but I forgot.


Chan Kim


From: ckim at <ckim at> 
Sent: Wednesday, September 29, 2021 4:15 PM
To: kernelnewbies at
Subject: does dma_alloc_coherent setup iommu page table?


Hello all,

When the driver calls dma_alloc_coherent for a device, and if the device
uses iommu, is the table entry for the iommu setup for the dma_handle?

Seeing the struct device has something related to iommu, I guess so..

Any help appreciated.


Chan Kim

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the Kernelnewbies mailing list