diff options
author | Zhen Lei <thunder.leizhen@huawei.com> | 2018-09-20 19:10:24 +0300 |
---|---|---|
committer | Will Deacon <will.deacon@arm.com> | 2018-10-01 15:01:33 +0300 |
commit | b6b65ca20bc93d14319f9b5cf98fd3c19a4244e3 (patch) | |
tree | ce01effa867ef81b01481259e0fcccb02ad66dd0 /drivers/iommu/arm-smmu-v3.c | |
parent | 68a6efe86f6a16e25556a2aff40efad41097b486 (diff) | |
download | linux-b6b65ca20bc93d14319f9b5cf98fd3c19a4244e3.tar.xz |
iommu/io-pgtable-arm: Add support for non-strict mode
Non-strict mode is simply a case of skipping 'regular' leaf TLBIs, since
the sync is already factored out into ops->iotlb_sync at the core API
level. Non-leaf invalidations where we change the page table structure
itself still have to be issued synchronously in order to maintain walk
caches correctly.
To save having to reason about it too much, make sure the invalidation
in arm_lpae_split_blk_unmap() just performs its own unconditional sync
to minimise the window in which we're technically violating the break-
before-make requirement on a live mapping. This might work out redundant
with an outer-level sync for strict unmaps, but we'll never be splitting
blocks on a DMA fastpath anyway.
Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com>
[rm: tweak comment, commit message, split_blk_unmap logic and barriers]
Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'drivers/iommu/arm-smmu-v3.c')
0 files changed, 0 insertions, 0 deletions