Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp947020rwb; Fri, 23 Sep 2022 06:22:35 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4dB9Aohh2EQmhcMZRA3UpamvXK8J/v5h2cYdgTiFzEL+epI4bxIMl9wTFI4kcHLxsgZuTJ X-Received: by 2002:aa7:c956:0:b0:43b:206d:c283 with SMTP id h22-20020aa7c956000000b0043b206dc283mr8386380edt.381.1663939355108; Fri, 23 Sep 2022 06:22:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663939355; cv=none; d=google.com; s=arc-20160816; b=Ia1lztuqBnJ7ziitO4poryqiLv0I18scqDQZcrS9b7s1/ZnEbIqrz/4F1Z3ob8N1Kd M6iDl69lj1E9t394tAqADRiht1r8TGBgOrnqUTQflMUgAfdbNBNO2p0ElWYJIlXXABwO pS/gU9aU8j/kKKGP2BWZG5h4edrg5lyQsuAxS56zrYMHgXwL30feYYPM490Zni5t8Kks 6kdbpZ7qIdZWJaT3zTFSsgvOQrNnBAwnq6uHJHmJZkbmGiAOrUtGmlh7maM7UFL9yjNj tvIzEV855w8AyHszFHurhRPhZl+te5y7saChvscwnzZx+t0EIch9Q2BOkzKbQk4a05AB XfXQ== 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=X+p5MF00JMc7VDvFne6EpeMaGyGhX0RXnAUIQvwk4cs=; b=qpG7fEK4Q8nLNuw7Oix22W6ineNVlmv5o6pq4nwrBCjP1YtQTHsM0ACKiBIPTdn96J 2PjOwGl3x/c0rdjhf5RJ5Y5V64RdNPcy86OFzo2tXRKympsFJGt+odwKyg+8bLUq0rMK od0sKwTPvWwpIoGXU1T8xcJfau5jLq3aCLUClxe0lvQfIBg0J7l67HrQj0Xp+0NgVM8C 0stiJlyrx+liAf5t6s4eTHyQdqWpD/jMQgHfWKpcDdsUVnAE89+O0z7F6t74wqSc91Cf 7H6swXoGdV8hVeN8FkX1gwyqTPnk6VsNwaiqCPfaT0aAiVMXJB2rnRq+aJCP1y8qO/1o Kf2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=fUcSIEx+; 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 g7-20020a50d0c7000000b0044791991d0fsi6972608edf.439.2022.09.23.06.22.07; Fri, 23 Sep 2022 06:22:35 -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=fUcSIEx+; 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 S232343AbiIWNOG (ORCPT + 99 others); Fri, 23 Sep 2022 09:14:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41716 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232557AbiIWNNr (ORCPT ); Fri, 23 Sep 2022 09:13:47 -0400 Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E48D513EAD0; Fri, 23 Sep 2022 06:13:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1663938827; x=1695474827; h=message-id:date:mime-version:cc:subject:to:references: from:in-reply-to:content-transfer-encoding; bh=X+p5MF00JMc7VDvFne6EpeMaGyGhX0RXnAUIQvwk4cs=; b=fUcSIEx+zfqMEhTkgd+Pkn3R03/lf8pQyW7OXrtJPCzgOusAZ9p+wbj8 b4PyjPiQneDlJpU6O0vEsKZpxOrhqZftslu4Yxhl9aQ1vZai8V2AWs6YT CprG8hkHNxfkbUJhlc4M2QpYciQ9vhX9OJkeSXZf7jR4gc7i4pG4fdatM +RwO2bzmWrwtashcTXPGB72i8w9VjlNjIwI9/TE76EnSGjli/Pu1ZX2JA hXRiGE4lf9MtHthSpFnRp/RWacxsAB0au24WpRhzAk6fXc554qhKU5pIv Rex7B7uYSLlsqxDhm7PnNKRf47CkOAIZg09EWyXgBVq1F91pOzgKx1Bbi Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10479"; a="298186802" X-IronPort-AV: E=Sophos;i="5.93,339,1654585200"; d="scan'208";a="298186802" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Sep 2022 06:12:38 -0700 X-IronPort-AV: E=Sophos;i="5.93,339,1654585200"; d="scan'208";a="724122153" Received: from blu2-mobl3.ccr.corp.intel.com (HELO [10.254.214.140]) ([10.254.214.140]) by fmsmga002-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Sep 2022 06:12:33 -0700 Message-ID: Date: Fri, 23 Sep 2022 21:12:32 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.3.0 Cc: baolu.lu@linux.intel.com, Joerg Roedel , Christoph Hellwig , Bjorn Helgaas , Kevin Tian , Ashok Raj , Will Deacon , Robin Murphy , Jean-Philippe Brucker , Dave Jiang , Fenghua Yu , Vinod Koul , 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 Subject: Re: [PATCH v13 07/13] iommu/vt-d: Add SVA domain support Content-Language: en-US To: Jason Gunthorpe References: <20220906124458.46461-1-baolu.lu@linux.intel.com> <20220906124458.46461-8-baolu.lu@linux.intel.com> <075278e0-77ce-2361-8ded-6cd6bb20216f@linux.intel.com> From: Baolu Lu In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_NONE 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/9/23 21:07, Jason Gunthorpe wrote: > On Fri, Sep 23, 2022 at 08:41:56PM +0800, Baolu Lu wrote: >> On 2022/9/23 20:15, Jason Gunthorpe wrote: >>> On Fri, Sep 23, 2022 at 10:21:51AM +0800, Baolu Lu wrote: >>> >>>> At the beginning of this project, I wanted to consolidate the mm >>>> notifications into the core. However, ARM SMMUv3 and Intel handle the mm >>>> notifications a little differently. Then I decided to do this work >>>> separately from the current series. >>> It doesn't look really different.. >> They are essentially the same, but slightly different. For example, arm >> smmuv3 provides .free_notifier, and I don't think it could be merged to >> the release callback. > free_notifier allows to use mmu_notifier_put() instead of > mmu_notifier_unregister() which avoids a synchronize_rcu() penalty on > teardown. Intel should copy the same design. Ah! Thanks for the guide. I will head in this direction. Best regards, baolu