Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Qualcomm feedback] 7.1.1. IOMMU Registration and Setup #82

Closed
jyao1 opened this issue Jan 31, 2024 · 8 comments
Closed

[Qualcomm feedback] 7.1.1. IOMMU Registration and Setup #82

jyao1 opened this issue Jan 31, 2024 · 8 comments
Labels

Comments

@jyao1
Copy link
Collaborator

jyao1 commented Jan 31, 2024

Reference: https://lists.riscv.org/g/tech-ap-tee-io/topic/103498833#47

The term instance is generally confusing, I think it is referring to the logical instance. Should be reworded in concert with the iommu spec

@sameo
Copy link
Collaborator

sameo commented Mar 15, 2024

The term is aligned with the Smmtt spec, where the concept of multiple IOMMU instances per platform/system is introduced.

@ozkoyuncu Any suggestions for a better wording?

@ozkoyuncu
Copy link

Here I think the intention is not to associate a "IOMMU instance" (because instance in general imply a physical instantiation of a IOMMU HW IP) with a TSM but rather have a dedicated device context in the IOMMU for the supervisor domain. My suggestion is to use "device context", I think this is the term in IOMMU specification or "translation context". The idea is to associate the full control of the translation for that transaction stream with a particular supervisor domain.

@sameo
Copy link
Collaborator

sameo commented Mar 18, 2024

Here I think the intention is not to associate a "IOMMU instance" (because instance in general imply a physical instantiation of a IOMMU HW IP) with a TSM but rather have a dedicated device context in the IOMMU for the supervisor domain.

I don't think giving a dedicated device context to a TSM would be enough as configuration for this context would be exclusively controlled by whoever has the IOMMU programming interface mapped to its address space, which is typically the host SDSM.

An IOMMU instance is not necessarily a physical instantiation of an IOMMU, but it could be a hardware defined separation of a single IOMMU instance a la SRIOV. The fundamental requirement here is that a TSM to which a device is bound to must have exclusive control over the instance programming interface, and that must be MTT enforced.

@sameo
Copy link
Collaborator

sameo commented Apr 2, 2024

I propose that we fix that one through #108.

@ozkoyuncu
Copy link

Here I think the intention is not to associate a "IOMMU instance" (because instance in general imply a physical instantiation of a IOMMU HW IP) with a TSM but rather have a dedicated device context in the IOMMU for the supervisor domain.

I don't think giving a dedicated device context to a TSM would be enough as configuration for this context would be exclusively controlled by whoever has the IOMMU programming interface mapped to its address space, which is typically the host SDSM.

An IOMMU instance is not necessarily a physical instantiation of an IOMMU, but it could be a hardware defined separation of a single IOMMU instance a la SRIOV. The fundamental requirement here is that a TSM to which a device is bound to must have exclusive control over the instance programming interface, and that must be MTT enforced.

Agreed, in that case articulating "exclusive control" of the programming interface may suffice. it is important to list the requirements - and to clarify the term "instance" as it correlates to such requirements and maybe refer to examples of how they can be achieved.
so our original question is answered, it is a matter of further clarification for wider audience

@sameo
Copy link
Collaborator

sameo commented Apr 18, 2024

@ozkoyuncu We just merged #111 and I think this addresses this issue. Let me know if that's the case and we will close that issue.

@ozkoyuncu
Copy link

@sameo I have read the clarification and it lgtm. thanks

@sameo
Copy link
Collaborator

sameo commented Apr 18, 2024

Fixed with #111

@sameo sameo closed this as completed Apr 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants