]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
iommu/arm-smmu-v3: Rework enabling/disabling of ATS for PCI masters
authorWill Deacon <will@kernel.org>
Tue, 20 Aug 2019 13:28:59 +0000 (14:28 +0100)
committerWill Deacon <will@kernel.org>
Wed, 21 Aug 2019 16:58:42 +0000 (17:58 +0100)
commitbfff88ec1afefb76669d29da9fc90d5ad7c53ec3
treeff9242625105f0aa86d15e571c631cdff4a4ad28
parent7314ca8699e1defd6f2883f203c0e828a4f51f9f
iommu/arm-smmu-v3: Rework enabling/disabling of ATS for PCI masters

To prevent any potential issues arising from speculative Address
Translation Requests from an ATS-enabled PCIe endpoint, rework our ATS
enabling/disabling logic so that we enable ATS at the SMMU before we
enable it at the endpoint, and disable things in the opposite order.

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