Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1510103rwd; Sat, 20 May 2023 23:31:48 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ46r1HkAUfb3eiCO0Q+/rEmu5LCiuIMKNdxASeO5EVZ6WzuxGHJwVLGS069LyOxHtmJk7Wk X-Received: by 2002:a17:90b:1d90:b0:253:78c0:b129 with SMTP id pf16-20020a17090b1d9000b0025378c0b129mr7027687pjb.18.1684650708156; Sat, 20 May 2023 23:31:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684650708; cv=none; d=google.com; s=arc-20160816; b=Nkc7bZ9WnpRDcJ2c8qbaVQ9tQzhwHerQb/R9r6BQXuqeSjALwnRLV9xupmvJxen/Qb 1dlSYKWunLvHEWxSscImHbvOzolk5V6i9k/JesLWNlIWJRcUvxH9arhDQ+VFEchNeIiM RvqEUabAr7GWRn90UIqANTYbxfQhJ8a/Zc217fhCuB8guf4u9qvXjZlXNtIfmGeUXnET DbetrnKOCDPCvjCAERl1tgDLEEXrkSfi/IwB4z0VCkG9cslDUYFVO9XSFsmok4R7a4Bi HZNaYKgqhygGW0urfEDN6uxprMqkGvTKSxBdww8ODRqE4ltXaDuOeh6wf/BcnQigXEVf EdyA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:to:content-language:subject:cc:user-agent:mime-version :date:message-id:dkim-signature; bh=xHmPx4WQqhkcEidOwa0gGs6zkKChW11ZTlQN9+20jzc=; b=UsXXIcXLTacpv/t0WASlxHNItJSqwvjRnVjXTfo+7z6nKzwwofSS6G+y2a45yJY8a3 fe1+EZAhQ3zX/UJUomKZgvHgaJzpkbeMgEeqMSpKCYeFpiRCoNvHnPytr0i6aaT3O1vN wTx9lG9G6NSL6ZCmJPQ0OVheTrwcCzTxNUo+viWpFsIuGStiwjDZmMYlMIL56hM+cyjV ygUcWnxv2eGVdxfrU1PjSmpEmmNurrt1BKDHpfMi94Q5xW1lWzbjjbaLXE6lRGkMBJ1c 74+tu4pj2pJEw6LXl0vcb5dfG61+7gYAS2LZIdev3jiHd8UvwloIWf+cPs3LXAzGSxz9 V4FA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=ZuWDNHQb; 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 t14-20020a17090aba8e00b0024b27e48a27si1224951pjr.74.2023.05.20.23.31.33; Sat, 20 May 2023 23:31:48 -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=ZuWDNHQb; 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 S229970AbjEUGWm (ORCPT + 99 others); Sun, 21 May 2023 02:22:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39208 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230004AbjEUGWi (ORCPT ); Sun, 21 May 2023 02:22:38 -0400 Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 75DEFE43; Sat, 20 May 2023 23:22:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1684650155; x=1716186155; h=message-id:date:mime-version:cc:subject:to:references: from:in-reply-to:content-transfer-encoding; bh=ekzYqo7EzgZT0OkwVWM3WQ4Ormn8rtrKMWfR7boXeYc=; b=ZuWDNHQb0MoaIRsXJ4OkGdk1l1hnLSlbR1lmV0iIrBOewNo3VYzJHGi8 YuTOxtO0vQFpp0zJ0TAP1dMc8i2Czm4Sp+fpSiqFs1hfAWsZqS4XrN591 3LKoO7Jb4NKeVJuUzaRIMemNi44IUzJrmPcC3sTd2jgaPUeIBp25/EXxf 0YBm90rSlXu3ropXNPo+cJfQ728HH4BBP7ssKB4UsP5OqSztgoJi9sBPX bgWTwrfnL0J56ksSs5UiTFs55/LyrSG6gWnzJrqeMqqRpZLTY97GIEY9s P46Nqv4q0XxiBefDxN5zlchzdr9Ng47NYiFiBtsRbFLOGEXxowY52rRGn w==; X-IronPort-AV: E=McAfee;i="6600,9927,10716"; a="332282579" X-IronPort-AV: E=Sophos;i="6.00,181,1681196400"; d="scan'208";a="332282579" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 May 2023 23:22:35 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10716"; a="1033113548" X-IronPort-AV: E=Sophos;i="6.00,181,1681196400"; d="scan'208";a="1033113548" Received: from allen-box.sh.intel.com (HELO [10.239.159.127]) ([10.239.159.127]) by fmsmga005.fm.intel.com with ESMTP; 20 May 2023 23:22:30 -0700 Message-ID: Date: Sun, 21 May 2023 14:21:48 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Cc: baolu.lu@linux.intel.com, Robin Murphy , Will Deacon , David Woodhouse , Raj Ashok , "Tian, Kevin" , Yi Liu , "Yu, Fenghua" , Dave Jiang , Tony Luck , "Zanussi, Tom" , narayan.ranganathan@intel.com Subject: Re: [PATCH v6 1/4] iommu: Generalize default PCIe requester ID PASID Content-Language: en-US To: Jacob Pan , LKML , iommu@lists.linux.dev, Jason Gunthorpe , Joerg Roedel , dmaengine@vger.kernel.org, vkoul@kernel.org References: <20230519203223.2777255-1-jacob.jun.pan@linux.intel.com> <20230519203223.2777255-2-jacob.jun.pan@linux.intel.com> From: Baolu Lu In-Reply-To: <20230519203223.2777255-2-jacob.jun.pan@linux.intel.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-5.9 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham 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 On 5/20/23 4:32 AM, Jacob Pan wrote: > PCIe Process address space ID (PASID) is used to tag DMA traffic, it > provides finer grained isolation than requester ID (RID). > > For each RID, 0 is as a special PASID for the legacy DMA (without > PASID), thus RID_PASID. This is universal across all architectures, > therefore warranted to be declared in the common header. > Noting that VT-d could support none-zero RID_PASID, but currently not > used. > > By having a common RID_PASID, we can avoid conflicts between different > use cases in the generic code. e.g. SVA and DMA API with PASIDs. > > Signed-off-by: Jacob Pan Reviewed-by: Lu Baolu Best regards, baolu