Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp894245ybb; Wed, 8 Apr 2020 11:59:03 -0700 (PDT) X-Google-Smtp-Source: APiQypJ9cZNWsa/MIt0CJ7Gm8xZNP4jL+jegXJBAdX7NyYDiK9dwrtSXV+LuGDTtyhPfI1r1/P6o X-Received: by 2002:a9d:6e02:: with SMTP id e2mr6724866otr.366.1586372343208; Wed, 08 Apr 2020 11:59:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586372343; cv=none; d=google.com; s=arc-20160816; b=y+BgH5jpHqHTQnk+2yM5f1VD5WOzfI6PY4TSee6CdABUOdk92DmqIiqS76Ow/BmH2W kidOqANT9sUpt/AzYOEbojbtDxYz8MyGtbcYhTlI1kHpIZYjJ26MYwMahqP09E1XdAGt nbkD8+TVNVchYDk+2HfbQ0h6c9xFm58J7a4MoJSegNnVuESmj0agC+Millnr7QNbJXnM 8bbbYg9FwmMoLS+V4IbdSfyY2Tg61XgPfVaNPz4mYpgLQ0k9VsEYACLEXUJjXeHcuS3t VNkEGO1bJ15BNAZ+H5wEck3ToA7Y3vgU7rcP4rWRTOWeEG91pQvPyYd+M7D5aaIvF+Kx hKPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date:ironport-sdr:ironport-sdr; bh=GSHjpapUPkbhmnQqLLy2RgEikTFsfRNjIizWLLhi4jk=; b=uDEnA7SlVDJeeLtDXJtXQxB6gxLIJKow/MzNgpNamrNwZsQAbfVbl6AGBQXowrnR12 xqrimuZtzOiJaJHhNNQGwwRaqNmug9usU17BRJGZDrAnPThk9599FAmXdENVUeFWGrxU Scb+an0sKtry3LpQBcqCDz4OjL45/7StAgWklNreoIxptryPyWK6WmIz4sAYcqPvHioM MkWfvVH552qTbJiHzovLzqr+iCR4fWfHGH+BFiA4oxlBWyJeRjjzntDLI7WPBIhoHOhd 5N/mpC2GAg5QMhKPtinZw21j+hUzp8GvXMmqOT3didehzze28KB6EzyuQsdzhfasQvLy +29g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w21si2392647oia.257.2020.04.08.11.58.49; Wed, 08 Apr 2020 11:59:03 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730139AbgDHQGD (ORCPT + 99 others); Wed, 8 Apr 2020 12:06:03 -0400 Received: from mga06.intel.com ([134.134.136.31]:62264 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729667AbgDHQGC (ORCPT ); Wed, 8 Apr 2020 12:06:02 -0400 IronPort-SDR: EQuy1YXZU1ZUHsEIbiMPSGfPewYu0IulUvXyeM0EYiMXUenlvL3FLMXt5Ha7WFKRrKnQGrBQp0 ukMPLP0AUZrA== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Apr 2020 09:06:01 -0700 IronPort-SDR: FWGMRCIDKc+4rShY/k2btbmNpB2Vde5BU/A9n1poyY3PXe4Ws5w3Xl/N5BgmtT1pk2Wkr9ZZko cDdb4dYAUqXA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.72,359,1580803200"; d="scan'208";a="330578827" Received: from jacob-builder.jf.intel.com (HELO jacob-builder) ([10.7.199.155]) by orsmga001.jf.intel.com with ESMTP; 08 Apr 2020 09:06:01 -0700 Date: Wed, 8 Apr 2020 09:11:52 -0700 From: Jacob Pan To: Joerg Roedel Cc: Lu Baolu , iommu@lists.linux-foundation.org, LKML , David Woodhouse , Jean-Philippe Brucker , Eric Auger , Yi Liu , "Tian, Kevin" , Raj Ashok , Alex Williamson , Christoph Hellwig , Jonathan Cameron , jacob.jun.pan@linux.intel.com Subject: Re: [PATCH v11 02/10] iommu/uapi: Define a mask for bind data Message-ID: <20200408091152.7e2a2fef@jacob-builder> In-Reply-To: <20200408130722.GA27140@8bytes.org> References: <1585939334-21396-1-git-send-email-jacob.jun.pan@linux.intel.com> <1585939334-21396-3-git-send-email-jacob.jun.pan@linux.intel.com> <20200408130722.GA27140@8bytes.org> Organization: OTC X-Mailer: Claws Mail 3.13.2 (GTK+ 2.24.30; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 8 Apr 2020 15:07:22 +0200 Joerg Roedel wrote: > On Fri, Apr 03, 2020 at 11:42:06AM -0700, Jacob Pan wrote: > > Memory type related flags can be grouped together for one simple > > check. > > > > --- > > v9 renamed from EMT to MTS since these are memory type support > > flags. --- > > > > Reviewed-by: Eric Auger > > Signed-off-by: Jacob Pan > > --- > > include/uapi/linux/iommu.h | 5 ++++- > > 1 file changed, 4 insertions(+), 1 deletion(-) > > > > diff --git a/include/uapi/linux/iommu.h b/include/uapi/linux/iommu.h > > index 4ad3496e5c43..d7bcbc5f79b0 100644 > > --- a/include/uapi/linux/iommu.h > > +++ b/include/uapi/linux/iommu.h > > @@ -284,7 +284,10 @@ struct iommu_gpasid_bind_data_vtd { > > __u32 pat; > > __u32 emt; > > }; > > - > > +#define IOMMU_SVA_VTD_GPASID_MTS_MASK > > (IOMMU_SVA_VTD_GPASID_CD | \ > > + IOMMU_SVA_VTD_GPASID_EMTE > > | \ > > + IOMMU_SVA_VTD_GPASID_PCD > > | \ > > + > > IOMMU_SVA_VTD_GPASID_PWT) > > Where and how will this be used? Can you add this in the patch that > actually makes use of it? > They are used in later patch when setting up PASID entry for guest SVA. [PATCH v11 04/10] iommu/vt-d: Add nested translation helper function > Also please add newlines before and after that define. > Will do, thanks. > > Regards, > > Joerg [Jacob Pan]