Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp5057352rwl; Mon, 3 Apr 2023 13:45:43 -0700 (PDT) X-Google-Smtp-Source: AKy350Y6SHkreW1bwWOBK3pVt24MBu0HKljylnFTnqqm1XNDeDNaIdvX/QCF0Rxwztnj1+Ie+a8C X-Received: by 2002:a05:6a20:131c:b0:de:4f40:e226 with SMTP id g28-20020a056a20131c00b000de4f40e226mr357pzh.52.1680554743291; Mon, 03 Apr 2023 13:45:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680554743; cv=none; d=google.com; s=arc-20160816; b=moYHiQoX0WzAtwJx5bwNkJ8D9esiKr8ztFimxrFurwQFapJvIs8Y4DumY0iOU1J7EH GTpedOEUn84TOfTXYIkxLX2jl134zJQmirgAYiliHVHSGaQapYBmf7LZNTo4IwQhdfZX 4Lb7w+0tRSqrZm79bLfCPMVzNPcAXw2KYC5akNg5cQgvkOLmDsovWRdkFMk5GjegKR7j C6DxX0ESXBlYdMh3UXOMwhhRDjMqwpE/96gAgyX59mHFzC64HWu++rxvnuKd6saSa0QS 1Q3hvq7JhTcMygUSujRrO6qk4y4AUIY5eeqlVuFHzqe0d5H2PKYsZCCXtSturfuotx6b vr+w== 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=DuViI5U56daQHPAiPBvFm1A3aDQUDGPCBudsb/GZOcA=; b=GAm0MgwOjeLfsJsupap6VHhiplh7brOwGeyezq8161ss0AB9KnjayZCyms6vQSBJLa YGxHJ/KK87H3YWMCOD+XzWxP8pA0Iur7AtxbNHO+jKc7Ib06hoQFnY0uRMqumcgA7Ga/ Ys7zSBpupK41Gbk8gOKMuKA9yHJmoSfPuVQBMgpfKjzm5N+hOy0TDtZ51yeevpDcy6ZQ CMH0wtbDguE3It809cz6DBh8FJMZI6gdLBeqGwGkYIpbYkVh6+GUweits0r1Ne04D5H+ f6QWOiZH2NbttNLt9J6yNRwwEN6zXleLP98aBGA0/faBivi9cfkf5Z9neZXAwpyn2cRJ grsg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=ldEo0HFD; 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 w5-20020aa79a05000000b00627debf9bd7si8712954pfj.233.2023.04.03.13.45.31; Mon, 03 Apr 2023 13:45:43 -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=ldEo0HFD; 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 S233470AbjDCUky (ORCPT + 99 others); Mon, 3 Apr 2023 16:40:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60780 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233118AbjDCUkw (ORCPT ); Mon, 3 Apr 2023 16:40:52 -0400 Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 063F1E4B; Mon, 3 Apr 2023 13:40:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1680554451; x=1712090451; h=date:from:to:cc:subject:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=5V7tfHtJX0OGp/o2K2RrvADYKgIPEcvGJ9Py6xIMOM8=; b=ldEo0HFD9k0WOz0DP+cFZJIru0/mx074nRZfNQYzPg4izsJ5tPqVULxx Q10W9Rr206lG8tFXhlQVGMkBIbbUylBLsGEAnqm4z6WvAQ1rTG8sf8dSs M/RbWrHvPFQyTcgEm6xkhq82aVwRRf6wY34iPKxZ38zOX7l3G6Y20Iwtx +tRnisK8m3HzXbg2jxMFzX49U54pQm9mc22hxVkcsILcHg93Wy7k25DTr Cm9+qEU1TchOzB9keunu+E0FB955ApmhkOmncvmlxoHFuRewbWwxtUkfC NPZ7oxc0eevjx5pszOO1ZEcKMXUZvwdu0mMjTF6uZ51qH/+hgmLGF+T+o A==; X-IronPort-AV: E=McAfee;i="6600,9927,10669"; a="428298974" X-IronPort-AV: E=Sophos;i="5.98,315,1673942400"; d="scan'208";a="428298974" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Apr 2023 13:40:51 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10669"; a="716422725" X-IronPort-AV: E=Sophos;i="5.98,315,1673942400"; d="scan'208";a="716422725" Received: from jacob-builder.jf.intel.com (HELO jacob-builder) ([10.24.100.114]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Apr 2023 13:40:51 -0700 Date: Mon, 3 Apr 2023 13:44:57 -0700 From: Jacob Pan To: Baolu Lu Cc: LKML , iommu@lists.linux.dev, Robin Murphy , Jason Gunthorpe , Joerg Roedel , dmaengine@vger.kernel.org, vkoul@kernel.org, Will Deacon , David Woodhouse , Raj Ashok , "Tian, Kevin" , Yi Liu , "Yu, Fenghua" , Dave Jiang , Tony Luck , "Zanussi, Tom" , jacob.jun.pan@linux.intel.com Subject: Re: [PATCH v3 3/7] iommu/sva: Support allocation of global PASIDs outside SVA Message-ID: <20230403134457.25f56d11@jacob-builder> In-Reply-To: References: <20230331231137.1947675-1-jacob.jun.pan@linux.intel.com> <20230331231137.1947675-4-jacob.jun.pan@linux.intel.com> 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,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 Baolu, On Sat, 1 Apr 2023 21:16:39 +0800, Baolu Lu wrote: > > +/** > > + * @brief > > + * Reserve a PASID from the SVA global number space. > > + * > > + * @param min starting range, inclusive > > + * @param max ending range, inclusive > > + * @return The reserved PASID on success or IOMMU_PASID_INVALID on > > failure. > > + */ > > Nit: the comments here also need to be changed accordingly. good catch! will fix. Thanks, Jacob