Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp444578ybk; Wed, 13 May 2020 04:22:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz/YuwuvC4U0oO6rafNTIiFUP0li4h0G1Dqd316AbWR9/JGNgv+0C+PTp99Xj6HidUPmfS4 X-Received: by 2002:a17:906:2448:: with SMTP id a8mr9333849ejb.310.1589368963733; Wed, 13 May 2020 04:22:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589368963; cv=none; d=google.com; s=arc-20160816; b=UbET1k1Dn2vIPkU/JIBi0xXt+ZofSkprU1tdc540SZ0YLsAPB7pGSLcfevShzjcBsE DNCco0bWUcKl7sRuHdbK+iiDldPWIT6fc17ljSXOsygrOolp4L2aZLzXb1WB+OG/d3i4 kfu/z7gvgwbzAl8jDhNAd6/pb5riZ1l40ql/bL9jsoEXXo7/Uz8hMRx49M1wS8uJyJsB Hcak0x4qTT0jXki/HeI5L+n98CI7W0yQIad5hUQNI3cVVc5RK0Xt80SF/pKa0zgnPgm3 oboqvU3/22CeSulOn6CHl0DEQcTP464uMYhEQcIZlbrFUyg9uuhFnoVlsncopfI1C36e /MtQ== 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 :dkim-signature; bh=SmNmuU5Aep/IGe3eSTrjS6oLXRSTGYhw6IFWVs9Iuqc=; b=L+8PEeDPTmKfbAHcFv+YDVgtxelBkrblE0nC4E/2cIZaFqQM99jUYTza+9344G04qX 7mEwzc2HlTrGJQfThGZV+GjSo0SzObpw8Q8esyK5ddlckD9J8f/My2GW1Nq+dUsu0Bwp 9LftTX5umAj80eNV345zT1MS9+DCMjiRJ5TqE/2CwIavI/vr7ACfHg8A1Y4gLq5JC2qe G9M2OT8J5ohAML/RGT++vePlwN3mD4dXioPK16gzj5hq7G9EM7BWK0a0H+HmHMcbM2/v YaozktuLxk2QB8wvGy4MCzNXsTpAD7asqzrwEcH7KrZFcJrbfh8UdQGL/CDSaX+3t7vn g24Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="UC/3PHBo"; 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 r26si5787120edq.99.2020.05.13.04.22.20; Wed, 13 May 2020 04:22:43 -0700 (PDT) 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="UC/3PHBo"; 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 S1732562AbgEMKpt (ORCPT + 99 others); Wed, 13 May 2020 06:45:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57970 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726907AbgEMKpt (ORCPT ); Wed, 13 May 2020 06:45:49 -0400 Received: from mail-wm1-x341.google.com (mail-wm1-x341.google.com [IPv6:2a00:1450:4864:20::341]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A7A41C061A0C for ; Wed, 13 May 2020 03:45:48 -0700 (PDT) Received: by mail-wm1-x341.google.com with SMTP id m24so16438447wml.2 for ; Wed, 13 May 2020 03:45:48 -0700 (PDT) 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=SmNmuU5Aep/IGe3eSTrjS6oLXRSTGYhw6IFWVs9Iuqc=; b=UC/3PHBoun3v1rx7wxmHxa5RFjjGfNLNpaCn6pfowgebDNYC32O8cp+YJHnvOEQaLk Nz+CjUwKVJxOPjAc+Am8F0hqrPMDiwM2aoGX5r90B7BN76cDKPh6nr/YlAAyxleAFf96 NlJANIMYq5DpzZ6aRKewyuez8+MQkdZd9DSO/gtHi1WlvxunYaH+dufi8aFhaGuP+ph9 zIeuSIUI2UQyBg6TbiMKe6swjsAYzSJuHyWPZUsJLZuCjKUsD55B1251N8tC3tLD40aj agDxckNYt6eUv6ydoTJ+56CrQqMMdERHKWIgm0l69OYmgLIINQMDX3EQTlKycym24/V8 XC8g== 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=SmNmuU5Aep/IGe3eSTrjS6oLXRSTGYhw6IFWVs9Iuqc=; b=is9f/warFIW4VnvyfiXrK36hglFMAs+pWnq7wlchjUFfwdz0xgwdJ+tgvijRDKhQ+1 ZMviBTgUsR/lxEDIrFGmqyePbmVxLg+KE/3nNLz+dQ0NRRB1Pfm5zfZnqglt6V6enKvM 6aBxhIF29e3PepPrzJQmKAsoRb6sqqpCSi1OSo2tkIa5KoPAY4MaW1+HvPLi04LPbSAK wxSIBe6dnJTal6KWajyPkWzDH5Iv0ltPH+HzDQeyyWqLtw4j18OXGDYdvmcJu+9sy19D unxVpYs7ElOw8+uNRjPkSUFbFi99aS8quS15ESSbgf7ZXXeFRHz9qluvOUsgon3q3uSu LUiQ== X-Gm-Message-State: AGi0PuY+xZ7jYNFwf3GelqJy3RyA2xG9Aws02Gl+fKiozYCWwpNbZlwZ 8/i9enXnVwrwSahHqJAg4dlHmw== X-Received: by 2002:a1c:3c42:: with SMTP id j63mr39555553wma.118.1589366747407; Wed, 13 May 2020 03:45:47 -0700 (PDT) Received: from myrica ([2001:171b:226e:c200:c43b:ef78:d083:b355]) by smtp.gmail.com with ESMTPSA id g135sm17966353wme.22.2020.05.13.03.45.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 May 2020 03:45:46 -0700 (PDT) Date: Wed, 13 May 2020 12:45:37 +0200 From: Jean-Philippe Brucker To: Bharat Bhushan Cc: "Michael S. Tsirkin" , "joro@8bytes.org" , "jasowang@redhat.com" , "virtualization@lists.linux-foundation.org" , "iommu@lists.linux-foundation.org" , "linux-kernel@vger.kernel.org" , "eric.auger.pro@gmail.com" , "eric.auger@redhat.com" Subject: Re: [EXT] Re: [PATCH v5] iommu/virtio: Use page size bitmap supported by endpoint Message-ID: <20200513104537.GB214296@myrica> References: <20200505093004.1935-1-bbhushan2@marvell.com> <20200505200659-mutt-send-email-mst@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 13, 2020 at 09:15:22AM +0000, Bharat Bhushan wrote: > Hi Jean, > > > -----Original Message----- > > From: Michael S. Tsirkin > > Sent: Wednesday, May 6, 2020 5:53 AM > > To: Bharat Bhushan > > Cc: jean-philippe@linaro.org; joro@8bytes.org; jasowang@redhat.com; > > virtualization@lists.linux-foundation.org; iommu@lists.linux-foundation.org; > > linux-kernel@vger.kernel.org; eric.auger.pro@gmail.com; eric.auger@redhat.com > > Subject: [EXT] Re: [PATCH v5] iommu/virtio: Use page size bitmap supported by > > endpoint [...] > > > +struct virtio_iommu_probe_pgsize_mask { > > > + struct virtio_iommu_probe_property head; > > > + __u8 reserved[4]; > > > + __le64 pgsize_bitmap; > > > +}; > > > + > > > > This is UAPI. Document the format of pgsize_bitmap please. > > I do not see uapi documentation in "Documentation" folder of other data struct in this file, am I missing something? I'm not the one requesting this change, but I'm guessing you should add a comment in this header, above pgsize_bitmap (which should actually be called page_size_mask to follow the spec). I guess I'd add: /* Same format as virtio_iommu_config::page_size_mask */ for this field, and then maybe change the comment of virtio_iommu_config, currently "/* Supported page sizes */", to something more precise such as: /* * Bitmap of supported page sizes. The least significant bit indicates the * smallest granularity and the other bits are hints indicating optimal * block sizes. */ But I don't know how much should be spelled out here, since those details are available in the spec. Thanks, Jean