]> git.baikalelectronics.ru Git - kernel.git/commit
iommu/arm-smmu-v3: Reduce contention during command-queue insertion
authorWill Deacon <will@kernel.org>
Tue, 2 Jul 2019 16:16:25 +0000 (17:16 +0100)
committerWill Deacon <will@kernel.org>
Thu, 8 Aug 2019 12:31:54 +0000 (13:31 +0100)
commite51db8bc3cacf141736871479cc208b054ea252f
tree6cc02601cd05efcfebb712a740a22cea60784e1e
parent51d6dea21051d91ea4417dd8f2d0ab8e3421beea
iommu/arm-smmu-v3: Reduce contention during command-queue insertion

The SMMU command queue is a bottleneck in large systems, thanks to the
spin_lock which serialises accesses from all CPUs to the single queue
supported by the hardware.

Attempt to improve this situation by moving to a new algorithm for
inserting commands into the queue, which is lock-free on the fast-path.

Tested-by: Ganapatrao Kulkarni <gkulkarni@marvell.com>
Signed-off-by: Will Deacon <will@kernel.org>
drivers/iommu/arm-smmu-v3.c