]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
iommu: Use flush queue capability
authorRobin Murphy <robin.murphy@arm.com>
Thu, 4 May 2023 21:10:56 +0000 (22:10 +0100)
committerJoerg Roedel <jroedel@suse.de>
Mon, 22 May 2023 15:38:45 +0000 (17:38 +0200)
commita4fdd976227240b06ced89b5df88a1a1f388f092
tree063b300e46cfcab8257fdc83262fd5db789f2ed7
parent4a20ce0ff68eb6fc4b1e8f25139c93b312f21229
iommu: Use flush queue capability

It remains really handy to have distinct DMA domain types within core
code for the sake of default domain policy selection, but we can now
hide that detail from drivers by using the new capability instead.

Signed-off-by: Robin Murphy <robin.murphy@arm.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/1c552d99e8ba452bdac48209fa74c0bdd52fd9d9.1683233867.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
drivers/iommu/dma-iommu.c
drivers/iommu/intel/iommu.c
drivers/iommu/iommu.c
include/linux/iommu.h