Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp6340378rwr; Tue, 9 May 2023 13:49:37 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7M36IRPtfuIFkcnH0YAdU4gu3PK1oL7rSGWRQHkyVZ0n1UyURcdkC7y7YmVNPX8usuQsvY X-Received: by 2002:a05:6a00:98a:b0:643:85a0:57fe with SMTP id u10-20020a056a00098a00b0064385a057femr23651984pfg.2.1683665377646; Tue, 09 May 2023 13:49:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683665377; cv=none; d=google.com; s=arc-20160816; b=Xek9DNGEVegGjQySC6s5ahjNV6KIXhrRLUPaEjUEhLrAaLEdq4MSNc9tSo/D3YxoT4 l7SHD3//ZWRw5h4p9XKJh8z8mo2WTbO/OYGlp3oBFlptEG1QBe1KbuhSd6SUfWu+0J+P LUw2/827bpLsy00bALzLyVGQYpPlTc3PvevEx4FXUj7k+8qfG3SfzqJF6Qu1TJQN2FYQ WMvfYUM8Uj16dMLscR0K946mkx9YghmwkBiFsUQ5wT13VA+vebJxTWpcbsgCtectP2et 5ENb3E+TIu+0Qq1OW+X5pyblxFdzODOmgJ67RIwYqVw4I/RcsRH3ijHZbhJcz3cfpY9D niog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date:dkim-signature; bh=hn4zpxnE5FbVBqRHr1FWOnrUXRtTHBzMObUQA3u3vxA=; b=A/SZMJoAGEt0Z6fH/r85GnPx+evZuzNbxphxosNvVfNa2zlTF1dJs4sv/1fHO0Tz30 MI9E0AREF3byPZLtUQVnUiX/RTsfa68xLAVfxEqvjzcOQB4HO0nz6Du3kE7ji1gp+/xg cbgh86D2x4Qbga3A/rs23wADZ3iA6FNzIv3iuKjMpmaZ9LNa/O1p6FyhIC+/Pv+SN8Md Hy/vKHrdg65DAU83zVOK+1swUn9aFyuLdrI5WLQWftz29OyZWQnUn4EGZcE8H+YcjWEm jOx+FzGX1Nd8r3jhYWPM5znFawoouMAoR9AU/2LD3nTXUgidxlyyibNVyjugioKrsRxY u4ng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=nD68Bybd; 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 e17-20020aa79811000000b006438319283esi3221946pfl.73.2023.05.09.13.49.23; Tue, 09 May 2023 13:49:37 -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=nD68Bybd; 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 S229543AbjEIUfV (ORCPT + 99 others); Tue, 9 May 2023 16:35:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60728 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234959AbjEIUfT (ORCPT ); Tue, 9 May 2023 16:35:19 -0400 Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ED6882122; Tue, 9 May 2023 13:35:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1683664517; x=1715200517; h=date:from:to:cc:subject:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=zDgUrx46HKYf2WDUcb3OSI439GIUg2nqyHSQb8R/LPM=; b=nD68BybdIjLNpuiq8tgOuHCTcDottfMKgtZ+yImSzbu4n2LVCIQe3vlW ZZay5VaYrKwGJynQwN83YB0/xmPBzHt1mdeQycE0UYs02wYyU0BjZlad0 i5k+utyEXtgA0W0yc9YRP3ki8UZTc/cNmFkruIMjRNqPDQPU213pYcNts pSqrG9Rle3yOklduDPsIu5wiJt2vcI+wjaOr/8dDFiWcHGilMHlW/KEzd Aylk0rGcHOCQuDkb6fIO1KEwFuuygWkoQah308lSkkbvKeL9BdYdq/aTu Y7IYFRpYCCBIdX+8mnpOlSEQdU+IDLn04Y/Dda4xVQQOVeiSNvpL9MoIF g==; X-IronPort-AV: E=McAfee;i="6600,9927,10705"; a="334504614" X-IronPort-AV: E=Sophos;i="5.99,262,1677571200"; d="scan'208";a="334504614" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 May 2023 13:35:16 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10705"; a="702004029" X-IronPort-AV: E=Sophos;i="5.99,262,1677571200"; d="scan'208";a="702004029" Received: from jacob-builder.jf.intel.com (HELO jacob-builder) ([10.24.100.114]) by fmsmga007-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 May 2023 13:35:15 -0700 Date: Tue, 9 May 2023 13:39:40 -0700 From: Jacob Pan To: "Tian, Kevin" Cc: LKML , "iommu@lists.linux.dev" , Robin Murphy , Jason Gunthorpe , Lu Baolu , Joerg Roedel , "dmaengine@vger.kernel.org" , "vkoul@kernel.org" , Will Deacon , "David Woodhouse" , "Raj, Ashok" , "Liu, Yi L" , "Yu, Fenghua" , "Jiang, Dave" , "Luck, Tony" , "Zanussi, Tom" , "Ranganathan, Narayan" , jacob.jun.pan@linux.intel.com Subject: Re: [PATCH v5 1/7] iommu: Generalize default PCIe requester ID PASID Message-ID: <20230509133940.6bf0a053@jacob-builder> In-Reply-To: References: <20230427174937.471668-1-jacob.jun.pan@linux.intel.com> <20230427174937.471668-2-jacob.jun.pan@linux.intel.com> <20230428085615.58e437c9@jacob-builder> Organization: OTC X-Mailer: Claws Mail 3.17.5 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 Hi Kevin, On Fri, 5 May 2023 08:28:13 +0000, "Tian, Kevin" wrote: > > > > > > > > By having a common RID_PASID, we can avoid conflicts between > > > > different use cases in the generic code. e.g. SVA and DMA API with > > > > PASIDs. > > > > > > You intend it to be generic but in the end only vt-d driver is changed > > > to use it in this series... > > change for SVA is in the patch. > > My point was that since it is common why there is no change in arm-smmu > driver to use the common macro? Got it, I will include changes to SSID 0 in smmu code. Thanks, Jacob