Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753523AbdGSK53 (ORCPT ); Wed, 19 Jul 2017 06:57:29 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:37810 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752500AbdGSK52 (ORCPT ); Wed, 19 Jul 2017 06:57:28 -0400 Subject: Re: [PATCH 0/5] FlexRM support in VFIO platform To: Anup Patel , Will Deacon , Joerg Roedel , Baptiste Reynal , Alex Williamson Cc: Scott Branden , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, iommu@lists.linux-foundation.org, kvm@vger.kernel.org, bcm-kernel-feedback-list@broadcom.com References: <1500456838-18405-1-git-send-email-anup.patel@broadcom.com> From: Robin Murphy Message-ID: <0dc860ed-a40c-1bfd-f584-225807edb25b@arm.com> Date: Wed, 19 Jul 2017 11:57:24 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: <1500456838-18405-1-git-send-email-anup.patel@broadcom.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1553 Lines: 33 On 19/07/17 10:33, Anup Patel wrote: > This patchset primarily adds Broadcom FlexRM reset module for > VFIO platform driver. We also have minor improvments in IOMMU > and VFIO driver to allow VFIO no-IOMMU mode access to FlexRM. I'm struggling to understand the IOMMU changes here - what's the FlexRM's hardware relationship with the IOMMU, and how is it different from any other device? Furthermore, if there *is* a relevant IOMMU present, why would no-IOMMU mode need to be involved at all? Robin. > The patches are based on Linux-4.13-rc1 and can also be > found at flexrm-vfio-v1 branch of > https://github.com/Broadcom/arm64-linux.git > > Anup Patel (5): > iommu: Add capability IOMMU_CAP_BYPASS > iommu/arm-smmu: add IOMMU_CAP_BYPASS to the ARM SMMU driver > iommu/arm-smmu-v3: add IOMMU_CAP_BYPASS to the ARM SMMUv3 driver > vfio: Allow No-IOMMU mode for IOMMUs with bypass capability > vfio: platform: reset: Add Broadcom FlexRM reset module > > drivers/iommu/arm-smmu-v3.c | 2 + > drivers/iommu/arm-smmu.c | 2 + > drivers/vfio/platform/reset/Kconfig | 9 +++ > drivers/vfio/platform/reset/Makefile | 1 + > .../vfio/platform/reset/vfio_platform_bcmflexrm.c | 91 ++++++++++++++++++++++ > drivers/vfio/vfio.c | 13 +++- > include/linux/iommu.h | 4 + > 7 files changed, 119 insertions(+), 3 deletions(-) > create mode 100644 drivers/vfio/platform/reset/vfio_platform_bcmflexrm.c >