Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932675AbdGSLXP (ORCPT ); Wed, 19 Jul 2017 07:23:15 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:38264 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932085AbdGSLXL (ORCPT ); Wed, 19 Jul 2017 07:23:11 -0400 Date: Wed, 19 Jul 2017 12:23:15 +0100 From: Will Deacon To: Anup Patel Cc: Robin Murphy , Joerg Roedel , Baptiste Reynal , Alex Williamson , Scott Branden , Linux Kernel , Linux ARM Kernel , Linux IOMMU , kvm@vger.kernel.org, BCM Kernel Feedback Subject: Re: [PATCH 1/5] iommu: Add capability IOMMU_CAP_BYPASS Message-ID: <20170719112315.GE13642@arm.com> References: <1500456838-18405-1-git-send-email-anup.patel@broadcom.com> <1500456838-18405-2-git-send-email-anup.patel@broadcom.com> <675744d3-b070-1245-6ebc-579c4b5f4a75@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1103 Lines: 24 On Wed, Jul 19, 2017 at 04:49:00PM +0530, Anup Patel wrote: > On Wed, Jul 19, 2017 at 4:28 PM, Robin Murphy wrote: > > On 19/07/17 10:33, Anup Patel wrote: > >> Some of the IOMMUs (such as ARM SMMU) are capable of bypassing > >> transactions for which no IOMMU domain is configured. > >> > >> This patch adds IOMMU_CAP_BYPASS which can be used by IOMMU > >> drivers to advertise transation bypass capability of an IOMMU. > > > > Whatever the intended semantics of this are, I can't help thinking it > > would be better served by allowing callers to explicitly allocate their > > own IOMMU_DOMAIN_IDENTITY domains. That would also be useful for the > > problem we have with legacy virtio devices behind real IOMMUs. > > We want to use VFIO no-IOMMU mode for FlexRM device but > currently it does not allow on our SOC because IOMMU ops are > registered for platform bus. Why do you want to use no-IOMMU mode if you have an IOMMU, and why you do think the individual IOMMU drivers are the place to implement this? NAK to the SMMU patches, for the reasons outlined by Robin. Will