Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp2653356iob; Fri, 6 May 2022 07:37:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzvgXtNeMUIdrSmVzP2PsMbNBAW1Vsy9KPYx2RUlfj4iswXnuupp0OEnP00kgaaAh5GAI9B X-Received: by 2002:a17:907:1c8e:b0:6f4:e24f:20e0 with SMTP id nb14-20020a1709071c8e00b006f4e24f20e0mr3172815ejc.227.1651847860307; Fri, 06 May 2022 07:37:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651847860; cv=none; d=google.com; s=arc-20160816; b=yPV2BWZqZ/r/mwujM/zf2AWVVhF4z2pSQjfKGdRK95heg/Y98hVZ267W3lHQAHo4CQ ymj+mWHFSFKlZGPpddCmnbXGYGnAKBB9pz+zgEVj4rbuM4AbdeblfxHd7CCb+o+N2C04 ELcsuzPUFRw3BaNQpCvnsbNdKYZY8OfWhDiZ+LfFrX0RPXH3Sw4gnbYSNmq/QQGsHXaq uOrcmFqwmNyYmdjeuvPc7pPnSHOgiTo9rzgYP1/qoAz6ojxXucLc8QfkGET7WW6O9oDM BuOhMrvjrm/BdhKt67qbsEOo1pAR+sUPPgH4w0tm0zNWmfu7N9BHIwmf87/n/31rMCsR u+gQ== 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:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=XCojLW+9ezVCq192dbkCy99WssFI1eBwqcSpomU98EU=; b=yzVitvFn/9VUJQHg50tshy8bHFKFWragozJXwfBovNt5gkGnBwjlre5I4FHdjEs2e2 EneAsHLTIb9bmjDE3VbhLFpasmP1dKXNYLZEIEAKbBJL9emEZ3OTjmVbG3IT0sVFunCW SEcWAo3pOJR0wahq7NgI3YTZxjrok5elSAkwmHkIoZiB07rVCguS1/uTHK+WKUcsRf5L kiaYctMdh+lYho2x1XrEJyBfJBaCFlFKPJBRWCSffYSNhbCSlc+e+AkPfItk2xXW5iB3 6+A3dGLmuaVguIDVVhGsWxnD4Nxm9f2KIM58QcG7peb01rzLlAw1svsa2yJrFDCK0P/+ nPVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="ZZx/90lB"; 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 d23-20020a05640208d700b00425e8ac3feasi3768873edz.90.2022.05.06.07.37.14; Fri, 06 May 2022 07:37:40 -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="ZZx/90lB"; 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 S240281AbiEEG3y (ORCPT + 99 others); Thu, 5 May 2022 02:29:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43350 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235313AbiEEG3v (ORCPT ); Thu, 5 May 2022 02:29:51 -0400 Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5AF4F1A049 for ; Wed, 4 May 2022 23:26:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1651731973; x=1683267973; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=XCojLW+9ezVCq192dbkCy99WssFI1eBwqcSpomU98EU=; b=ZZx/90lBDjVSJiDDpwk8wCIgoayK/P0pjtwjtC3sXh8nDpbtcAxCTMqS aGCaBNDr3tfAsW8dmOcXLoBewd/1BUraEdLC9+2vRKfnmpbtSQ14l9IRK Li1wsQtX5d1fiuBZSQWTRNydmsO2FDIVkBRFcQYrXSIOmBLCCn+jDBvUA 8NlhE2G+JC8sIKBTVqzHsufkB2aNH0FdIvs5pHe+5jpjLoPW0oRhXeLHp JevYMhUtkH5M32nHn9Yea7v3O2JKj5KZ76lw7pUujRsloIEKEb8vHsjTi z9qumrTOGrym4XzZsmDBPERLjrSb3P1vPUSdb/iX8fB9U2nzlMxHjjfT7 w==; X-IronPort-AV: E=McAfee;i="6400,9594,10337"; a="331001055" X-IronPort-AV: E=Sophos;i="5.91,200,1647327600"; d="scan'208";a="331001055" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 May 2022 23:25:49 -0700 X-IronPort-AV: E=Sophos;i="5.91,200,1647327600"; d="scan'208";a="563092452" Received: from minhaowa-mobl.ccr.corp.intel.com (HELO [10.255.30.75]) ([10.255.30.75]) by orsmga007-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 May 2022 23:25:45 -0700 Message-ID: Date: Thu, 5 May 2022 14:25:43 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.1 Subject: Re: [PATCH v5 02/12] iommu: Add pasid_bits field in struct dev_iommu Content-Language: en-US To: Jean-Philippe Brucker Cc: Joerg Roedel , Jason Gunthorpe , Christoph Hellwig , Kevin Tian , Ashok Raj , Will Deacon , Robin Murphy , Jean-Philippe Brucker , Dave Jiang , Vinod Koul , Eric Auger , Liu Yi L , Jacob jun Pan , iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org References: <20220502014842.991097-1-baolu.lu@linux.intel.com> <20220502014842.991097-3-baolu.lu@linux.intel.com> From: Baolu Lu In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.4 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_NONE,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 2022/5/4 02:02, Jean-Philippe Brucker wrote: > On Mon, May 02, 2022 at 09:48:32AM +0800, Lu Baolu wrote: >> 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. >> >> For initialization of this field in the VT-d driver, the >> info->pasid_supported is only set for PCI devices. So the status is >> that non-PCI SVA hasn't been supported yet. Setting this field only for >> PCI devices has no functional change. >> >> Signed-off-by: Lu Baolu > Reviewed-by: Jean-Philippe Brucker Thank you! Very appreciated for reviewing my patches. Best regards, baolu