Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 962bad7d authored by Isaac J. Manjarres's avatar Isaac J. Manjarres Committed by Gerrit - the friendly Code Review server
Browse files

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: default avatarIsaac J. Manjarres <isaacm@codeaurora.org>
parent 6ebd8dac
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment