iommu/arm-smmu: Allow disabling unmatched stream bypass
authorRobin Murphy <robin.murphy@arm.com>
Wed, 10 Feb 2016 14:25:33 +0000 (14:25 +0000)
committerWill Deacon <will.deacon@arm.com>
Thu, 18 Feb 2016 15:02:44 +0000 (15:02 +0000)
commit25a1c96cd22c949b50d6f0269c23e1c5cb55e5a5
tree95a556472ac169eb8e314f7394ffac56a6ea73d8
parent45bb966d3dc7c6d4f0bd7673b5fe51deebcaf70b
iommu/arm-smmu: Allow disabling unmatched stream bypass

Borrow the disable_bypass parameter from the SMMUv3 driver as a handy
debugging/security feature so that unmatched stream IDs (i.e. devices
not attached to an IOMMU domain) may be configured to fault.

Rather than introduce unsightly inconsistency, or repeat the existing
unnecessary use of module_param_named(), fix that as well in passing.

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