Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp626076ybb; Wed, 8 Apr 2020 06:49:49 -0700 (PDT) X-Google-Smtp-Source: APiQypIT0coRFKocF0a9RBFHkpueHr6gsW7TZq+zHoEIS6Q6SllhZu2JHpJsbCXSFLa6qN5HysKy X-Received: by 2002:aca:c54d:: with SMTP id v74mr2450465oif.50.1586353789345; Wed, 08 Apr 2020 06:49:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586353789; cv=none; d=google.com; s=arc-20160816; b=wVCRqhSeWN77DJpNfaKOOmfeupotjaOVydQb5s/tBtWJGa8AzCFywOGmVnF1vNY/56 R3gUodK5OMmydta+gNG417WcFLHCN9Ud475z2jgeUGAh77ojinG9aZmmKJpC9OBGyaUZ P9MQXSlDl+qFeHfiznAAAR/9FGip4SRhaOQFIpeNjuBlvrYLHs54VRbtkDZJhAIy89E2 67/1dV8E4Iq96D9Lty67R+Aa41JwlLMCOH0dWRWGrd3LfC/fm/oH3ARMtSWfUeh15P2Y D/wLUpA+qSjIyV/CtiPOAGzcpDWjbtJsv5zIYXQ5LwBxPi957G24uEFKfZXrUZnUodt3 beLg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=P8cl/3DdOds8zq0qbzRtlEx+hSBlnIyoAO1nRpwBe6A=; b=Lg7nTdug9UeIDCQKpgT7eMkw8T3OF6LjdfMi0mCyV2lP55yakWoF5IQhMPo33jKQtZ rCLvbPicu/o9BnVuI56lyIFS7ixU7T+7J52AxEi6UZMmJTXIVIWOrB0qbUwVC359YjF/ yXAkjT0oK4mijQjW59Gg6xIDrz4e/NsERkh+HrIDcl+V7XeUfDkI3vI3dgZpVU0LMoEP YFPHscv0Xml3yhe/gC+r0+qgHjo3j+K154paXFh2LX+ou8GYYnRB4AAV3xgPzR3Ym7Ne rs1TTelAlgfgo3nTCIpuAHuVrfbImEAhykTfnGvoDxQKQMjKKHop/I+vxveIkrYTem9w 6gpw== 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=8bytes.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d23si2862726oti.55.2020.04.08.06.49.35; Wed, 08 Apr 2020 06:49:49 -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=8bytes.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728918AbgDHNH0 (ORCPT + 99 others); Wed, 8 Apr 2020 09:07:26 -0400 Received: from 8bytes.org ([81.169.241.247]:58502 "EHLO theia.8bytes.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727815AbgDHNH0 (ORCPT ); Wed, 8 Apr 2020 09:07:26 -0400 Received: by theia.8bytes.org (Postfix, from userid 1000) id CE5312CC; Wed, 8 Apr 2020 15:07:24 +0200 (CEST) Date: Wed, 8 Apr 2020 15:07:22 +0200 From: Joerg Roedel To: Jacob Pan 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 Subject: Re: [PATCH v11 02/10] iommu/uapi: Define a mask for bind data Message-ID: <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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1585939334-21396-3-git-send-email-jacob.jun.pan@linux.intel.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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? Also please add newlines before and after that define. Regards, Joerg