iommu/arm-smmu-v3: Do not ATC invalidate the entire domain
authorJason Gunthorpe <jgg@nvidia.com>
Wed, 27 Mar 2024 18:07:50 +0000 (15:07 -0300)
committerWill Deacon <will@kernel.org>
Tue, 9 Apr 2024 11:38:32 +0000 (12:38 +0100)
commit86e5ca098dd9f8c5b80a6205395aea0535018837
treea08b0634e534cbfda21595c52e22839efcdb4272
parentfdc69d39e77f88264ee6e8174ff9aaf0953aecd9
iommu/arm-smmu-v3: Do not ATC invalidate the entire domain

At this point we know which master we are going to change the PCI config
on, this is the only device we need to invalidate. Switch
arm_smmu_atc_inv_domain() for arm_smmu_atc_inv_master().

Tested-by: Nicolin Chen <nicolinc@nvidia.com>
Tested-by: Shameer Kolothum <shameerali.kolothum.thodi@huawei.com>
Reviewed-by: Michael Shavit <mshavit@google.com>
Reviewed-by: Nicolin Chen <nicolinc@nvidia.com>
Reviewed-by: Moritz Fischer <moritzf@google.com>
Reviewed-by: Mostafa Saleh <smostafa@google.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Link: https://lore.kernel.org/r/4-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.c