iommu/arm-smmu: add support for DOMAIN_ATTR_NESTING attribute
authorWill Deacon <will.deacon@arm.com>
Wed, 25 Jun 2014 21:46:31 +0000 (22:46 +0100)
committerWill Deacon <will.deacon@arm.com>
Fri, 14 Nov 2014 14:41:39 +0000 (14:41 +0000)
commitc752ce45b213de8532baaf987ba930638f77c439
treed7f99d2fdb4c231029339e045e277d91c9d1dc56
parent0e7d37adbe45404a76d05d4ef11544f23cf639dd
iommu/arm-smmu: add support for DOMAIN_ATTR_NESTING attribute

When domains are set with the DOMAIN_ATTR_NESTING flag, we must ensure
that we allocate them to stage-2 context banks if the hardware permits
it.

This patch adds support for the attribute to the ARM SMMU driver, with
the actual stage being determined depending on the features supported
by the hardware.

Signed-off-by: Will Deacon <will.deacon@arm.com>
drivers/iommu/arm-smmu.c