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

Commit a85a2fbf authored by Patrick Daly's avatar Patrick Daly
Browse files

arm-smmu: Implement iova_to_phys with a software table walk



The qcom,smmu-v2 hw implementation requires halting all context banks
during an atos transaction. The DMA layer makes frequent use of this
operation through iommu_iova_to_phys(), which results in a loss of
throughput due to the iommu being frequently halted.

Additionally, iommu_iova_to_phys() can be called from atomic context,
but writing to the atos registers requires a clock and power vote,
which are nonatomic.

Use a software table walk instead.

Change-Id: Id42905e8f5d69ebaaae103dc07042473e0a22f51
Signed-off-by: default avatarPatrick Daly <pdaly@codeaurora.org>
parent fb11f70e
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