dma-mapping-fast: Fix sg-list length calculation in fast_smmu_unmap_sg()
The length of an IOVA mapped to an sg-list in fast_smmu_unmap_sg() is
determined using the DMA length of the data in the sg-list. Using the
DMA length of the entries in the sg-list may result in incorrectly
calculating the length of the IOVA range that needs to be freed, as
the buffers are mapped at an IOMMU granule.
Thus, align the IOVA length to the IOMMU granule when unmapping IOVAs
in fast_smmu_unmap_sg().
Change-Id: I7dbe88ed2db46b1c9b278f92c2a23a9ebc2d503a
Signed-off-by:  Isaac J. Manjarres <isaacm@codeaurora.org>
Isaac J. Manjarres <isaacm@codeaurora.org>
Loading
Please register or sign in to comment
