]> www.infradead.org Git - users/dwmw2/linux.git/commit
iommu/arm-smmu-v3: Allow setting a S1 domain to a PASID
authorJason Gunthorpe <jgg@nvidia.com>
Tue, 25 Jun 2024 12:37:45 +0000 (09:37 -0300)
committerWill Deacon <will@kernel.org>
Tue, 2 Jul 2024 14:39:48 +0000 (15:39 +0100)
commitf3b273b7c7e42ff7ef5b6063834d768d33c7ba79
treeace120571707ddafbfa1244e4f84b7cb101ad259
parent8ee9175c25827240dd84a7adffbfa9c16938ac5d
iommu/arm-smmu-v3: Allow setting a S1 domain to a PASID

The SVA cleanup made the SSID logic entirely general so all we need to do
is call it with the correct cd table entry for a S1 domain.

This is slightly tricky because of the ASID and how the locking works, the
simple fix is to just update the ASID once we get the right locks.

Tested-by: Nicolin Chen <nicolinc@nvidia.com>
Tested-by: Shameer Kolothum <shameerali.kolothum.thodi@huawei.com>
Reviewed-by: Nicolin Chen <nicolinc@nvidia.com>
Reviewed-by: Jerry Snitselaar <jsnitsel@redhat.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Link: https://lore.kernel.org/r/14-v9-5cd718286059+79186-smmuv3_newapi_p2b_jgg@nvidia.com
Signed-off-by: Will Deacon <will@kernel.org>
drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c
drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.h