iommu/arm-smmu-v3: Add explicit feature for nesting
authorRobin Murphy <robin.murphy@arm.com>
Wed, 10 May 2023 15:38:45 +0000 (16:38 +0100)
committerWill Deacon <will@kernel.org>
Thu, 8 Jun 2023 20:58:12 +0000 (21:58 +0100)
commit1d9777b9f3d55b4b6faf186ba4f1d6fb560c0523
tree5e61960c5f579d53f92e58a0eaf855d5e0611d4d
parent309a15cb16bb075da1c99d46fb457db6a1a2669e
iommu/arm-smmu-v3: Add explicit feature for nesting

In certain cases we may want to refuse to allow nested translation even
when both stages are implemented, so let's add an explicit feature for
nesting support which we can control in its own right. For now this
merely serves as documentation, but it means a nice convenient check
will be ready and waiting for the future nesting code.

Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Reviewed-by: Nicolin Chen <nicolinc@nvidia.com>
Link: https://lore.kernel.org/r/136c3f4a3a84cc14a5a1978ace57dfd3ed67b688.1683731256.git.robin.murphy@arm.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