[RFC 0/2] arm-smmu-v3 tlbi-on-map option

From: Eric Auger
Date: Sun Jul 09 2017 - 11:15:42 EST


This series adds a new tlbi-on-map option to the smmuv3 driver.
When set, the IO_PGTABLE_QUIRK_TLBI_ON_MAP quirk is applied for
LPAE tables and the smmuv3 driver sends TLB invalidations on map.

This mode is useful when running the driver on a guest as it allows
the virtualizer to trap any change to the translation structures.
This is similar to the Intel vtd caching mode (CM).

This is especially needed for VFIO integration integration where
guest mappings must be applied to the physical IOMMU.

At the moment the option only is available for DT probing.

Best Regards

Eric

Eric Auger (2):
iommu/io-pgtable-arm: flush TLBs when IO_PGTABLE_QUIRK_TLBI_ON_MAP
arm-smmu-v3: Add tlbi_on_map option

Documentation/devicetree/bindings/iommu/arm,smmu-v3.txt | 4 ++++
drivers/iommu/arm-smmu-v3.c | 5 +++++
drivers/iommu/io-pgtable-arm.c | 13 +++++++++++--
3 files changed, 20 insertions(+), 2 deletions(-)

--
2.5.5