• Robin Murphy's avatar
    iommu: Decouple iommu_map_sg from CPU page size · 18f23409
    Robin Murphy authored
    If the IOMMU supports pages smaller than the CPU page size, segments
    which lie at offsets within the CPU page may be mapped based on the
    finer-grained IOMMU page boundaries. This minimises the amount of
    non-buffer memory between the CPU page boundary and the start of the
    segment which must be mapped and therefore exposed to the device, and
    brings the default iommu_map_sg implementation in line with
    iommu_map/unmap with respect to alignment.
    Signed-off-by: default avatarRobin Murphy <robin.murphy@arm.com>
    Signed-off-by: default avatarJoerg Roedel <jroedel@suse.de>
    18f23409
iommu.c 32.3 KB