iommu/arm-smmu: Report USF more clearly
authorRobin Murphy <robin.murphy@arm.com>
Tue, 17 Sep 2019 14:45:34 +0000 (15:45 +0100)
committerWill Deacon <will@kernel.org>
Tue, 1 Oct 2019 11:17:40 +0000 (12:17 +0100)
commit931a0ba638e09a707e9a905cb6bea1fb1c6d4183
tree0dc018bd07e534bb6f11312f5b3186cb9ec46b1b
parent696bcfb709862077e8fd0e484cca952db7f2001a
iommu/arm-smmu: Report USF more clearly

Although CONFIG_ARM_SMMU_DISABLE_BYPASS_BY_DEFAULT is a welcome tool
for smoking out inadequate firmware, the failure mode is non-obvious
and can be confusing for end users. Add some special-case reporting of
Unidentified Stream Faults to help clarify this particular symptom.
Since we're adding yet another print to the mix, also break out an
explicit ratelimit state to make sure everything stays together (and
reduce the static storage footprint a little).

Reviewed-by: Douglas Anderson <dianders@chromium.org>
Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: Will Deacon <will@kernel.org>
drivers/iommu/arm-smmu.c
drivers/iommu/arm-smmu.h