]> git.baikalelectronics.ru Git - kernel.git/commit
iommu/arm-smmu-v3: Disable detection of ATS and PRI
authorWill Deacon <will@kernel.org>
Wed, 21 Aug 2019 13:17:00 +0000 (14:17 +0100)
committerWill Deacon <will@kernel.org>
Wed, 21 Aug 2019 16:58:12 +0000 (17:58 +0100)
commit2d355aa1708a3a89de4f9f52ba489634aa651fe5
treeca99cf5850bc09b643f6afbc68d45b10ea5ec127
parent0cae9aa67680444972700bdb8134c7ea773e1de8
iommu/arm-smmu-v3: Disable detection of ATS and PRI

Detecting the ATS capability of the SMMU at probe time introduces a
spinlock into the ->unmap() fast path, even when ATS is not actually
in use. Furthermore, the ATC invalidation that exists is broken, as it
occurs before invalidation of the main SMMU TLB which leaves a window
where the ATC can be repopulated with stale entries.

Given that ATS is both a new feature and a specialist sport, disable it
for now whilst we fix it properly in subsequent patches. Since PRI
requires ATS, disable that too.

Cc: <stable@vger.kernel.org>
Fixes: 4477f2aee07e ("iommu/arm-smmu-v3: Add support for PCI ATS")
Acked-by: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: Will Deacon <will@kernel.org>
drivers/iommu/arm-smmu-v3.c