summaryrefslogtreecommitdiffstats
path: root/drivers/iommu/iommu-sva-lib.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* iommu/sva: Add PASID helpersJean-Philippe Brucker2020-11-231-0/+86
Let IOMMU drivers allocate a single PASID per mm. Store the mm in the IOASID set to allow refcounting and searching mm by PASID, when handling an I/O page fault. Signed-off-by: Jean-Philippe Brucker <jean-philippe@linaro.org> Reviewed-by: Lu Baolu <baolu.lu@linux.intel.com> Link: https://lore.kernel.org/r/20201106155048.997886-3-jean-philippe@linaro.org Signed-off-by: Will Deacon <will@kernel.org>