* does dma_alloc_coherent setup iommu page table?
@ 2021-09-29 7:15 ckim
2021-09-29 8:18 ` ckim
0 siblings, 1 reply; 2+ messages in thread
From: ckim @ 2021-09-29 7:15 UTC (permalink / raw)
To: kernelnewbies
[-- Attachment #1.1: Type: text/plain, Size: 270 bytes --]
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.
Thanks!
Chan Kim
[-- Attachment #1.2: Type: text/html, Size: 2436 bytes --]
[-- Attachment #2: Type: text/plain, Size: 170 bytes --]
_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
^ permalink raw reply [flat|nested] 2+ messages in thread
* RE: does dma_alloc_coherent setup iommu page table?
2021-09-29 7:15 does dma_alloc_coherent setup iommu page table? ckim
@ 2021-09-29 8:18 ` ckim
0 siblings, 0 replies; 2+ messages in thread
From: ckim @ 2021-09-29 8:18 UTC (permalink / raw)
To: kernelnewbies
[-- Attachment #1.1: Type: text/plain, Size: 646 bytes --]
I realized the IOMMU mapping is done with dma_alloc_ or dma_map_..
It's so basic (I have read
https://www.kernel.org/doc/Documentation/DMA-API-HOWTO.txt ) but I forgot.
Thanks!
Chan Kim
From: ckim@etri.re.kr <ckim@etri.re.kr>
Sent: Wednesday, September 29, 2021 4:15 PM
To: kernelnewbies@kernelnewbies.org
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.
Thanks!
Chan Kim
[-- Attachment #1.2: Type: text/html, Size: 4100 bytes --]
[-- Attachment #2: Type: text/plain, Size: 170 bytes --]
_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-09-29 8:18 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-09-29 7:15 does dma_alloc_coherent setup iommu page table? ckim
2021-09-29 8:18 ` ckim
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox