From: <ckim@etri.re.kr>
To: <kernelnewbies@kernelnewbies.org>
Subject: RE: does dma_alloc_coherent setup iommu page table?
Date: Wed, 29 Sep 2021 17:18:25 +0900 [thread overview]
Message-ID: <008801d7b50a$939cb4a0$bad61de0$@etri.re.kr> (raw)
In-Reply-To: <007201d7b501$bf0a5880$3d1f0980$@etri.re.kr>
[-- 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
prev parent reply other threads:[~2021-09-29 8:18 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-09-29 7:15 does dma_alloc_coherent setup iommu page table? ckim
2021-09-29 8:18 ` ckim [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='008801d7b50a$939cb4a0$bad61de0$@etri.re.kr' \
--to=ckim@etri.re.kr \
--cc=kernelnewbies@kernelnewbies.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox