Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2FB86C636D4 for ; Mon, 13 Feb 2023 19:08:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231161AbjBMTIv (ORCPT ); Mon, 13 Feb 2023 14:08:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44644 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231136AbjBMTIa (ORCPT ); Mon, 13 Feb 2023 14:08:30 -0500 Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2E78A15561 for ; Mon, 13 Feb 2023 11:08:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1676315294; x=1707851294; h=date:from:to:cc:subject:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=rEZn1HNF1pwFcnYLItVTRWNXypbJQGpnhpvtfKy2o20=; b=bDHLB+8c26PXdsNNE6ygOorrLGWukIHlna3nMPs9jjgbRAkEq/hCsj1L rifc4yFhaakyA6f5wwT6O49Rp5TbDpwSk0yuiq3Zhu08ngv7hix0iaATy cnSsYZTF06f/6epx8yd1thuaFXJS0aml/C41ajLl+oPTnnVtw6tbVYq2v bc33SXA8EX3L49URergh9zB+C7fY9i//sHLi/6yZWkFnI96GrIhdoO5IO rT4S6mR89LxPbVEKkPyklei5bhSbqQhnIj8MYpdsDJVgHf1+KVFTP/nyr 1HNL3eIeiHSuitN4obdBOXnEB7dYAlTdv5tZ7f0LbDmOzhIzNQZtluBpS g==; X-IronPort-AV: E=McAfee;i="6500,9779,10620"; a="328682744" X-IronPort-AV: E=Sophos;i="5.97,294,1669104000"; d="scan'208";a="328682744" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Feb 2023 11:08:13 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10620"; a="646489422" X-IronPort-AV: E=Sophos;i="5.97,294,1669104000"; d="scan'208";a="646489422" Received: from jacob-builder.jf.intel.com (HELO jacob-builder) ([10.24.100.114]) by orsmga006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Feb 2023 11:08:12 -0800 Date: Mon, 13 Feb 2023 11:11:52 -0800 From: Jacob Pan To: Jason Gunthorpe Cc: Jean-Philippe Brucker , LKML , iommu@lists.linux.dev, Lu Baolu , Joerg Roedel , Jean-Philippe Brucker , Robin Murphy , David Woodhouse , Raj Ashok , "Tian, Kevin" , Yi Liu , jacob.jun.pan@linux.intel.com Subject: Re: [PATCH 2/2] iommu/ioasid: Remove custom IOASID allocator Message-ID: <20230213111152.5ecf734b@jacob-builder> In-Reply-To: References: <20230210230206.3160144-1-jacob.jun.pan@linux.intel.com> <20230210230206.3160144-3-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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Jason, On Mon, 13 Feb 2023 12:24:15 -0400, Jason Gunthorpe wrote: > > We could also merge ioasid.c into iommu-sva.c at this point, since I > > haven't seen any interest for having multiple IOASID sets on Arm, but > > I'm not sure what the current plan is for vSVA on x86. > > Once the customer allocator is removed this is bascially a thin > wrapper around xarray > > So anything that needs multiple pasid spaces should just create it on > its own directly with xarray > Just wanted to double check that for devices on VT-d platforms that support both SVA and DMA API with PASID, we will still need a single global pasid space (due to IOTLB tagging). So this is not the "multiple pasid spaces" case here, right? As I replied to Jean as well, we could use the ioasid_set to separate SVA and DMA API PASIDs. Thanks, Jacob