• Robin Murphy's avatar
    iommu/dma: Implement scatterlist segment merging · 809eac54
    Robin Murphy authored
    Stop wasting IOVA space by over-aligning scatterlist segments for a
    theoretical worst-case segment boundary mask, and instead take the real
    limits into account to merge consecutive segments wherever appropriate,
    so our callers can benefit from getting back nicely simplified lists.
    
    This also represents the last piece of functionality wanted by users of
    the current arch/arm implementation, thus brings us a small step closer
    to converting that over to the common code.
    Signed-off-by: default avatarRobin Murphy <robin.murphy@arm.com>
    Signed-off-by: default avatarJoerg Roedel <jroedel@suse.de>
    809eac54
dma-iommu.c 16.3 KB