Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp4666460rwl; Tue, 28 Mar 2023 09:38:02 -0700 (PDT) X-Google-Smtp-Source: AKy350bRsOe/fq0NIZHl8tu9GsJHW12xxPcrytslAZRezAutb7pHFhw9/nE5qm0dNzXCmCt4VWf5 X-Received: by 2002:a17:906:318c:b0:8aa:502c:44d3 with SMTP id 12-20020a170906318c00b008aa502c44d3mr17817595ejy.41.1680021482293; Tue, 28 Mar 2023 09:38:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680021482; cv=none; d=google.com; s=arc-20160816; b=C8ogxaNSE6FEPtuyRJfT3qDiR9aRpf4yqmFavczM5NsULQTGmYeRk1nvJcpXtMtu6D 4/Cr5yuoLKTEais4mypWmGnueILX97jo8W6LSDqVcd3e7rw+0TgZYkjapunmLQ3zS8Zn P+5Fy/e0AE1lh+czLsGoS85aNOi6QukLXe5Kkdst6V0iPJndiKQ6UhpwS4ELdpHn19y2 GVuer6TSKZn+8iteHxpugTs1GNaB6JI0cfinWNFe57D3wdATzZkhJeiERedL8e/1+Po5 barC0TsJ4YGuGUaxftAo9n4G1T9G5Mvt0tvrHTfCvMi+7E/+P/hwMAryaCnJJy2klKAC Qw2A== 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=gnEVaxziELePFzSRSl8sNfFFO5aYBfx7z9jPfBQQ3Ac=; b=i8m8GurxRgoqAWHqZHbll6Sh70QTXXNvTvZRjqdmJRLG1BD6Cqh7eRqE0wA9fcHyA7 eHGJ4OrWw8xJxJ/WVtn44oQMdIHIdG6w8K3Mh5aVz1eNPkpL4vp6UWpU91sflW876wnT U1IbNCM1AbMOs2/VeOVUAl63DepAae5d9ZnGdB8zsbo5KFjz9sEq+fwEfDOnKqeVAc/U BA0UiByFFg7dFZVtNsWa6Dc9e2/iECzxnGKP9e3mja0KDxIuARNJGE0puCk+gUAViu26 vrVJlSI71dRCnYc1pjTbNUu/5s7+P1BJfVyQLRJX7tRTtQ9y3ccn/1EQPx8Ht42P5Nl4 cr3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Y40m75ra; 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 jg10-20020a170907970a00b009334769adc2si32791521ejc.457.2023.03.28.09.37.37; Tue, 28 Mar 2023 09:38:02 -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=Y40m75ra; 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 S231657AbjC1Q2Y (ORCPT + 99 others); Tue, 28 Mar 2023 12:28:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38318 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230384AbjC1Q2X (ORCPT ); Tue, 28 Mar 2023 12:28:23 -0400 Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 04BCDD533; Tue, 28 Mar 2023 09:28:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1680020897; x=1711556897; h=date:from:to:cc:subject:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=PutlLLRQ0cjX+4MJOODPdoxCIDXtRmBjpz7PWw8bXP8=; b=Y40m75raQFF95oDCjb1C75egA+ADECHc1QxMp+L8MBa26fmuS7CGpErX ARd+yusiV7jtz5nFJkeIMrrdbX0mM9e6DKcFy8G/ZT9fW6oraacM7KhrW V6ws1hVPaOF54C2MvfazvBU9dzRTDhJgR/CHTUGNlcqcnUSAIcA3GluR1 mDZZWRWYMSpsGhq2ybQOdSjRCox4LA6mIrL5i1mL5qfKhbAmnBOXN0vAr 14YwzG0bAlS2IeYp0qfkEQPG+by5x3+fDe1RSc1wj3Syxu4uqv8A+G1UI XHeYWk+3oYJ1IFz0JXwoQZbnu0zwedKApIXp4WdA4ZXYB7CcsphEOjpry Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10663"; a="405558062" X-IronPort-AV: E=Sophos;i="5.98,297,1673942400"; d="scan'208";a="405558062" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Mar 2023 09:28:16 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10663"; a="683957590" X-IronPort-AV: E=Sophos;i="5.98,297,1673942400"; d="scan'208";a="683957590" Received: from jacob-builder.jf.intel.com (HELO jacob-builder) ([10.24.100.114]) by orsmga002-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Mar 2023 09:28:13 -0700 Date: Tue, 28 Mar 2023 09:32:16 -0700 From: Jacob Pan To: Jason Gunthorpe Cc: "Tian, Kevin" , LKML , "iommu@lists.linux.dev" , Lu Baolu , Joerg Roedel , "dmaengine@vger.kernel.org" , "vkoul@kernel.org" , Robin Murphy , Will Deacon , David Woodhouse , "Raj, Ashok" , "Liu, Yi L" , "Yu, Fenghua" , "Jiang, Dave" , "Luck, Tony" , "Zanussi, Tom" , jacob.jun.pan@linux.intel.com Subject: Re: [PATCH v2 3/8] iommu/sva: Support reservation of global SVA PASIDs Message-ID: <20230328093216.1c7afc1f@jacob-builder> In-Reply-To: References: <20230327232138.1490712-1-jacob.jun.pan@linux.intel.com> <20230327232138.1490712-4-jacob.jun.pan@linux.intel.com> <20230328083110.294a327c@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.4 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_NONE autolearn=unavailable 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 Jason, On Tue, 28 Mar 2023 12:55:40 -0300, Jason Gunthorpe wrote: > On Tue, Mar 28, 2023 at 08:31:10AM -0700, Jacob Pan wrote: > > > > this would be future proof when the same driver starts to allocate > > > more pasids for other usages e..g siov. > > I don't have strong preference here. Jason and others? > > Oh I'm all for getting the word SVA out of the PASID infrastructure. > > SVA has nothing to do with PASID other than it requires it to work. > I will move pasid allocation code to iommu.c then. Thanks, Jacob