Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp2524612ybb; Fri, 27 Mar 2020 07:14:01 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvPl1Wre4BwilGjcgGFKOxbEnVfATEBlpNVkhExTq9EoT+vwz0/MffIuOmHeJZ5UkzSlllv X-Received: by 2002:aca:edcf:: with SMTP id l198mr3983999oih.97.1585318440889; Fri, 27 Mar 2020 07:14:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585318440; cv=none; d=google.com; s=arc-20160816; b=hPVGYS0PRim2kgaeCSfPeahq3YSFs/aAA6zmdfWb1dfmrVEdjbsImLmP8yJ9hvBqHQ ZiLRaPCfNTiiWrHW+tdFMxhKVXDc9FvBBAcXkwbWqzZxksydsuhv0hNN9BzJPUzTVRl8 pK3Mmer1pHhgLPcRzUAOGaqnYFepzgSlH62+cFJko1g/9qVqoGRXZ1+HDr8j9VpzAhe9 R9OkxN9AztkoivNF782Gu2t4g0bnhA6A/Tkzv0v8PYTSwoisk6QRjntpitbo5zYrmNXs bmFkqEHrfpO6+FpxpFOD4peRSLUeuRV+fuHzyrokl8FpuGOHo31Cz+Od9EUtK4w9XNCt qI8w== 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:cc:to:subject:dkim-signature; bh=73K/CvdauDhfY4cLar4fKveCg4spHyzhJJwHX7Q9gjY=; b=M2V7RSxAm8v6+WAPawwS2QhEibjUKfOk+VcKqKfEA3kccyzMg7diEz1V8n1/07vXX8 lxQE6F7ncu59KmS/LB2XqdyaogbVxzCVFlmQZzT/gxFfaIJleBiWKP8nS2DnbtYEZzIj KNeaJnDde6yQ4GcmxCqjdbaV/VUDeeZeZwxJYpx8aG1oTVU5OLYQ1JxVI7SO3/jR4HhA ScU8Avb+Ht969jAlTQrrgaXh8vUA0IMw+g05awNHgvbEFpVYbOs1miwMSiuuwnjo8d8r j920j1d2xu0/6GqWkbWywT1Rm4wiIcKp6Pm0egIviDttt3Zm8yJb927a7Gofxrd0VXfD xGiQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=bO8D2Wfr; 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=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g81si2491544oia.8.2020.03.27.07.13.46; Fri, 27 Mar 2020 07:14:00 -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; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=bO8D2Wfr; 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=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727370AbgC0ONW (ORCPT + 99 others); Fri, 27 Mar 2020 10:13:22 -0400 Received: from us-smtp-delivery-74.mimecast.com ([63.128.21.74]:41923 "EHLO us-smtp-delivery-74.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726333AbgC0ONV (ORCPT ); Fri, 27 Mar 2020 10:13:21 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1585318400; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=73K/CvdauDhfY4cLar4fKveCg4spHyzhJJwHX7Q9gjY=; b=bO8D2Wfr9zxVVGKBuRnqaz2v6SuNM6TRr8xdxp4yyU9bXQP1ZzGfLS+Q+NenDunGA6y9G4 8HxY/23+qTckz/eLTvOSXLd+eVXvOVBS33Hthf40NO7ZS5UnURVgo6+Jvsg9vTLsEkgSLP IO7vDLd5nY/dLTB751TgKMH7uXM2udo= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-490-KXV_7fmYNrGr3T22wsjajQ-1; Fri, 27 Mar 2020 10:13:18 -0400 X-MC-Unique: KXV_7fmYNrGr3T22wsjajQ-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 3797E800D4E; Fri, 27 Mar 2020 14:13:16 +0000 (UTC) Received: from [10.36.113.142] (ovpn-113-142.ams2.redhat.com [10.36.113.142]) by smtp.corp.redhat.com (Postfix) with ESMTPS id C87E08C08D; Fri, 27 Mar 2020 14:13:07 +0000 (UTC) Subject: Re: [PATCH V10 02/11] iommu/uapi: Define a mask for bind data To: Jacob Pan , Lu Baolu , iommu@lists.linux-foundation.org, LKML , Joerg Roedel , David Woodhouse , Alex Williamson , Jean-Philippe Brucker Cc: Yi Liu , "Tian, Kevin" , Raj Ashok , Christoph Hellwig , Jonathan Cameron 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: Auger Eric Message-ID: Date: Fri, 27 Mar 2020 15:13:06 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.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=windows-1252 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Jacob, On 3/21/20 12:27 AM, 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 Reviewed-by: Eric Auger Thanks Eric > --- > 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) > /** > * struct iommu_gpasid_bind_data - Information about device and guest PASID binding > * @version: Version of this data structure >