]> git.baikalelectronics.ru Git - kernel.git/commit
iommu/arm-smmu: Report IOMMU_CAP_CACHE_COHERENCY better
authorRobin Murphy <robin.murphy@arm.com>
Mon, 15 Aug 2022 15:26:50 +0000 (16:26 +0100)
committerJoerg Roedel <jroedel@suse.de>
Wed, 7 Sep 2022 12:16:39 +0000 (14:16 +0200)
commitc25193af9e1ba576b22de3675b28e61c3f440799
tree543a690a15dcacc5c4ce79b7778b72b208c8fdfb
parentdb456891253f8523e5e9fb5e40a37dbb44f49006
iommu/arm-smmu: Report IOMMU_CAP_CACHE_COHERENCY better

Assuming that any SMMU can enforce coherency for any device is clearly
nonsense. Although technically even a single SMMU instance can be wired
up to only be capable of emitting coherent traffic for some of the
devices it translates, it's a fairly realistic approximation that if the
SMMU's pagetable walker is wired up to a coherent interconnect then all
its translation units probably are too, and conversely that lack of
coherent table walks implies a non-coherent system in general. Either
way it's still less inaccurate than what we've been claiming so far.

Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Link: https://lore.kernel.org/r/106c9741415f0b6358c72d53ae9c78c553a2b45c.1660574547.git.robin.murphy@arm.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c
drivers/iommu/arm/arm-smmu/arm-smmu.c