Commit Graph

8 Commits

Author SHA1 Message Date
Prakash Gupta
ad5f02c192 dma-mapping-fast: reduce TLBI during map
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>
2020-06-05 14:27:37 +05:30
Rishabh Bhatnagar
e9a05bb4d3 spdx: Modify spdx tag from GPL-2.0 to GPL-2.0-only
Modify spdx tag for all CAF authored files for Kona.

Change-Id: I9308c7189412b1e428a7f67ded0dc076b0e38254
Signed-off-by: Rishabh Bhatnagar <rishabhb@codeaurora.org>
2018-12-10 11:09:45 -08:00
Swathi Sridhar
df19c6e3d5 iommu: Remove support for buffer alignment to ARM_SMMU_MIN_IOVA_ALIGN
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>
2018-11-09 10:21:49 -08:00
Patrick Daly
a7229c6d60 iommu: dma-mapping-fast: Remove unused function
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>
2018-10-30 18:18:56 -07:00
Patrick Daly
00f16d0c2e iommu: dma-mapping-fast: Store private data in domain->iova_cookie
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>
2018-10-30 18:03:02 -07:00
Patrick Daly
15af6274ea dma-mapping-fast: Add support for dma operations with sg_table
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>
2018-10-30 18:03:01 -07:00
Patrick Daly
913c386090 iommu: io-pgtable-fast: Separate dma and io-pagetable layers
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>
2018-10-30 18:03:00 -07:00
Swathi Sridhar
4008eb493a iommu/arm-smmu: Merge of smmu changes from 4.14 to msm-kona
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>
2018-07-19 19:33:35 -07:00