• Will Deacon's avatar
    iommu/arm-smmu-v3: Increase maximum size of queues · d25f6ead
    Will Deacon authored
    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: default avatarWill Deacon <will.deacon@arm.com>
    d25f6ead
arm-smmu-v3.c 81.9 KB