]> git.baikalelectronics.ru Git - kernel.git/commit
iommu/io-pgtable: Avoid redundant TLB syncs
authorRobin Murphy <robin.murphy@arm.com>
Tue, 26 Jan 2016 17:13:15 +0000 (17:13 +0000)
committerWill Deacon <will.deacon@arm.com>
Wed, 17 Feb 2016 14:15:09 +0000 (14:15 +0000)
commitb7c761446e6e38d98e48873d303529472761bc35
tree6aa702be20bb1c88bc1d03da09a732a63a0339e7
parente412063a8af55746a02aeca85cb06a53f8ffb5bd
iommu/io-pgtable: Avoid redundant TLB syncs

In certain unmapping situations it is quite possible to end up issuing
back-to-back TLB synchronisations, which at best is a waste of time and
effort, and at worst causes some hardware to get rather confused. Whilst
the pagetable implementations, or the IOMMU drivers, or both, could keep
track of things to avoid this happening, it seems to make the most sense
to prevent code duplication and add some simple state tracking in the
common interface between the two.

Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
drivers/iommu/io-pgtable.h