]> www.infradead.org Git - users/jedix/linux-maple.git/commit
iommu/arm-smmu-v3-test: Test masters with stall enabled
authorMostafa Saleh <smostafa@google.com>
Fri, 30 Aug 2024 11:03:48 +0000 (11:03 +0000)
committerWill Deacon <will@kernel.org>
Fri, 30 Aug 2024 15:02:27 +0000 (16:02 +0100)
commit070e326f327a8d32669b5bf9b50a12c2cd8277ff
treeae50d4f15a9e39e8a8ba7a708371bc085560210b
parentce7cb08e22e09f43649b025c849a3ae3b80833c4
iommu/arm-smmu-v3-test: Test masters with stall enabled

At the moment, the SMMUv3 unit tests assume ATS is always enabled,
although this is sufficient to test hitless/non-hitless transitions,
but exercising other features is useful to check ste/cd population
logic (for example the .get_used logic).

Add an enum where bits define features per-master, at the moment there
is only ATS and STALLs which are mutually exclusive, but this would
make it easier to extend with other features in the future.

Also, Add 2 more tests for s1 <-> s2 transitions with stalls enabled.

Signed-off-by: Mostafa Saleh <smostafa@google.com>
Link: https://lore.kernel.org/r/20240830110349.797399-3-smostafa@google.com
Signed-off-by: Will Deacon <will@kernel.org>
drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3-test.c