aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/linux/iommu.h
diff options
context:
space:
mode:
authorWill Deacon <will.deacon@arm.com>2019-05-16 16:08:47 +0100
committerWill Deacon <will.deacon@arm.com>2019-06-18 18:11:20 +0100
commitd25f6ead162eab3f51b6616be23691ac42e141b5 (patch)
treeedd6e16de5faff7c5190378bded091d26910cc4c /include/linux/iommu.h
parentLinux 5.2-rc2 (diff)
downloadwireguard-linux-d25f6ead162eab3f51b6616be23691ac42e141b5.tar.xz
wireguard-linux-d25f6ead162eab3f51b6616be23691ac42e141b5.zip
iommu/arm-smmu-v3: Increase maximum size of queues
We've been artificially limiting the size of our queues to 4k so that we don't end up allocating huge amounts of physically-contiguous memory at probe time. However, 4k is only enough for 256 commands in the command queue, so instead let's try to allocate the largest queue that the SMMU supports, retrying with a smaller size if the allocation fails. The caveat here is that we have to limit our upper bound based on CONFIG_CMA_ALIGNMENT to ensure that our queue allocations remain natually aligned, which is required by the SMMU architecture. Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'include/linux/iommu.h')
0 files changed, 0 insertions, 0 deletions