From: "Chan Kim" <ckim@etri.re.kr>
To: <kernelnewbies@kernelnewbies.org>
Subject: Use of "iommu-map-mask" for PCIe root complex device tree node, does it make actual requester ID ignored?
Date: Fri, 10 Feb 2023 20:44:14 +0900 [thread overview]
Message-ID: <07e301d93d45$0037e080$00a7a180$@etri.re.kr> (raw)
Hello all,
For pcie RC's iommu, (this iommu translates address for each PCI device dma
masters when they access memory or io in the system), we can set "iommus"
specifier in the device tree node for the PCIe RC. The "iommus" property
generally tells for a bus master devices which iommu device's master
interface it is connected to. (iommu device sits between the interconnect
and the dma master device). For PCIe RC case, we can use RID(requester ID)
from the PCIe device in the iommu processing so that the PCIe devices can
use their own address translation table in the iommu.
I briefly saw 'of_iommu_configure_dev_id' and 'of_map_id' functions and
guessed even if the hardware connects the RID from the PCIe to the iommu
device, if I set 'iommu-map-mask' value to zero, the software sets the iommu
translation table so that the actual RID is not used in the processing. But
I'm not sure if my guess is correct.
Can any one tell me what the case is?
Thank you.
Chan Kim
_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
reply other threads:[~2023-02-10 11:47 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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='07e301d93d45$0037e080$00a7a180$@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;
as well as URLs for NNTP newsgroup(s).