From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752350AbdGIPP2 (ORCPT ); Sun, 9 Jul 2017 11:15:28 -0400 Received: from mx1.redhat.com ([209.132.183.28]:34670 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750910AbdGIPP1 (ORCPT ); Sun, 9 Jul 2017 11:15:27 -0400 DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com ED24080473 Authentication-Results: ext-mx04.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx04.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=eric.auger@redhat.com DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com ED24080473 From: Eric Auger To: eric.auger.pro@gmail.com, eric.auger@redhat.com, iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org, Will.Deacon@arm.com, robin.murphy@arm.com, Jean-Philippe.Brucker@arm.com Cc: christoffer.dall@linaro.org, Marc.Zyngier@arm.com, alex.williamson@redhat.com, peterx@redhat.com, mst@redhat.com Subject: [RFC 0/2] arm-smmu-v3 tlbi-on-map option Date: Sun, 9 Jul 2017 17:15:01 +0200 Message-Id: <1499613303-30173-1-git-send-email-eric.auger@redhat.com> X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.28]); Sun, 09 Jul 2017 15:15:27 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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