Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp3931477rwe; Tue, 30 Aug 2022 01:05:05 -0700 (PDT) X-Google-Smtp-Source: AA6agR712gGxS/Lb4C42Cvo/RTLPOShPpQ/kCdC+fwuyNC3sRMdavMlVLN1mgcZM6p8OOVbXTct6 X-Received: by 2002:a63:4625:0:b0:42a:d055:22df with SMTP id t37-20020a634625000000b0042ad05522dfmr17278029pga.312.1661846705194; Tue, 30 Aug 2022 01:05:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661846705; cv=none; d=google.com; s=arc-20160816; b=w8Dw8OXWwF8yymj7yZqHmbtNSOvMqyxNFQEV+vO9Vu7UNP8ZeEvGMn7rWwFLV/dyFy fU8kxKvI5WWVJH+Bdmkbs++yxQML7HVco40G0O+fvY9dyZ07SxLIdRaCPoWeKllXI+P0 NJYDAKMhkCzkYzqeFM3v2XwMZ0zxfmGZBHRabIuZeOhVaTz9Lm1zF1DvczSyhEWaL81I CfIZKDSDBqCXe8WsjKEtf6JTFXvJkpn8u+0i30fZ+C98D4lC5AtNdp+GOLvHg0aupcZL k4+ujX/qSyky30iPIwpqdpH2jv94TeB5jOnCSXonjWAFVcSopDJ7RFnB6Pw9FqCxNyWC GwoA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:to:content-language:subject:cc:user-agent:mime-version :date:message-id:dkim-signature; bh=qxB1U5aOxG51hJEpse3M8rQauf3GePF74GTSh6I+9oA=; b=BQ8vvGXb+rlOGFuMJFvMyk0b+LbnIc4McojKL9ucklU4chYhELfZzxjYZgAcT8wFlF JCslR2U0kcCGPa7q16+OEA4QyE6zk+sMlsjRdUnpTbiuaJvjpQFB4d9OPhsKdqiDNCas r24QJFHhnDNqJGXRgI4m4lDXZaMVsPzn67rOzUj1DCB5ZUyerlc+KoP2b//7TEJAeLhZ Nal/a+s6Kh6q4PaDyiHaKGLkvX+5Z3aqlDK+4dPgvFIIqmI0fb03Rh22B5zGyfEZn3Sx txXZY0zTFqz4va28OPRtH8DvRSxA74EEAVbYw3BOhQ19t22EMblDp9QEok+N08Pr5gA/ hu5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=ldspFfeW; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j12-20020a17090a7e8c00b001f54cedede2si10787413pjl.13.2022.08.30.01.04.54; Tue, 30 Aug 2022 01:05:05 -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=@intel.com header.s=Intel header.b=ldspFfeW; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231243AbiH3Hpt (ORCPT + 99 others); Tue, 30 Aug 2022 03:45:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43448 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230375AbiH3Hpp (ORCPT ); Tue, 30 Aug 2022 03:45:45 -0400 Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 630362610E; Tue, 30 Aug 2022 00:45:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1661845544; x=1693381544; h=message-id:date:mime-version:cc:subject:to:references: from:in-reply-to:content-transfer-encoding; bh=yi/c9wKZe1Xzm2RAJvy3wwK0+vYsU+x02Pu4wd0CR5k=; b=ldspFfeW5rQI0JdaopsTs9UeIzWp1butD1dgBdsYM1pqWNAv3KCAULqy SPM8OKiS8xd7fw98gRyp/dTaj3kaj0gNFaEDWmhKKRgS66xLfM8QzrfPG EClDw6tqNtOr2bWeC4J0r7zGWCOQTqlUq3ASY8afteSwhbEKszuBsOiKD P2Y3Qf3FjURMr3hVwRa8IMkqPD1GEMCjiZQxnjpcFzHpi1O0gaa7Wa9Ux +V4oJfkjxxnS34PYDxQgydASkThNdeL89lEo0nKYRLAvBSr6GcSP3ncH5 W1DJbj2uMTFfvwgrRQoee+VMLy4Nze+rm3r9EXn9yQQxrgkQOTmlpX2A/ w==; X-IronPort-AV: E=McAfee;i="6500,9779,10454"; a="282080082" X-IronPort-AV: E=Sophos;i="5.93,274,1654585200"; d="scan'208";a="282080082" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Aug 2022 00:45:44 -0700 X-IronPort-AV: E=Sophos;i="5.93,274,1654585200"; d="scan'208";a="672737036" Received: from hhuan14-mobl1.ccr.corp.intel.com (HELO [10.254.215.208]) ([10.254.215.208]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Aug 2022 00:45:37 -0700 Message-ID: <96ac1693-d87f-250d-c897-c79f13ed4c0a@linux.intel.com> Date: Tue, 30 Aug 2022 15:45:35 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Cc: baolu.lu@linux.intel.com, Eric Auger , Liu Yi L , Jacob jun Pan , Zhangfei Gao , Zhu Tony , iommu@lists.linux.dev, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, Jean-Philippe Brucker Subject: Re: [PATCH v12 13/17] iommu/sva: Refactoring iommu_sva_bind/unbind_device() Content-Language: en-US To: Yuan Can , Joerg Roedel , Jason Gunthorpe , Christoph Hellwig , Bjorn Helgaas , Kevin Tian , Ashok Raj , Will Deacon , Robin Murphy , Jean-Philippe Brucker , Dave Jiang , Fenghua Yu , Vinod Koul References: <20220826121141.50743-1-baolu.lu@linux.intel.com> <20220826121141.50743-14-baolu.lu@linux.intel.com> <47879368-fb4e-79aa-35f9-018d871f013c@huawei.com> From: Baolu Lu In-Reply-To: <47879368-fb4e-79aa-35f9-018d871f013c@huawei.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE 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 2022/8/30 15:30, Yuan Can wrote: > > 在 2022/8/26 20:11, Lu Baolu 写道: >> The existing iommu SVA interfaces are implemented by calling the SVA >> specific iommu ops provided by the IOMMU drivers. There's no need for >> any SVA specific ops in iommu_ops vector anymore as we can achieve >> this through the generic attach/detach_dev_pasid domain ops. >> >> This refactors the IOMMU SVA interfaces implementation by using the >> iommu_detach/detach_device_pasid interfaces and align them with the > > Did you mean using the iommu_attach/detach_device_pasid interfaces here? The device driver oriented SVA interfaces keep consistent as before. Here we only refactor the IOMMU internal implementation. Best regards, baolu