Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp2303956ybb; Sat, 21 Mar 2020 18:31:21 -0700 (PDT) X-Google-Smtp-Source: ADFU+vua9QpcGpAXtiMaKUcJ/jyBHHfz1dkVMgNEusKVqsIDJohypntR1ZgHoYd0fWbqCO2dyf+k X-Received: by 2002:a9d:4d0d:: with SMTP id n13mr12899687otf.19.1584840681556; Sat, 21 Mar 2020 18:31:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584840681; cv=none; d=google.com; s=arc-20160816; b=SizKcEbY6KKVRuBMnzPyc6lLw561HLlvi1WvUQMaWKU/5aSb0KV9s6KTG07NTCqeDz QtjP2Q0NNNQ//Ceg7jDUOq4sX5Grtl0YxaNt6UjnpICfThej99H5m3lACF2Q/9vw682P 5yWdIiB8UxNLBIW3ydTUzYjQkWsW3ng/C2VJDCU9JXfbrTssAyf8rnALssxxRa0Ay+0N TA5DhgU1UAVqsBWeFUjqo7NFc5fvQ6GBYMRMph5bcjtZxWz6+Ze6XRVaZvhu3EasU7u7 nwDMV3Vb2hX+6SZTsTM9Cw5NELhoe+q6CfhVxQQvuIZah4lDa5nbVhMZzV2GdxgtUko7 hSnw== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:to:subject:cc:ironport-sdr:ironport-sdr; bh=Js0aOQsKSXKdrNHlUG2lNvQq5/NoeLHdedtbMcwYiVE=; b=aSGtKJFHQqHOxiSxPnDs6MZUqeC1JN9jM3JL9z5uFvNrqCcTw8uVaAxagZnvgcgEhn kMRmSAqz7CBNW5WeXd1wNpOplEKIMU97vFc4s9a1VkUugG1Fx0bvnceltmyu01wNedY9 pxUYDYsq3eA1Kime/7bW1qQKO62NlC3rPsGnbD0oFFbzkRhDAq4FBf+GiCn9rzpku3ye pydffKSwSOWlrVJaObS7gYpzOKGRe+AKPkfRb9Vkm3+E67jY3YCK0Tl2eneyqTYXFrga DpnKDXKTsuln573AzoNjZrTb5mGP/+q6SumcFWesf5HxySeOja7pIRfNBdKyiszESb8e uzVw== 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 l143si5061044oih.269.2020.03.21.18.31.09; Sat, 21 Mar 2020 18:31:21 -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 S1728118AbgCVB3j (ORCPT + 99 others); Sat, 21 Mar 2020 21:29:39 -0400 Received: from mga12.intel.com ([192.55.52.136]:65450 "EHLO mga12.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726859AbgCVB3i (ORCPT ); Sat, 21 Mar 2020 21:29:38 -0400 IronPort-SDR: qWmlt/qxraIgO2TMLYnyXlLkRY0PurKycktrgSaotzl6oe6DaR9hCnJt67yagrohnce14pDo3c 5JJVGuH/FrbQ== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Mar 2020 18:29:37 -0700 IronPort-SDR: uvgmWcsmqqPKN/s0mPCsPuLNZQTddXWljiLsdd1lxX6ysU7uzjzaaYeFXyfv0k+diEGjxLU4Ot PGJR6W699pPw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.72,290,1580803200"; d="scan'208";a="419117017" Received: from blu2-mobl3.ccr.corp.intel.com (HELO [10.254.213.45]) ([10.254.213.45]) by orsmga005.jf.intel.com with ESMTP; 21 Mar 2020 18:29:33 -0700 Cc: baolu.lu@linux.intel.com, Yi Liu , "Tian, Kevin" , Raj Ashok , Christoph Hellwig , Jonathan Cameron , Eric Auger Subject: Re: [PATCH V10 02/11] iommu/uapi: Define a mask for bind data To: Jacob Pan , iommu@lists.linux-foundation.org, LKML , Joerg Roedel , David Woodhouse , Alex Williamson , Jean-Philippe Brucker References: <1584746861-76386-1-git-send-email-jacob.jun.pan@linux.intel.com> <1584746861-76386-3-git-send-email-jacob.jun.pan@linux.intel.com> From: Lu Baolu Message-ID: Date: Sun, 22 Mar 2020 09:29:32 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 In-Reply-To: <1584746861-76386-3-git-send-email-jacob.jun.pan@linux.intel.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020/3/21 7:27, 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. > --- > > 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) As name implies, can this move to intel-iommu.h? Best regards, baolu > /** > * struct iommu_gpasid_bind_data - Information about device and guest PASID binding > * @version: Version of this data structure >