Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1add8d5a authored by Jordan Crouse's avatar Jordan Crouse Committed by Gerrit - the friendly Code Review server
Browse files

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: default avatarJordan Crouse <jcrouse@codeaurora.org>
parent aa1980af
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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;
	}