Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C71F08C11 for ; Thu, 2 Mar 2023 16:54:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1677776051; x=1709312051; h=date:from:to:cc:subject:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=DwsJhH9kOHV7GD3CBh4CQOdjsIKuVme3C7GZneWT9P4=; b=E4G5OPGPogJUwF77piNy9DrmVR+Pilthmi9p/hCaSnZsP0kUrGSRGFGW l0sPnVJ/LfvLMqi5xqml02OAbddRYqCU7BzZqaxvlYY0ylezw3xziMU9a TsHhc94XDfg9Z7n+QJCv3mMqoIaCJ+qzMY29vLhlw+Ryh/RDZp1Pepq5c mumAoQzpTN0tr6rkfyjgWX9p94gAr0fDZpbualvGSLiF8mVuxN24Tw3// NxFQMYsDcgHEoFa6yRV7S8Bh6PoqB97JESeq4ONeyDaFlG6dNap5PcFed Otx6RP6iuwYsvgyZqCiURJl6Q0Su97n8BRsB6NaTZB6koxq6xbzQKgtcC w==; X-IronPort-AV: E=McAfee;i="6500,9779,10637"; a="314438155" X-IronPort-AV: E=Sophos;i="5.98,228,1673942400"; d="scan'208";a="314438155" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Mar 2023 08:54:02 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10637"; a="625014743" X-IronPort-AV: E=Sophos;i="5.98,228,1673942400"; d="scan'208";a="625014743" Received: from jacob-builder.jf.intel.com (HELO jacob-builder) ([10.24.100.114]) by orsmga003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Mar 2023 08:54:01 -0800 Date: Thu, 2 Mar 2023 08:57:51 -0800 From: Jacob Pan To: "Tian, Kevin" Cc: LKML , "iommu@lists.linux.dev" , Jason Gunthorpe , Lu Baolu , Joerg Roedel , "Jean-Philippe Brucker" , "Hansen, Dave" , Thomas Gleixner , X86 Kernel , "bp@alien8.de" , "H. Peter Anvin" , "Peter Zijlstra" , "corbet@lwn.net" , "vkoul@kernel.org" , "dmaengine@vger.kernel.org" , "linux-doc@vger.kernel.org" , Robin Murphy , Will Deacon , "David Woodhouse" , "Raj, Ashok" , "Liu, Yi L" , "Yu, Fenghua" , "Jiang, Dave" , Kirill Shutemov , jacob.jun.pan@linux.intel.com Subject: Re: [PATCH v4 3/6] iommu/sva: Stop using ioasid_set for SVA Message-ID: <20230302085751.1e7f02bd@jacob-builder> In-Reply-To: References: <20230301235646.2692846-1-jacob.jun.pan@linux.intel.com> <20230301235646.2692846-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) Precedence: bulk X-Mailing-List: iommu@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Hi Kevin, On Thu, 2 Mar 2023 08:58:21 +0000, "Tian, Kevin" wrote: > > From: Jacob Pan > > Sent: Thursday, March 2, 2023 7:57 AM > > > > > > - if (min == INVALID_IOASID || max == INVALID_IOASID || > > + if (min == IOMMU_PASID_INVALID || max == > > IOMMU_PASID_INVALID || > > min == 0 || max < min) > > return -EINVAL; > > > > if (!pasid_valid(min) || !pasid_valid(max) || ...) > will do > with that, > > Reviewed-by: Kevin Tian > Thanks, Jacob