diff options
author | Robin Murphy <robin.murphy@arm.com> | 2016-09-12 17:13:48 +0100 |
---|---|---|
committer | Will Deacon <will.deacon@arm.com> | 2016-09-16 09:34:18 +0100 |
commit | 21174240e4f4439bb8ed6c116cdbdc03eba2126e (patch) | |
tree | 2498b0d9666a2d8abec99731efc42cc42039bd31 /virt | |
parent | 95fa99aa402ad516ec825057a168f395ece39a2e (diff) |
iommu/arm-smmu: Handle stream IDs more dynamically
Rather than assuming fixed worst-case values for stream IDs and SMR
masks, keep track of whatever implemented bits the hardware actually
reports. This also obviates the slightly questionable validation of SMR
fields in isolation - rather than aborting the whole SMMU probe for a
hardware configuration which is still architecturally valid, we can
simply refuse masters later if they try to claim an unrepresentable ID
or mask (which almost certainly implies a DT error anyway).
Acked-by: Will Deacon <will.deacon@arm.com>
Tested-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'virt')
0 files changed, 0 insertions, 0 deletions