]> www.infradead.org Git - users/jedix/linux-maple.git/commit
iommu/io-pgtable-arm: Add coverage for different OAS in selftest
authorMostafa Saleh <smostafa@google.com>
Mon, 2 Dec 2024 14:06:04 +0000 (14:06 +0000)
committerWill Deacon <will@kernel.org>
Mon, 9 Dec 2024 23:53:19 +0000 (23:53 +0000)
commit376ce8b35ed15d5deee57bdecd8449f6a4df4c42
tree56feb0b9575a7ef3bd7a06af037a2622d50c43f6
parent4dcac8407fe1be21990f356e2e8d8309ba63e346
iommu/io-pgtable-arm: Add coverage for different OAS in selftest

Run selftests with different OAS values intead of hardcoding it to 48
bits.

We always keep OAS >= IAS to make the config valid for stage-2.

This can be further improved, if we split IAS/OAS configuration for
stage-1 and stage-2 (to use input sizes compatible with VA_BITS as
SMMUv3 does, or IAS > OAS which is valid for stage-1).

However, that adds more complexity, and the current change improves
coverage and makes it possible to test all concatenation cases.

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