iommu/arm-smmu-v3: Test the STE S1DSS functionality
authorJason Gunthorpe <jgg@nvidia.com>
Tue, 25 Jun 2024 12:37:43 +0000 (09:37 -0300)
committerWill Deacon <will@kernel.org>
Tue, 2 Jul 2024 14:39:48 +0000 (15:39 +0100)
commit3b5302cbb06af6b62022360066944a1ff6aea0d1
treec9e2d0be25ff5dc54adddea7d6bfb654e8d71ca1
parentce26ea9e6e12df01432bd2a1cb8cbfa025b8a977
iommu/arm-smmu-v3: Test the STE S1DSS functionality

S1DSS brings in quite a few new transition pairs that are
interesting. Test to/from S1DSS_BYPASS <-> S1DSS_SSID0, and
BYPASS <-> S1DSS_SSID0.

Test a contrived non-hitless flow to make sure that the logic works.

Tested-by: Nicolin Chen <nicolinc@nvidia.com>
Signed-off-by: Michael Shavit <mshavit@google.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/12-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-test.c