]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
iommu/arm-smmu: Use per-context TLB sync as appropriate
authorRobin Murphy <robin.murphy@arm.com>
Thu, 30 Mar 2017 16:56:31 +0000 (17:56 +0100)
committerWill Deacon <will.deacon@arm.com>
Thu, 6 Apr 2017 15:06:43 +0000 (16:06 +0100)
commit11febfca2419652f28804879a58ffd32adce2372
treede28e1e9c3cc5bb28bd0da46fe9b3424a92d7943
parent452107c79035c6654b963e83c4862d9faa195af4
iommu/arm-smmu: Use per-context TLB sync as appropriate

TLB synchronisation typically involves the SMMU blocking all incoming
transactions until the TLBs report completion of all outstanding
operations. In the common SMMUv2 configuration of a single distributed
SMMU serving multiple peripherals, that means that a single unmap
request has the potential to bring the hammer down on the entire system
if synchronised globally. Since stage 1 contexts, and stage 2 contexts
under SMMUv2, offer local sync operations, let's make use of those
wherever we can in the hope of minimising global disruption.

To that end, rather than add any more branches to the already unwieldy
monolithic TLB maintenance ops, break them up into smaller, neater,
functions which we can then mix and match as appropriate.

Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
drivers/iommu/arm-smmu.c