4 Commits

Author SHA1 Message Date
7416fc8014 iommu/io-pgtable-fast: optimize statically allocated pages
Presently fastmap iommu feature allocates page tables for
full 4GB virtual address space. This can be optimized to
consider virtual address range [base, size] needed by
client and prepare page tables only for applicable
region.

CRs-Fixed: 2011508
Change-Id: Ie6c23cb8e1702a823567e126f452b1e72d851f71
Signed-off-by: Shiraz Hashim <shashim@codeaurora.org>
Signed-off-by: Prakash Gupta <guptap@codeaurora.org>
[@lmark@codeaurora.org: modify downstream struct instead]
Signed-off-by: Liam Mark <lmark@codeaurora.org>
2020-08-04 07:52:25 -07:00
031eda4b53 io-pgtable-fast: Remove av8l_fast_cfg
Fastmap uses the same page table format as arm_lpae_s1_cfg,
so they can share the same data structure format. Additionally,
arm-smmu.c *assumes* that struct arm_lpae_s1_cfg is in use.

This has not caused any issues so far because the formats of
av8l_fast_cfg and arm_lpae_s1_cfg are sufficiently similar.

Change-Id: I93dc42f82d988318af35125df3a5fa0739ebae6a
Signed-off-by: Patrick Daly <pdaly@codeaurora.org>
2020-07-24 11:40:54 -07:00
c7f16608d4 include: Fixup headers to pass KERNEL_HEADER_TEST
Fix up a bunch of headers so that they pass KERNEL_HEADER_TEST to ensure
that they are self-contained.

Change-Id: Ic0dedbad91f70263452c9a809333fe93c8ee2266
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
2020-01-15 09:01:08 -07:00
fb3f251037 iommu/arm-smmu: Merge all IOMMU changes from msm-4.19 to msm-lahaina
This patch merges all of the IOMMU/SMMU, DMA mapping, fast, and
lazy mapping changes from msm-4.19 into msm-lahaina.

Change-Id: If7c1f641a8c836dbb799e2f3439f443ff299b299
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
2019-07-29 16:58:51 -07:00