iommu/arm-smmu-v3: Ratelimit event dump
authorJean-Philippe Brucker <jean-philippe@linaro.org>
Mon, 31 May 2021 09:56:50 +0000 (11:56 +0200)
committerWill Deacon <will@kernel.org>
Tue, 8 Jun 2021 11:35:55 +0000 (12:35 +0100)
commit9cff922bba429b310507eac3b6cb5eb1b57e9ad1
treebe546ef596580b480bd6398d12b0fc8e58acefa6
parent395ad89d11fd93f79a6b942e91fc409807a63c4b
iommu/arm-smmu-v3: Ratelimit event dump

When a device or driver misbehaves, it is possible to receive DMA fault
events much faster than we can print them out, causing a lock up of the
system and inability to cancel the source of the problem. Ratelimit
printing of events to help recovery.

Tested-by: Aaro Koskinen <aaro.koskinen@nokia.com>
Signed-off-by: Jean-Philippe Brucker <jean-philippe@linaro.org>
Link: https://lore.kernel.org/r/20210531095648.118282-1-jean-philippe@linaro.org
Signed-off-by: Will Deacon <will@kernel.org>
drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c