]> git.baikalelectronics.ru Git - kernel.git/commit
iommu/arm-smmu: Don't BUG() if we find aborting STEs with disable_bypass
authorWill Deacon <will.deacon@arm.com>
Tue, 16 Aug 2016 13:29:16 +0000 (14:29 +0100)
committerWill Deacon <will.deacon@arm.com>
Fri, 19 Aug 2016 08:48:15 +0000 (09:48 +0100)
commit8d5acb247ab775644284710c6d0dd162c00fc021
tree6c06e1eab2c9e960cdee16de2a1a0cba24ce0437
parent9a9da9cf779555fdb5539e4e039056e4ac76f4b9
iommu/arm-smmu: Don't BUG() if we find aborting STEs with disable_bypass

The disable_bypass cmdline option changes the SMMUv3 driver to put down
faulting stream table entries by default, as opposed to bypassing
transactions from unconfigured devices.

In this mode of operation, it is entirely expected to see aborting
entries in the stream table if and when we come to installing a valid
translation, so don't trigger a BUG() as a result of misdiagnosing these
entries as stream table corruption.

Cc: <stable@vger.kernel.org>
Fixes: b726dae4166c ("iommu/arm-smmu: Add initial driver support for ARM SMMUv3 devices")
Tested-by: Robin Murphy <robin.murphy@arm.com>
Reported-by: Robin Murphy <robin.murphy@arm.com>
Reviewed-by: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
drivers/iommu/arm-smmu-v3.c