[PATCH v4 00/24] iommu: Refactor DMA domain strictness
From: Robin Murphy
Date: Wed Aug 11 2021 - 08:21:55 EST
v1: https://lore.kernel.org/linux-iommu/cover.1626888444.git.robin.murphy@xxxxxxx/
v2: https://lore.kernel.org/linux-iommu/cover.1627468308.git.robin.murphy@xxxxxxx/
v3: https://lore.kernel.org/linux-iommu/cover.1628094600.git.robin.murphy@xxxxxxx/
Hi all,
I'm hoping this is good to go now. Changes from v3 are minimal, just
rolling back patch #2 to the non-broken version, and tidying up the
final patch as documented there.
Cheers,
Robin.
CC: Marek Szyprowski <m.szyprowski@xxxxxxxxxxx>
CC: Yoshihiro Shimoda <yoshihiro.shimoda.uh@xxxxxxxxxxx>
CC: Geert Uytterhoeven <geert+renesas@xxxxxxxxx>
CC: Yong Wu <yong.wu@xxxxxxxxxxxx>
CC: Heiko Stuebner <heiko@xxxxxxxxx>
CC: Chunyan Zhang <chunyan.zhang@xxxxxxxxxx>
CC: Maxime Ripard <mripard@xxxxxxxxxx>
CC: Jean-Philippe Brucker <jean-philippe@xxxxxxxxxx>
Robin Murphy (24):
iommu: Pull IOVA cookie management into the core
iommu/amd: Drop IOVA cookie management
iommu/arm-smmu: Drop IOVA cookie management
iommu/vt-d: Drop IOVA cookie management
iommu/exynos: Drop IOVA cookie management
iommu/ipmmu-vmsa: Drop IOVA cookie management
iommu/mtk: Drop IOVA cookie management
iommu/rockchip: Drop IOVA cookie management
iommu/sprd: Drop IOVA cookie management
iommu/sun50i: Drop IOVA cookie management
iommu/virtio: Drop IOVA cookie management
iommu/dma: Unexport IOVA cookie management
iommu/dma: Remove redundant "!dev" checks
iommu: Indicate queued flushes via gather data
iommu/io-pgtable: Remove non-strict quirk
iommu: Introduce explicit type for non-strict DMA domains
iommu/amd: Prepare for multiple DMA domain types
iommu/arm-smmu: Prepare for multiple DMA domain types
iommu/vt-d: Prepare for multiple DMA domain types
iommu: Express DMA strictness via the domain type
iommu: Expose DMA domain strictness via sysfs
iommu: Only log strictness for DMA domains
iommu: Merge strictness and domain type configs
iommu: Allow enabling non-strict mode dynamically
.../ABI/testing/sysfs-kernel-iommu_groups | 6 +-
.../admin-guide/kernel-parameters.txt | 8 +-
drivers/iommu/Kconfig | 80 +++++++++----------
drivers/iommu/amd/iommu.c | 21 +----
drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c | 11 +--
drivers/iommu/arm/arm-smmu/arm-smmu.c | 19 ++---
drivers/iommu/arm/arm-smmu/qcom_iommu.c | 9 ---
drivers/iommu/dma-iommu.c | 58 ++++++++------
drivers/iommu/exynos-iommu.c | 19 +----
drivers/iommu/intel/iommu.c | 23 ++----
drivers/iommu/io-pgtable-arm-v7s.c | 12 +--
drivers/iommu/io-pgtable-arm.c | 12 +--
drivers/iommu/iommu.c | 56 ++++++++-----
drivers/iommu/iova.c | 14 +++-
drivers/iommu/ipmmu-vmsa.c | 28 +------
drivers/iommu/mtk_iommu.c | 7 --
drivers/iommu/mtk_iommu_v1.c | 1 -
drivers/iommu/rockchip-iommu.c | 12 +--
drivers/iommu/sprd-iommu.c | 7 --
drivers/iommu/sun50i-iommu.c | 13 +--
drivers/iommu/virtio-iommu.c | 8 --
include/linux/dma-iommu.h | 6 ++
include/linux/io-pgtable.h | 5 --
include/linux/iommu.h | 23 +++++-
24 files changed, 184 insertions(+), 274 deletions(-)
--
2.25.1