Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp3926231rwe; Tue, 30 Aug 2022 00:58:18 -0700 (PDT) X-Google-Smtp-Source: AA6agR44++F8dSfJ1kumjCoYSRndEm5aWz0tdAy8Lgm8q7gQhZzWwiqUH5iPKVVlgPTb9EGi86+2 X-Received: by 2002:a17:906:58c9:b0:730:bc01:fd5f with SMTP id e9-20020a17090658c900b00730bc01fd5fmr15721127ejs.504.1661846298353; Tue, 30 Aug 2022 00:58:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661846298; cv=none; d=google.com; s=arc-20160816; b=spA6EiAp0VdzOrlhDIhnUPCCkxJOS17sixje8BYG1yumOQayJKuIqQhaqfef/rdDaF w3fluAvI8zIuq/FwbCdjgR2ekwUSoLOlXKmG0GDBgLIO5ehdjtsdfoAOuL9gZFCNzxD2 56DQZyEAcWpXased5NUpuBQVUyZ+bQScbYnGbIac7IaH3msphpLerRNoja61YHNbITBK mFEXIMHC9OKiqDNS1SSqmAk1odrDvxAP9e5V7mz3x+yYi3K7ZSN54scj2axMh8fy90yx W/HeKjjh3mfaCq/w/g0awjsGTQERxTmX6U2qIsSEflHuTKj+b2HkSA7vn0RvEQ6ivuiD 4iWw== 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=rKb27hp9/EnrybRuF4zamODHsnbqZw02DxoQglFamug=; b=dKX/3iiBM7WaiTS/u8zxQRNmLUvS0EF3CvLMQIQqq17UtIYloq/yVqzyk8M6CnUWnC CqOxRGnPp1Slx4pfpIl9prjrxSOnqjUv8xnlHhZzeFctWmVdbYrNC99qbeOZU63H+7vX pLZ+9eHjJeu8Hwmx+uBsqtOt1E/21v7quxhwAB3c0uyNuHnjV2BYWFU8wNnESZrS0mns trYxD/U3MX3Gt5di5OrImxe8VT4bporkHh9SDksIpwgknuySgS/thp93lhIMmJn5zxh6 GGRyimPfCiDYU0lCC0kys5BQk/0oFnXxtiDQWHyG+43YbtNOyXBIpNfZ1qZ118HjiCZQ jnDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="NCIg/jkQ"; 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 gb38-20020a170907962600b00715867834e3si8382582ejc.506.2022.08.30.00.57.48; Tue, 30 Aug 2022 00:58:18 -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="NCIg/jkQ"; 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 S229972AbiH3HrE (ORCPT + 99 others); Tue, 30 Aug 2022 03:47:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46710 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230328AbiH3HrC (ORCPT ); Tue, 30 Aug 2022 03:47:02 -0400 Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AB348A221B; Tue, 30 Aug 2022 00:47:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1661845621; x=1693381621; h=message-id:date:mime-version:cc:subject:to:references: from:in-reply-to:content-transfer-encoding; bh=yBpwSdK8tn25JNz7gtB+fP1W3XIksw4isildm6byryI=; b=NCIg/jkQxO9UYBsmJB2Bpgtl9cmvfIMpIfbGQMukHRbLJqOm+OTkP6/M Mz0/xS0T+a9tXev2Xyb8mQRSjvhdo2uUjLJ92gqzKyTXGLeNYmDKuT356 mRpad+LjSnmZW2uHRLrMHsIiAWgBRO8e9ZULpYMJfoNa6uJOUIzM36Nri 4cBanOMZGYynpLxPASA9q38qeVrUFwFNMSNVEsRFOnUGE2VlY2RMZrm1H yiq1W5AJfJmApLPb3jDSkBK5IQ6AZVEHCXfWUTjolDIHBiPbJVWflM0eN VqCM4uJR51SOq+NGRn/ThMpNprO91ldw2WD/PS6AKrAGtHAiJNHd2w1ps w==; X-IronPort-AV: E=McAfee;i="6500,9779,10454"; a="274857938" X-IronPort-AV: E=Sophos;i="5.93,274,1654585200"; d="scan'208";a="274857938" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Aug 2022 00:47:01 -0700 X-IronPort-AV: E=Sophos;i="5.93,274,1654585200"; d="scan'208";a="672737784" 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:46:56 -0700 Message-ID: Date: Tue, 30 Aug 2022 15:46:55 +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> <96ac1693-d87f-250d-c897-c79f13ed4c0a@linux.intel.com> From: Baolu Lu In-Reply-To: <96ac1693-d87f-250d-c897-c79f13ed4c0a@linux.intel.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, SPF_HELO_PASS,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:45, Baolu Lu wrote: > 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. Oh! A typo in the commit message, right? Thanks and I will fix it. Best regards, baolu