iommu: Decouple iommu_map_sg from CPU page size
authorRobin Murphy <robin.murphy@arm.com>
Tue, 25 Nov 2014 17:50:55 +0000 (17:50 +0000)
committerJoerg Roedel <jroedel@suse.de>
Tue, 2 Dec 2014 12:05:04 +0000 (13:05 +0100)
commit18f23409909a9547ac7c149013286f36fcffa433
tree898b6a507099ba1e47184462bacb9c7990f4ca51
parent0690cbd2e55a72a8eae557c389d1a136ed9fa142
iommu: Decouple iommu_map_sg from CPU page size

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: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/iommu.c
This page took 0.025375 seconds and 5 git commands to generate.