Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp2238358pxb; Wed, 30 Mar 2022 20:19:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJydmyZwzJC8DlEQoBgRlrkWPwoGnMHDO87RNTJOwo7kk0DyS6eNgHEwnMZovJbLMBZJJMet X-Received: by 2002:a63:9dc6:0:b0:398:6e02:c105 with SMTP id i189-20020a639dc6000000b003986e02c105mr9173973pgd.495.1648696788742; Wed, 30 Mar 2022 20:19:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648696788; cv=none; d=google.com; s=arc-20160816; b=QSXqw0IeD5OewyYQuJ2d/OoizPmIo4uo19aBbTsIbawTE3ndVS7ricYNAy+ZxNEOLd WeG9HSruPaeDNqDE9Y5UnTAwp89BzOh2NDc3RmijwAlRGxVmy/VXzRxyXXMXu8zta+VX BZs8C/sm6kOVkSfZgKUlXJYccS2xnKVkU2FUHG4vDMAVOCQHQLtF/UhDJGdOr0OpZeD2 3KcXGSt8jHJ2KcEI15LhSl05Qpxd8yZGmvbVJTfLpK+d7myzTZLbwjivtMPh60BFhTqn DrTx9g4Xg/n4NvQr50Y4JDuacf+cYitYF3ldIneeIWZggGrGssToamXYDBiGbjKhA13l mvxg== 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=OH1yCu6hgekADS4mi6uZC/W1DbWIuqzz/7eX8mZYDrU=; b=ZOGN6idmgbkWoXD3Vh/xeUJl7fOra+wg4G1ewQ99wENkva/zBLFyTMJNfiD63y4+2f gGey5Jn/OhM6n8GqqgzXeK+Fq/3vCTt2oSX8XU5eLaDVnIAx54mhARZBImiDxIwjr3BZ rxQnrWSy/H/uV64jxvL5QUYiaMKhLtWTk2wJ6P1HBqul1D8qnx/bW0M855jzkyafxtQu /RS3VyCtvq8W5I6Z9I3JzVQCNubHEbjFHPLDYd92FAw7XVCyGHHAV59yfvY0wsGv4LMh oki8JtSudz73U4tRrthowwTe0TUr0k1S1HxfMVwrJCGC4dYoAg2tq27ZbOC/ysM1raHS xLAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=XiQGN43y; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id k2-20020a056a00134200b004fa3a8dffe6si25514136pfu.157.2022.03.30.20.19.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 30 Mar 2022 20:19:48 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=XiQGN43y; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id CAEDC107A90; Wed, 30 Mar 2022 19:51:06 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242445AbiC3MUF (ORCPT + 99 others); Wed, 30 Mar 2022 08:20:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41166 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346106AbiC3MEb (ORCPT ); Wed, 30 Mar 2022 08:04:31 -0400 Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 386833B54D for ; Wed, 30 Mar 2022 04:59:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1648641546; x=1680177546; h=message-id:date:mime-version:cc:subject:to:references: from:in-reply-to:content-transfer-encoding; bh=tANUoNzHzK67sN+dxAnpjoWCep2qpLxGxl27vY7/z0A=; b=XiQGN43yrNKks5dmQ8+Nv3hKXPJ4cdq1I7GOnUNSK2IT37HRX5xzvYAt TeEEBwN9h7qECDEe6QKyQJHt8IB0v1LIyCIZc8332NMl03bteEryeMNY3 vUvwfpkc1sf5QCgGg19J1F4hKyI/h6J/FpUgpA+Lgg7bcp9eMv/RgCJve K39bIKT5gK46XjvoXwcnK5HS776Tp1f8z46CYinRkZcanM1+IPijO9vFU IIhVWEza0a7jvsqZu2ipKF5hMhM/8IW4Uuo4azOJaztQcYlUuAEz14jH0 qSgIosbSFgIXylJjdzP/GdlPWofZVOUDOna76LwDmMyUp7rBH5oKwCzI7 Q==; X-IronPort-AV: E=McAfee;i="6200,9189,10301"; a="259239359" X-IronPort-AV: E=Sophos;i="5.90,222,1643702400"; d="scan'208";a="259239359" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Mar 2022 04:59:04 -0700 X-IronPort-AV: E=Sophos;i="5.90,222,1643702400"; d="scan'208";a="565505459" Received: from blu2-mobl3.ccr.corp.intel.com (HELO [10.254.215.120]) ([10.254.215.120]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Mar 2022 04:58:59 -0700 Message-ID: Date: Wed, 30 Mar 2022 19:58:57 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 Cc: baolu.lu@linux.intel.com, Eric Auger , "Liu, Yi L" , "Pan, Jacob jun" , "iommu@lists.linux-foundation.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH RFC v2 01/11] iommu: Add pasid_bits field in struct dev_iommu Content-Language: en-US To: "Tian, Kevin" , Joerg Roedel , Jason Gunthorpe , Christoph Hellwig , "Raj, Ashok" , Will Deacon , Robin Murphy , Jean-Philippe Brucker References: <20220329053800.3049561-1-baolu.lu@linux.intel.com> <20220329053800.3049561-2-baolu.lu@linux.intel.com> From: Lu Baolu In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE, T_SCC_BODY_TEXT_LINE autolearn=no 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 2022/3/30 15:05, Tian, Kevin wrote: >> From: Lu Baolu >> Sent: Tuesday, March 29, 2022 1:38 PM >> >> Use this field to save the pasid/ssid bits that a device is able to >> support with its IOMMU hardware. It is a generic attribute of a device >> and lifting it into the per-device dev_iommu struct makes it possible >> to allocate a PASID for device without calls into the IOMMU drivers. >> Any iommu driver which suports PASID related features should set this >> field before features are enabled on the devices. > Miss a clarification for non-PCI SVA as discussed here: > > https://lore.kernel.org/all/85d61ad6-0cf0-ac65-3312-32d0cdeb1b27@linux.intel.com/ Yes. Thanks for the reminding. Best regards, baolu