]> asedeno.scripts.mit.edu Git - linux.git/commit
iommu/arm-smmu: Add global SMR masking property
authorRobin Murphy <robin.murphy@arm.com>
Fri, 31 Mar 2017 11:03:33 +0000 (12:03 +0100)
committerWill Deacon <will.deacon@arm.com>
Thu, 6 Apr 2017 15:06:43 +0000 (16:06 +0100)
commit56fbf600dd8e2f32a5317437fe310b56719f7d2b
tree625b33270215c8ac908a8904cdb44d5573f731f3
parent8513c89300696a68963cc504c21d034c6369e183
iommu/arm-smmu: Add global SMR masking property

The current SMR masking support using a 2-cell iommu-specifier is
primarily intended to handle individual masters with large and/or
complex Stream ID assignments; it quickly gets a bit clunky in other SMR
use-cases where we just want to consistently mask out the same part of
every Stream ID (e.g. for MMU-500 configurations where the appended TBU
number gets in the way unnecessarily). Let's add a new property to allow
a single global mask value to better fit the latter situation.

Acked-by: Mark Rutland <mark.rutland@arm.com>
Tested-by: Nipun Gupta <nipun.gupta@nxp.com>
Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Documentation/devicetree/bindings/iommu/arm,smmu.txt
drivers/iommu/arm-smmu.c