mirror of
https://github.com/torvalds/linux.git
synced 2026-09-22 04:34:03 +02:00
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>
This commit is contained in:
parent
8a0aab012b
commit
2b9f593dad
|
|
@ -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--;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user