]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
iommu/arm-smmu-v3: Do not allow a SVA domain to be set on the wrong PASID
authorJason Gunthorpe <jgg@nvidia.com>
Wed, 27 Mar 2024 18:07:49 +0000 (15:07 -0300)
committerWill Deacon <will@kernel.org>
Tue, 9 Apr 2024 11:38:32 +0000 (12:38 +0100)
commitfdc69d39e77f88264ee6e8174ff9aaf0953aecd9
treea1209134ea0792f16e57af47492955540761987f
parent734554fdfce6731b22f0777ec3f1e4a853354883
iommu/arm-smmu-v3: Do not allow a SVA domain to be set on the wrong PASID

The SVA code is wired to assume that the SVA is programmed onto the
mm->pasid. The current core code always does this, so it is fine.

Add a check for clarity.

Tested-by: Nicolin Chen <nicolinc@nvidia.com>
Tested-by: Shameer Kolothum <shameerali.kolothum.thodi@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Link: https://lore.kernel.org/r/3-v6-228e7adf25eb+4155-smmuv3_newapi_p2_jgg@nvidia.com
Signed-off-by: Will Deacon <will@kernel.org>
drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3-sva.c