From mboxrd@z Thu Jan 1 00:00:00 1970 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 07F0D1FA0 for ; Tue, 21 Mar 2023 06:16:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1679379373; x=1710915373; h=message-id:date:mime-version:cc:subject:to:references: from:in-reply-to:content-transfer-encoding; bh=IfVWlROUvFTg3fbNGSjW4+BuBAC1kv1Hcw4K8n9PyBc=; b=YkjuAhrYxfbkbRz00CDk+/xz9wzsohgdTuDcC7OfyyR6Mob2H47YMJ+9 j2MJ+GHmKSJI89uBNbc0Qp2AZp3jVAhOOdS+HUOfZ4eEKqzx2MOVC5O68 8NtNNbX2dZT4S2OIbu9cDlctOVMg5aawRfQC6ms4lXBvVx2TegUccMlUz 3S9gKB+GU/07y9pD2hdaIiIH4XxxUF1ObXS7u3UDkAWNskPqBCtqhkch5 gUeC4iqBcBGUXF9+VPPA1nb6Fd6pDTipP4r0RrZvTKKheYeN7PIlFPG84 BDPzTow4rvvPE6WhCLShB3Z3pOw7CHGC8U3UVcthzJDRhf4QFQFoypPcW g==; X-IronPort-AV: E=McAfee;i="6600,9927,10655"; a="318509561" X-IronPort-AV: E=Sophos;i="5.98,278,1673942400"; d="scan'208";a="318509561" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Mar 2023 23:16:12 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10655"; a="805198423" X-IronPort-AV: E=Sophos;i="5.98,278,1673942400"; d="scan'208";a="805198423" Received: from allen-box.sh.intel.com (HELO [10.239.159.48]) ([10.239.159.48]) by orsmga004.jf.intel.com with ESMTP; 20 Mar 2023 23:16:05 -0700 Message-ID: <00ee54f0-52c9-8f35-fdc4-aa3c3cd9e755@linux.intel.com> Date: Tue, 21 Mar 2023 14:14:53 +0800 Precedence: bulk X-Mailing-List: iommu@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.1 Cc: baolu.lu@linux.intel.com, Will Deacon , David Woodhouse , Raj Ashok , "Tian, Kevin" , Yi Liu , "Yu, Fenghua" , Dave Jiang , Kirill Shutemov , Tony Luck Subject: Re: [PATCH v7 4/7] iommu/sva: Stop using ioasid_set for SVA Content-Language: en-US To: Jacob Pan , LKML , iommu@lists.linux.dev, Jason Gunthorpe , Joerg Roedel , Jean-Philippe Brucker , Robin Murphy , Dave Hansen , 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 References: <20230320185910.2643260-1-jacob.jun.pan@linux.intel.com> <20230320185910.2643260-5-jacob.jun.pan@linux.intel.com> From: Baolu Lu In-Reply-To: <20230320185910.2643260-5-jacob.jun.pan@linux.intel.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 3/21/23 2:59 AM, Jacob Pan wrote: > From: Jason Gunthorpe > > Instead SVA drivers can use a simple global IDA to allocate PASIDs for > each mm_struct. > > Future work would be to allow drivers using the SVA APIs to reserve global > PASIDs from this IDA for their internal use, eg with the DMA API PASID > support. > > Signed-off-by: Jason Gunthorpe > Signed-off-by: Jacob Pan Reviewed-by: Lu Baolu Best regards, baolu