Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1132835pxb; Thu, 4 Mar 2021 04:17:57 -0800 (PST) X-Google-Smtp-Source: ABdhPJwvbLU9wT/LnQTUpisEM4aIv9GKVFg1bmnzCpgdoZIgcdU9sp67Xhqa5lhHbz2INgq+l/Du X-Received: by 2002:a17:906:6558:: with SMTP id u24mr3981991ejn.185.1614860276871; Thu, 04 Mar 2021 04:17:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614860276; cv=none; d=google.com; s=arc-20160816; b=F55EZraUClOaYGsWfk6eTP+/idTNZ4nReo2zU3rv7le1+fsup5jwnYfi8SONmfGHfE jRCbSYipOPFjUFtuE+eOdeZrU3d1CfJx3FNj7bxAE/UrLt8jr7DVzZEmaO3kGYJB3Ep2 MkyAlMWeCpypndD4UhhbeVg7Xiz7RlvLwdnJ54hV5eyF3gnalMHG3qX2U8LP8S7o5ME9 IoyzG6/u+K4xQwkvtmnsPz5aNMN9c22v1/5HftJy/uAeURuc1RQoZmPBl1CQRmjF+A7u nz3Yx73ZLgAWsAWhUyqsdlJv1IbQVXojuuBWYjiDZvvqyPUuhadJ+CCbReDq84ml6zsw W5mw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=i2EmiA2OI6AS1yv/kESZ25uJxCrsbJD4OPafUbCob7k=; b=nTquMR9MrGukhIGUaaV9bAuutPH98RGF/ny4qKVXLP/Nmv26zuMTAjEtO7cblBgJgi 7VHhviEfwD4Iic4pA8fuC3JquSZHkIfnuY5F1oDq+VJn6RoeRsFzW1oxNAZB41gDzE5/ rdIuvcS3iKo5Tz/q3N/a2oqvxsz6wF/8yZ9lUVFnFer3CcHUsE31wB7V00dPeebjICt8 rxTL7tlML/9K1mJmmpumx8DMs3hdu6t+zODGSm7Iic43pyD9Guv/SvkcVo9Wk0BfuP7z AjujKGTt6jCfKfQH1f1JoOZhk0EYZx1wRxNnonmTfCNd6tvXGOBb6M5ldcZKgJzTopcb ZaoA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=G7Wv9nJ4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z5si17028616edp.552.2021.03.04.04.17.34; Thu, 04 Mar 2021 04:17:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=G7Wv9nJ4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233934AbhCCSgA (ORCPT + 99 others); Wed, 3 Mar 2021 13:36:00 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43194 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1385485AbhCCRTy (ORCPT ); Wed, 3 Mar 2021 12:19:54 -0500 Received: from mail-wr1-x42e.google.com (mail-wr1-x42e.google.com [IPv6:2a00:1450:4864:20::42e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1CC52C06175F for ; Wed, 3 Mar 2021 09:19:13 -0800 (PST) Received: by mail-wr1-x42e.google.com with SMTP id d11so24537080wrj.7 for ; Wed, 03 Mar 2021 09:19:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=i2EmiA2OI6AS1yv/kESZ25uJxCrsbJD4OPafUbCob7k=; b=G7Wv9nJ4rffonUPHi15xk4myESuF1veXlWxhT6o1EflZeRo7Es0NPuoJvoWKAMFaXn a8HSUzKKOdcBC11ggt5ntPm2ZHzRAlrEDwLk+uG+ahMNqGmhdUVm4eyJ9RqUvAM6vrEc t8RObshVlZWj7/nsMtM8Qkv0RWNXngpUPL0uTytGMVh8xDFblD332rtFAyE/vEmKLaG8 ze3Sz1EVrorfCpgAOdVTAhxVf+fTaRyvBFJosrkBHZ/jgD0bOdmdRiIK6FwYGHrh5t/g rTr+S9l1vQbvmeZuk4GjEjOv+c6yYz4AYk91JxwmeTOjSHX56NTmPArkkazCvqQGAyH0 7/GA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=i2EmiA2OI6AS1yv/kESZ25uJxCrsbJD4OPafUbCob7k=; b=SJjwUKhYZHzzY3oeXbXPZnMHFDJ2N2g0nJAz04LfiJy4xf0gahGUHvoB6N9CLo7zSI lDxJWk82fUBxIO/HOnZLAoh3+drEvIk3GJDfRrfyiXFiOuPZQod8DX5+IsHKrei8AJqT EWDD2JeuI2cq3XZ++IBmM4xK5KdNUvzMvw3/97Dpu8W3B67BVUz+G6VMF9o3FKnSpLjM TszH/anG+VKrJei2JGz/zSbd117l5TAh6UHgb5k7qNM2+c4BXaON4UIvPAwqRSjOdvjO K4D58o6lRN+sB/v+1s1wK+k2So4hTBst6F/I3RF60ialg2oak5Z/5WJyFKj9vQfscfwk AAcQ== X-Gm-Message-State: AOAM530MNwXd7iKKbmwZKN7DFlHMKadNcJVjuu+9ARvhBh0HjVDWKyfW oHgiuE+MiD4Ic3TbhQVIX0XFaw== X-Received: by 2002:adf:f7cc:: with SMTP id a12mr28284530wrq.54.1614791951832; Wed, 03 Mar 2021 09:19:11 -0800 (PST) Received: from myrica ([2001:1715:4e26:a7e0:116c:c27a:3e7f:5eaf]) by smtp.gmail.com with ESMTPSA id z7sm4968309wrt.70.2021.03.03.09.19.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Mar 2021 09:19:11 -0800 (PST) Date: Wed, 3 Mar 2021 18:18:49 +0100 From: Jean-Philippe Brucker To: Vivek Gautam Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, iommu@lists.linux-foundation.org, virtualization@lists.linux-foundation.org, joro@8bytes.org, will.deacon@arm.com, mst@redhat.com, robin.murphy@arm.com, eric.auger@redhat.com, alex.williamson@redhat.com, kevin.tian@intel.com, jacob.jun.pan@linux.intel.com, yi.l.liu@intel.com, lorenzo.pieralisi@arm.com, shameerali.kolothum.thodi@huawei.com Subject: Re: [PATCH RFC v1 08/15] iommu: Add asid_bits to arm smmu-v3 stage1 table info Message-ID: References: <20210115121342.15093-1-vivek.gautam@arm.com> <20210115121342.15093-9-vivek.gautam@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210115121342.15093-9-vivek.gautam@arm.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jan 15, 2021 at 05:43:35PM +0530, Vivek Gautam wrote: > aisd_bits data is required to prepare stage-1 tables for arm-smmu-v3. > > Signed-off-by: Vivek Gautam > Cc: Joerg Roedel > Cc: Will Deacon > Cc: Robin Murphy > Cc: Jean-Philippe Brucker > Cc: Eric Auger > Cc: Alex Williamson > Cc: Kevin Tian > Cc: Jacob Pan > Cc: Liu Yi L > Cc: Lorenzo Pieralisi > Cc: Shameerali Kolothum Thodi > --- > include/uapi/linux/iommu.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/include/uapi/linux/iommu.h b/include/uapi/linux/iommu.h > index 082d758dd016..96abbfc7c643 100644 > --- a/include/uapi/linux/iommu.h > +++ b/include/uapi/linux/iommu.h > @@ -357,7 +357,7 @@ struct iommu_pasid_smmuv3 { > __u32 version; > __u8 s1fmt; > __u8 s1dss; > - __u8 padding[2]; > + __u16 asid_bits; Is this used anywhere? This struct is passed from host userspace to host kernel to attach the PASID table, so I don't think it needs an asid_bits field. Thanks, Jean