Received: by 2002:a05:7412:6592:b0:d7:7d3a:4fe2 with SMTP id m18csp650927rdg; Thu, 10 Aug 2023 15:04:29 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH0khIe8T8Ojyd7CmZPtGVvEprTPzf+4ivwwg/RrxHh39FvYWUOLU14nq02XuseqFnYsiz2 X-Received: by 2002:a17:907:a044:b0:99c:72c8:bfe1 with SMTP id gz4-20020a170907a04400b0099c72c8bfe1mr139382ejc.38.1691705069629; Thu, 10 Aug 2023 15:04:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691705069; cv=none; d=google.com; s=arc-20160816; b=XPFlvZwm+F3eouMFU+ViOw93JkH+qJhkxybCR6vNdzwnUqQoe3Kwr3oe+dSVyQR4q0 1TWcd7AXwVz8MDQm5x2FAWnUAhou1lEPSIT+ybQlMqCqTSXfWxuuUFDE+28+6H4OTmMe llsxZHHBotINS+gzn6C4l0A1XsP/JSarG8UmisCKvRSmW+2hzGpWJunQKGaw21yBEVnF Nd9pVh9eDBK7R4KDPaGDXUKQKO1npyQlOYsmLYYcM+ECYgFvkNJqV8dSCcNaNtobisQD pKWbJ6vjhRdel1jW3U0B5H9nRXo/TPCHt3AlOd946+SYIbW5UBv1gdI6vgvrIdBzlC/a txQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=OBsV6+ts68b3MCiRcACqm+YmuoRBitbyDh+1vB9eOfo=; fh=xltAmSPd/yLdUi9FHi45DAi3RH3y0htPE7VC5DZecA8=; b=XyDtjHJPojAUVWCgzm397Cvieo5mv8gE0/odvWGL7tKPVAR2GZdItts/bOxvc8R5fj fp/3c6DNwghazoo9m7xRX5YBv6fi9lDzTRlBHZYanvWoIeQQ3wU5gyw6kOcKscZFQbbc 3c6pqcH9kXzGrFxCUDF+qEAZELr4OXFIncDgqArygcdLv559UmtKKMzNf9YO605vR6V/ JVrHG+zQ0txpLo+FHy9Yhf1SI1NzmiL9lSAtgUQXEamGhqoxvOWODxkoa6iA3y2ir+nY Vq27CKA/JhG6PcpXM8IG/GQ2Lg3nhskAlkWq1qlYXjOw4jYW5IXEJRRiEQbalGgNuEXX esVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=COIcEt0f; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n9-20020a170906840900b0099279210464si2191765ejx.420.2023.08.10.15.03.48; Thu, 10 Aug 2023 15:04:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=COIcEt0f; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235535AbjHJTJI (ORCPT + 99 others); Thu, 10 Aug 2023 15:09:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41300 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235982AbjHJTJG (ORCPT ); Thu, 10 Aug 2023 15:09:06 -0400 Received: from mail-qv1-xf32.google.com (mail-qv1-xf32.google.com [IPv6:2607:f8b0:4864:20::f32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0384E2713 for ; Thu, 10 Aug 2023 12:09:06 -0700 (PDT) Received: by mail-qv1-xf32.google.com with SMTP id 6a1803df08f44-63d0d38ff97so5997336d6.1 for ; Thu, 10 Aug 2023 12:09:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; t=1691694545; x=1692299345; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=OBsV6+ts68b3MCiRcACqm+YmuoRBitbyDh+1vB9eOfo=; b=COIcEt0fqX73UeUlZllLXQvgTUm3SxDi7CEN7pJgTWDiV+EDp5lJjGdEZeRwUo8ba7 PXaBP/ouioLF1NT142OLFuwkskZeDbXO8am2iRGaWKue9antxAodqBhuD/TywtShnwKD EGXqkqzWvQkbkbBw8ZPH3qHUIhOe/Z0FBdAvip6DPUp9uImmcB6DzdEwjuuqM4o5+eRk 6i+/8cV93o0QKwhzUWti9awORJDqxqI09xY3Vnp8k7T2mOEdS8GrO2BaWkkmPvmXPR1F vjigqQ/CjxJhRXstDjJ8WoCVpCjWxVK9jAQ0airFucBdnmarCSvz80ZZGhCT3+IBIIPh TODA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691694545; x=1692299345; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=OBsV6+ts68b3MCiRcACqm+YmuoRBitbyDh+1vB9eOfo=; b=MiTAy+by1CpR+HO0krrx1wL/EuwwFUYdNtrFngsQLLatXIfFFCxspCAN/HtsAJDoYz 6BSh07T5vXdXq1V8iOBd5xJgcF6KIO1cjEQmA/TgteH86wfdWfIvYubzScTdoODADDse HkGmkLxJTjB0CUtkphxUoPlHK9c4/Bvf40h6xqFHbnUgzZ7LpKcxYpqNULMUi8bQcDY0 xTAo4l7UWdpWZB/Yfm+veCzk9NijODdKVf9O4i+22g1qr0iPIqpbYTxjKK5bR1UnMBEm rkwGweJMqfbHk+DcmlSn7Rd4wSkEXBKtNUBmvI3vYFvovFJi98DskEA3+/RRIOTdEkgF UFFg== X-Gm-Message-State: AOJu0YzSsPha0OD8taHtuWdHmHraBOjWDCIfXW37zT70LMOgdjYQlilJ JVvP+42AvdrWmLDtaMKoBcXiLA== X-Received: by 2002:a0c:f04c:0:b0:635:ea31:521a with SMTP id b12-20020a0cf04c000000b00635ea31521amr3605192qvl.7.1691694545156; Thu, 10 Aug 2023 12:09:05 -0700 (PDT) Received: from ziepe.ca ([206.223.160.26]) by smtp.gmail.com with ESMTPSA id l17-20020a0ce091000000b0061b5dbf1994sm659891qvk.146.2023.08.10.12.09.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Aug 2023 12:09:04 -0700 (PDT) Received: from jgg by wakko with local (Exim 4.95) (envelope-from ) id 1qUB1r-005IlP-2Y; Thu, 10 Aug 2023 16:09:03 -0300 Date: Thu, 10 Aug 2023 16:09:03 -0300 From: Jason Gunthorpe To: Lu Baolu Cc: Joerg Roedel , Will Deacon , Robin Murphy , Kevin Tian , Jean-Philippe Brucker , Nicolin Chen , Yi Liu , Jacob Pan , iommu@lists.linux.dev, kvm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 11/12] iommu: Separate SVA and IOPF in Makefile and Kconfig Message-ID: References: <20230727054837.147050-1-baolu.lu@linux.intel.com> <20230727054837.147050-12-baolu.lu@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230727054837.147050-12-baolu.lu@linux.intel.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 27, 2023 at 01:48:36PM +0800, Lu Baolu wrote: > Add CONFIG_IOMMU_IOPF for page fault handling framework and select it > from its real consumer. Move iopf function declaration from iommu-sva.h > to iommu.h and remove iommu-sva.h as it's empty now. > > Signed-off-by: Lu Baolu > --- > include/linux/iommu.h | 63 +++++++++++++++ > drivers/iommu/iommu-sva.h | 80 ------------------- > .../iommu/arm/arm-smmu-v3/arm-smmu-v3-sva.c | 1 - > drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c | 1 - > drivers/iommu/intel/iommu.c | 1 - > drivers/iommu/intel/svm.c | 1 - > drivers/iommu/iommu-sva.c | 3 +- > drivers/iommu/iommu.c | 2 - > drivers/iommu/Kconfig | 4 + > drivers/iommu/Makefile | 3 +- > drivers/iommu/intel/Kconfig | 1 + > 11 files changed, 71 insertions(+), 89 deletions(-) > delete mode 100644 drivers/iommu/iommu-sva.h Reviewed-by: Jason Gunthorpe At some point it would be a nice touch to split iommu.h into the consumer and iommu driver interfaces Jason