summaryrefslogtreecommitdiff
path: root/drivers/iommu
diff options
context:
space:
mode:
authorJordan Crouse <jcrouse@codeaurora.org>2016-05-11 09:37:46 -0600
committerGerrit - the friendly Code Review server <code-review@localhost>2017-03-20 21:49:47 -0700
commit1add8d5a71133292be7e0367c25d0f32a35c0525 (patch)
tree70bdf645986e5eb7a3d05bd8128c8699dc6c82a3 /drivers/iommu
parentaa1980af4cb2245eb54ce4da9145d9ec905d3ea4 (diff)
iommu/arm-smmu: Ratelimit dynamic ASID allocation error
It is possible to aggressively push the limits of dynamic ASID by forking and creating lots of domains. In the most egregious cases enormous log storms can occur. Ratelimit the error message to cut down on spam. Change-Id: Ic0dedbadc8f7fd7e810505e4cf2a312cf2986047 Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
Diffstat (limited to 'drivers/iommu')
-rw-r--r--drivers/iommu/arm-smmu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/iommu/arm-smmu.c b/drivers/iommu/arm-smmu.c
index ce1eb562be36..6a2e0c23f0d0 100644
--- a/drivers/iommu/arm-smmu.c
+++ b/drivers/iommu/arm-smmu.c
@@ -2182,8 +2182,8 @@ static int arm_smmu_attach_dynamic(struct iommu_domain *domain,
smmu->num_context_banks + 2,
MAX_ASID + 1, GFP_KERNEL);
if (ret < 0) {
- dev_err(smmu->dev, "dynamic ASID allocation failed: %d\n",
- ret);
+ dev_err_ratelimited(smmu->dev,
+ "dynamic ASID allocation failed: %d\n", ret);
goto out;
}