iommu: Add a capability for flush queue support
authorRobin Murphy <robin.murphy@arm.com>
Thu, 4 May 2023 21:10:55 +0000 (22:10 +0100)
committerJoerg Roedel <jroedel@suse.de>
Mon, 22 May 2023 15:38:44 +0000 (17:38 +0200)
commit4a20ce0ff68eb6fc4b1e8f25139c93b312f21229
treed059ba3b2c276e964e70da68f0b17ef70ecd7e62
parent5d62bacc059bb4f783e1d2ad88874abb6056f404
iommu: Add a capability for flush queue support

Passing a special type to domain_alloc to indirectly query whether flush
queues are a worthwhile optimisation with the given driver is a bit
clunky, and looking increasingly anachronistic. Let's put that into an
explicit capability instead.

Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Reviewed-by: Lu Baolu <baolu.lu@linux.intel.com>
Tested-by: Jerry Snitselaar <jsnitsel@redhat.com> # amd, intel, smmu-v3
Reviewed-by: Jerry Snitselaar <jsnitsel@redhat.com>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Link: https://lore.kernel.org/r/f0086a93dbccb92622e1ace775846d81c1c4b174.1683233867.git.robin.murphy@arm.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/amd/iommu.c
drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c
drivers/iommu/arm/arm-smmu/arm-smmu.c
drivers/iommu/intel/iommu.c
include/linux/iommu.h