Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp4595046ybv; Tue, 25 Feb 2020 23:33:19 -0800 (PST) X-Google-Smtp-Source: APXvYqz288ALKem7/ZtOiZeebPX/6N8QwpsDVr3h4ZnGvgln71TVSVL+fv2jKeKQdFgLgNLVh+ED X-Received: by 2002:a05:6830:1304:: with SMTP id p4mr2003416otq.327.1582702399416; Tue, 25 Feb 2020 23:33:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582702399; cv=none; d=google.com; s=arc-20160816; b=1JsTwZrIw+jnt+MgRVDNE5Ioe0bq8/OMegccC96JRkVyC2JYIgmjoTIXh+6QQYGZrl WLDrBgT5vGGXewQvo/EgWBRP35IhyRreSN11r3NVUNlIz1vhY834GI1LDNvnfNPxbK11 HwGmdTxvn5Kwnb7uONYycmQkNvgDFYWBzzZNHrBeNfDlX84R8lz8dIO7Mm7AOA07/O+W GHfXEspmEVtxGuvNya6LwZXaHmLws/OoTNa7ZsZRyYEJU8A3sk+W4KuboG/84Ru1Yq6b 7ygXnJMeG6PyecOPsK8tKkHbHjP3k6zq263Vlw+OB4M46gIERnbJQfbPLAm8abACQfbg 0QZg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=hxZUYP0cQ4s+D1GPGSIg13NXENyBceeLiQgMnelW0Co=; b=BPE/ismFFAMgW4Qk/Wgw0VnRxcQT18V+SOiM5aHIysvVKgtyUN88DIuCpWSHu2aF3C XKS9mMkD+rLsu2/x5gM5bLGL06g/S2SzbfgBZzdwQsW3LJB0B6zh/NKQ7fgVrze3gfyS LS2SaUjv7FZ1JAyZ15ELm3VuBUgy83bTkcwECkcAQNaOnMfkgkOcwyciTQ7ytdWC/T4M WpoBRQj5JD9hF1ANz3rIxsnYqdIGA+T8v4pIggkxk3yV0hMPjzqk7l//Jwu4cqAKbr/a jcMOJrz0qLP3C+PDLs3d2Zs49DaQYDlZQPkjXWWIjRXUQxHyKiU8foRflh8kFkpoDqZ7 ND/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Z+L1wubO; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j15si688225oie.15.2020.02.25.23.33.05; Tue, 25 Feb 2020 23:33:19 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Z+L1wubO; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727221AbgBZHbg (ORCPT + 99 others); Wed, 26 Feb 2020 02:31:36 -0500 Received: from mail-wr1-f65.google.com ([209.85.221.65]:32997 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726903AbgBZHbg (ORCPT ); Wed, 26 Feb 2020 02:31:36 -0500 Received: by mail-wr1-f65.google.com with SMTP id u6so1682168wrt.0 for ; Tue, 25 Feb 2020 23:31:34 -0800 (PST) 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=hxZUYP0cQ4s+D1GPGSIg13NXENyBceeLiQgMnelW0Co=; b=Z+L1wubOJ3gGRnqhuT1ZwDooxjKXaCTM3VWsZWLORPJqa9xxtrRYrmREYRwCw2YgO8 HKl4+knUWCmhZWZozBrcMIJxyqPx5GGSKZnevRzh1xx0OnU/NP6lHxYJfz5lWO3sNl50 iCRv3J5KH6YTeU5Jc1PD1pzvs4WdjkRnoRVGoOXrX1eH4VtS+U69d210rHLWlJB9C4wQ B522/8AkfM69ES4+RnCqMnsj+cefCm9/rN54vriduVWNm+Iro0L+qHn63iB2Y2WutZyr PCzo0LYEIiYvMJ4ZOsuGTEbSHq3w9FkXCz6rM11iGmi05xhHj526rEq3R+XF8Vw35qkN XvWw== 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=hxZUYP0cQ4s+D1GPGSIg13NXENyBceeLiQgMnelW0Co=; b=sG5COZsDkoUfSr4QVGcNRAsKrd87M4lb2P0p9cqZX0jDzqX0PO17ay3HyJEcYvENTw ZoasROn2/oYoWbKxEYl1d0+g5RIAWNmT8ocUb+mEW1Ucklpqp/RPn3nclESQE7CZ7Lw1 IAS9U0xEtgi6C+XHC+GkET5ZoVKw3HB4y9oyuLusCemHsiUJGT3vNj5Ecd5OLhxqot3E ipwjFjAMNDPRbr4sQ7qTAG7uFVx+zdJ4JSoMATMk2DP5GCI3/o/TaKBduXvdd0bXuf0E HeXNmrm0tdol6zLP/A9/8lBzDtXhCf9tLqOpTlhCCAbL25dyT2jaitbgEnGZx5uAsIMF GSBQ== X-Gm-Message-State: APjAAAUJDsH5NxodJf7IATN5dthtiK6t0cmSJZI39jhrJoafJ32KwKRE SNrMUDKcamHEEVFdSNHkAgpQQw== X-Received: by 2002:adf:e884:: with SMTP id d4mr3961692wrm.12.1582702293931; Tue, 25 Feb 2020 23:31:33 -0800 (PST) Received: from myrica ([2001:171b:c9a8:fbc0:116c:c27a:3e7f:5eaf]) by smtp.gmail.com with ESMTPSA id t187sm1820680wmt.25.2020.02.25.23.31.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 Feb 2020 23:31:33 -0800 (PST) Date: Wed, 26 Feb 2020 08:31:27 +0100 From: Jean-Philippe Brucker To: Christoph Hellwig Cc: Jacob Pan , iommu@lists.linux-foundation.org, LKML , Lu Baolu , Joerg Roedel , David Woodhouse , "Tian, Kevin" , Dave Jiang , Raj Ashok , Jean-Philippe Brucker Subject: Re: [PATCH 2/2] iommu/vt-d: Replace intel SVM APIs with generic SVA APIs Message-ID: <20200226073127.GA438595@myrica> References: <1582586797-61697-1-git-send-email-jacob.jun.pan@linux.intel.com> <1582586797-61697-4-git-send-email-jacob.jun.pan@linux.intel.com> <20200225191034.GA29045@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200225191034.GA29045@infradead.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 25, 2020 at 11:10:34AM -0800, Christoph Hellwig wrote: > On Mon, Feb 24, 2020 at 03:26:37PM -0800, Jacob Pan wrote: > > This patch is an initial step to replace Intel SVM code with the > > following IOMMU SVA ops: > > intel_svm_bind_mm() => iommu_sva_bind_device() > > intel_svm_unbind_mm() => iommu_sva_unbind_device() > > intel_svm_is_pasid_valid() => iommu_sva_get_pasid() > > How did either set APIs end up being added to the kernel without users > to start with? > > Please remove both the old intel and the iommu ones given that neither > has any users. The hisilicon crypto accelerator will be using the new API in v5.7 https://lore.kernel.org/linux-iommu/1581407665-13504-1-git-send-email-zhangfei.gao@linaro.org/ Thanks, Jean