summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeo Jiang <leo.jiang1224@foxmail.com>2026-05-09 15:07:33 +0800
committerWill Deacon <will@kernel.org>2026-05-19 12:57:53 +0100
commit2b9f593dad4666998d2440f4a8a6905c90b805dd (patch)
tree08d554c3c3e402b2195e650af24bcb2f524a0490
parent8a0aab012b52b5c044ca3bec523e91f95dd40765 (diff)
downloadlinux-2b9f593dad4666998d2440f4a8a6905c90b805dd.tar.gz
linux-2b9f593dad4666998d2440f4a8a6905c90b805dd.zip
iommu/arm-smmu-v3: Limit queue allocation retry boundary to PAGE_SIZE
Stop retrying queue allocation when qsz reaches PAGE_SIZE. Signed-off-by: Leo Jiang <leo.jiang1224@foxmail.com> Signed-off-by: Will Deacon <will@kernel.org>
-rw-r--r--drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c b/drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c
index e8d7dbe495f0..4a0b15b1d4d2 100644
--- a/drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c
+++ b/drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c
@@ -4418,7 +4418,7 @@ int arm_smmu_init_one_queue(struct arm_smmu_device *smmu,
qsz = ((1 << q->llq.max_n_shift) * dwords) << 3;
q->base = dmam_alloc_coherent(smmu->dev, qsz, &q->base_dma,
GFP_KERNEL);
- if (q->base || qsz < PAGE_SIZE)
+ if (q->base || qsz <= PAGE_SIZE)
break;
q->llq.max_n_shift--;