[PATCH v3 3/5] iommu: Add iommu_get_domain_for_dev_locked() helper
Jason Gunthorpe
jgg at nvidia.com
Fri Aug 22 06:21:38 PDT 2025
On Fri, Aug 22, 2025 at 09:45:28AM +0000, Tian, Kevin wrote:
> Thanks for the background. btw is it technically impossible or just
> not worth of the extra software complexity for no value?
Unsupported by HW. It cannot mix S2 and S1 formats on
SSIDs. If SSID is in use then all must be S1.
> e.g. if maintaining two page tables (S1/S2 formats) with exact same
> mappings, does SMMU allow smooth transition between two modes w/o
> breaking in-fly DMAs?
It could and there is SW support for that..
> but probably keeping two page tables in-sync in transition is
> already a problem w/o proper locking in map/unmap...
Yes, plus the doubling the memory. It is not worthwile there is really
very little advantange to the S2 format.
Jason
More information about the Linux-mediatek
mailing list