On 2025/6/11 18:46, Duan, Zhenzhong wrote:
-----Original Message-----
From: Liu, Yi L <yi.l....@intel.com>
Subject: Re: [PATCH v1 05/15] intel_iommu: Introduce two helpers
vtd_as_from/to_iommu_pasid_locked
On 2025/6/6 18:04, Zhenzhong Duan wrote:
We already have vtd_find_add_as() to find an AS from BDF+pasid, but this
pasid is passed from PCI subsystem. PCI device supports two request types,
Requests-without-PASID and Requests-with-PASID. Requests-without-PASID
doesn't include a PASID TLP prefix, IOMMU fetches rid_pasid from context
entry and use it as IOMMU's pasid to index pasid table.
When reading the first line, it makes me thinking why need the helpers
since there is already a helper to find. The key is the later part. We need
to translate the PCI_NO_PASID to ridpasid.
OK, presume you want me to delete first line.
Let me know if you mean not.
yes. :)
Regards,
Yi Liu