]> git.baikalelectronics.ru Git - kernel.git/commit
iommu/arm-smmu-v3: Don't issue CMD_SYNC for zero-length invalidations
authorWill Deacon <will@kernel.org>
Wed, 21 Aug 2019 11:38:15 +0000 (12:38 +0100)
committerWill Deacon <will@kernel.org>
Wed, 21 Aug 2019 16:58:41 +0000 (17:58 +0100)
commita43c3853922fdbf3be60a0f77690b4268db4341e
tree5d4d8295400c34caec78e010ff4909431991049a
parent97397d71236d13792abe072ccd1ebfa5e726b9b6
iommu/arm-smmu-v3: Don't issue CMD_SYNC for zero-length invalidations

Calling arm_smmu_tlb_inv_range() with a size of zero, perhaps due to
an empty 'iommu_iotlb_gather' structure, should be a NOP. Elide the
CMD_SYNC when there is no invalidation to be performed.

Signed-off-by: Will Deacon <will@kernel.org>
drivers/iommu/arm-smmu-v3.c