iommu/arm-smmu: prefer stage-1 mappings where we have a choice
authorWill Deacon <will.deacon@arm.com>
Wed, 25 Jun 2014 11:12:41 +0000 (12:12 +0100)
committerWill Deacon <will.deacon@arm.com>
Thu, 3 Jul 2014 14:50:22 +0000 (15:50 +0100)
commit9c5c92e35cf5c4f7ee523d62a6bf9d5dc290350b
tree977fab969cfe52fb9153c05de21bc6d46d4b8a19
parent44680eedf9409daf0fed618ae101f35d1f83d1a4
iommu/arm-smmu: prefer stage-1 mappings where we have a choice

For an SMMU that supports both Stage-1 and Stage-2 mappings (but not
nested translation), then we should prefer stage-1 mappings as we
otherwise rely on the memory attributes of the incoming transactions
for IOMMU_CACHE mappings.

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