Fastmap rely on minimizing tlbi to improve map performance.
At present only one marker is used to indicate if stale TLB might be used.
Instead use a clean bitmap for mapping to further reduce the TLB
invalidations.
Change-Id: I5a8dffde31f8804811357a83893b6ce0d863e8a9
Signed-off-by: Prakash Gupta <guptap@codeaurora.org>
Modify spdx tag for all CAF authored files for Kona.
Change-Id: I9308c7189412b1e428a7f67ded0dc076b0e38254
Signed-off-by: Rishabh Bhatnagar <rishabhb@codeaurora.org>
Remove the support to align the start and end of all mapped
buffers to ARM_SMMU_MIN_IOVA_ALIGN as the support is
no longer required.
Change-Id: I285411124eea3d4836db1537a2b51066a27c5f24
Signed-off-by: Swathi Sridhar <swatsrid@codeaurora.org>
Remove fast_smmu_release_mapping as it is no longer used.
iova_cookie lifetime is tied to the iommu_domain lifetime
instead.
Change-Id: Ib0b7055e1f2b953f90015d4e9d370de2c03a18e0
Signed-off-by: Patrick Daly <pdaly@codeaurora.org>
Prepare for sharing iommu virtual address space between multiple devices
by moving private data out of 'struct device' and into the shared
iommu_domain.
Change-Id: I6e31307631fe29e0d8907244052086da7f8f3758
Signed-off-by: Patrick Daly <pdaly@codeaurora.org>
Reuse functionality for reorganizing a sg_table based on
iommu granularity and device dma segment size from dma-iommu.c.
Port dma_sync_sg_for_* from arm64.
Change-Id: I87a7f917a39feff4f201340bbf1b5c2b4c6d9101
Signed-off-by: Patrick Daly <pdaly@codeaurora.org>
The io-pgtable layer should be responsible for
1) Reading/modifying the pagetable
2) Performing cpu cache maintenance on the pagetable
Remove code which does this from the DMA layer, and re-add it in
the io-pgtable layer, if duplicate functionality does not already
exist.
Change-Id: I2250c0f574b933f524ff464f6539ea6db1699729
Signed-off-by: Patrick Daly <pdaly@codeaurora.org>
This patch is to merge all of iommu/smmu, DMA, fast and lazy
mapping changes from msm-4.14 to msm-kona.
Change-Id: I08777236f45357b7cf44f5c14c80b78eaa482294
Signed-off-by: Swathi Sridhar <swatsrid@codeaurora.org>