From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 571A1C433DF for ; Thu, 9 Jul 2020 09:42:47 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 270C8206E2 for ; Thu, 9 Jul 2020 09:42:47 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="h6sN9lCv"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="FavBHG8I" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 270C8206E2 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:Message-ID: Subject:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=AUDfciYfhvZfQI3FGqpQrBAWYpMA02JeMvb9hFZfLIw=; b=h6sN9lCvjB4yDYt+1mZbT4mwj nfCPDIvKIeiV42V8x9evTJ1kTH8h2iutR6p8Xslfh4cyoA/9b8paNhC6OMQzYNsZO0eadQb1M90sl Xvpi7/6LWcuOpRfMt7OhUANTDqLfWaO+PZfrApBly7BEZPjCV9/D0CsjdNRPWHIIf4/t7bFVGhpPY hCqYJc2vkGAk5fvOoeLfLXOuQS1P8XrBDEUqwpBa6WL4S4SrIQAlTgR2v5NSoGXX7QlE6+YS3DT0P zIZw9ARxVGEJEmbiEoFSnJmVQNEipBsCdGjSHXM2uqr5DXCPA/GVCjcG6y3NK3+8CbnZJdd/PEk+i w4twf/ZaQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jtT2E-0008EZ-5F; Thu, 09 Jul 2020 09:40:06 +0000 Received: from mail-ej1-x642.google.com ([2a00:1450:4864:20::642]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jtT2A-0008Cq-0Q for linux-arm-kernel@lists.infradead.org; Thu, 09 Jul 2020 09:40:04 +0000 Received: by mail-ej1-x642.google.com with SMTP id f12so1565232eja.9 for ; Thu, 09 Jul 2020 02:39:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=2THE/Ch7o0atdMFuV+uYcIIPapd2rod4QXyGDJ/dFko=; b=FavBHG8IG2M/1g82xJw00majkxmSP5shEMXvMHDHe7094E4Hs00vjp8TSSeR812KOm uC7FGqeoRqCDwBgdgygc/j1M0Msyq/Ih3poWhDEiWpFtl68h4WZWGazIM4Nb76BfjWKN tzXZHrubqlL/oEkduaS00KzNt4j/7hWc+bBdZBkZ0sR4ZauY5UmPmwJGHDi20CGqw+S9 A/ofjh4eAf0kBuaLw/NQbbbbm4RNOztwCCAt6vX3Jlo1wlr4gj/NKXc0I47EcR5lzOF/ UCTt8pKDGUbPmgFRlhMpkF+INN5Ld1zjZLpvr12d6Fca3LQNgtvD2qy/WRGnQGNt84y8 UdAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=2THE/Ch7o0atdMFuV+uYcIIPapd2rod4QXyGDJ/dFko=; b=lWvdHttdBBHsHyUki2w9ORAuPypjbS/viD9u1AX/gJQGuQX/SSwRo/6+va/CwrGYhT 06TEt8LNTXSiYvUdWrr+4/oNdWF2V5ol3YcF7H45+hVtMjnPrGb66TOpiefwejgUY/Im +ymtepwfpQl17N90OgBqci4SBzLzdX8dbyIFpl71x9+fsYNOmZoTTrCGqVqeWgqV6XC6 GHn2FzdkSY18+XttB0Ak/Ai4mtryWSk1oVuxmC4i3Y6b0Hy5sqj74yLjqw5DxvykHqha yhNr3qjpaY7rOwwPbhlODG7hN8i8ew6sXVkUpNIeJv9B8DYrgyV+VhfNP644Imj2iMSF lZ8A== X-Gm-Message-State: AOAM533sRJZ/A0UPXLrnwXHruGExWHIxJA/GN/eBto+sp0bJgEGUdhbt 5HiRmf/2s5ADXKeFT+1ek3Cz5w== X-Google-Smtp-Source: ABdhPJwRIJMZIpLlplX9lPskZd1R8tF64miPnKHMtY82fk3Knb0HoMgI+IgSJLyxwoNHoioyY3/W0A== X-Received: by 2002:a17:906:945:: with SMTP id j5mr56100930ejd.52.1594287599016; Thu, 09 Jul 2020 02:39:59 -0700 (PDT) Received: from myrica ([2001:1715:4e26:a7e0:116c:c27a:3e7f:5eaf]) by smtp.gmail.com with ESMTPSA id q21sm1428288ejr.75.2020.07.09.02.39.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Jul 2020 02:39:58 -0700 (PDT) Date: Thu, 9 Jul 2020 11:39:46 +0200 From: Jean-Philippe Brucker To: iommu@lists.linux-foundation.org, linux-arm-kernel@lists.infradead.org, linux-mm@kvack.org Subject: Re: [PATCH v8 00/12] iommu: Shared Virtual Addressing for SMMUv3 (PT sharing part) Message-ID: <20200709093946.GC4477@myrica> References: <20200618155125.1548969-1-jean-philippe@linaro.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20200618155125.1548969-1-jean-philippe@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200709_054002_358542_DF13B197 X-CRM114-Status: GOOD ( 19.23 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: fenghua.yu@intel.com, jacob.jun.pan@linux.intel.com, catalin.marinas@arm.com, joro@8bytes.org, robin.murphy@arm.com, hch@infradead.org, zhengxiang9@huawei.com, Jonathan.Cameron@huawei.com, zhangfei.gao@linaro.org, will@kernel.org, xuzaibo@huawei.com, baolu.lu@linux.intel.com Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi Will, On Thu, Jun 18, 2020 at 05:51:13PM +0200, Jean-Philippe Brucker wrote: > Since v7 [1], I split the series into three parts to ease review. This > first one adds page table sharing to the SMMUv3 driver. The second one > adds support for I/O page faults through PRI and Stall, and the last one > adds additional and optional features (DVM, VHE and HTTU). SVA needs the > three parts to work. No significant change apart from that, I just > addressed the previous comments. > > I'd rather everything went through the IOMMU tree but I'm assuming patch > 1 will also go through the x86 tree as part of [2]. It is definitely > required by patch 3 which is required by patch 11. I don't know how this > kind of conflict is usually resolved, but if it's a problem I could > further shrink the series to only patches 4-10 this cycle. I have one bugfix for this series but am planning to hold off resending until you've found time to have a look. I can also reduce it to 7 patches for v4.9, please let me know what you prefer. Thanks, Jean > > [1] https://lore.kernel.org/linux-iommu/20200519175502.2504091-1-jean-philippe@linaro.org/ > [2] https://lore.kernel.org/linux-iommu/1592418233-17762-1-git-send-email-fenghua.yu@intel.com/ > > Fenghua Yu (1): > mm: Define pasid in mm > > Jean-Philippe Brucker (11): > iommu/ioasid: Add ioasid references > iommu/sva: Add PASID helpers > arm64: mm: Pin down ASIDs for sharing mm with devices > iommu/io-pgtable-arm: Move some definitions to a header > arm64: cpufeature: Export symbol read_sanitised_ftr_reg() > iommu/arm-smmu-v3: Share process page tables > iommu/arm-smmu-v3: Seize private ASID > iommu/arm-smmu-v3: Check for SVA features > iommu/arm-smmu-v3: Add SVA device feature > iommu/arm-smmu-v3: Implement iommu_sva_bind/unbind() > iommu/arm-smmu-v3: Hook up ATC invalidation to mm ops > > drivers/iommu/Kconfig | 7 + > drivers/iommu/Makefile | 1 + > arch/arm64/include/asm/mmu.h | 1 + > arch/arm64/include/asm/mmu_context.h | 11 +- > drivers/iommu/io-pgtable-arm.h | 30 ++ > drivers/iommu/iommu-sva-lib.h | 15 + > include/linux/ioasid.h | 10 +- > include/linux/mm_types.h | 4 + > arch/arm64/kernel/cpufeature.c | 1 + > arch/arm64/mm/context.c | 95 +++- > drivers/iommu/arm-smmu-v3.c | 702 ++++++++++++++++++++++++++- > drivers/iommu/intel/iommu.c | 4 +- > drivers/iommu/intel/svm.c | 6 +- > drivers/iommu/io-pgtable-arm.c | 27 +- > drivers/iommu/ioasid.c | 38 +- > drivers/iommu/iommu-sva-lib.c | 85 ++++ > MAINTAINERS | 3 +- > 17 files changed, 977 insertions(+), 63 deletions(-) > create mode 100644 drivers/iommu/io-pgtable-arm.h > create mode 100644 drivers/iommu/iommu-sva-lib.h > create mode 100644 drivers/iommu/iommu-sva-lib.c > > -- > 2.27.0 > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel