From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 79119C433E0 for ; Thu, 4 Mar 2021 00:11:34 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 1612E64FD3 for ; Thu, 4 Mar 2021 00:11:34 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 1612E64FD3 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=AQlf2APluHvuw7JFCmGDlZnXHB3kKbygP7Y5qyCTLxM=; b=Gtu1CO6teX8vAZWPfC/Q/5wd5 EBE2yySY+q+zXZ2ueMLuzA38VCjNc0TeoR7iffYY96lQaXi0LmAiBVYOumUmeeJQCDlk/1bcrLpK3 9yPnaDFYRhqgozwaxHx2BwJuBXsX6xf3L8pyOoB7AGNjmVTePaIo2ZBaDxGJZrRJUJsEJhv/yeI8H XhJVZJGakBFOhwxGnBorevlGWxjIP80PTdiLZNy1x6IpV2CgxPrcvfB5cKVFtjHvgzB2OT5dfVitW 4vWF/jInQxnWiXQsZLOQbDcIZ43URtdIQxw8gz1KeUP+Fj4VDyd7pt72UoyuoH8pal6G6cJo8Y/CW C7eqq0G5w==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lHbUx-0074gk-Eo; Thu, 04 Mar 2021 00:05:50 +0000 Received: from mail-wm1-x335.google.com ([2a00:1450:4864:20::335]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lHVBp-005mSo-7A for linux-arm-kernel@lists.infradead.org; Wed, 03 Mar 2021 17:21:39 +0000 Received: by mail-wm1-x335.google.com with SMTP id k66so7076227wmf.1 for ; Wed, 03 Mar 2021 09:21:36 -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=snvF1oZRAeOuQ652xF7hxq8e8Xbivy9W17OCql8Ju58=; b=N4GzE8TYwDr5X4gxi0SyFxRoTBr18n1OZjxbvypLvGP0Y4FoY0LysvNlydxCGejw5o /cBkCZJLNvfwhcIGdhFCqyxDwdKIZ6qjVhtXO7fN9azK3VGGOf3w8vj2aAp59oSB8xdN 0dPT6MSfpozH0a30HioSChw0qmgAqCUYwcaapdq7uWhX/Cau9DcgXlxcfIWQUMNLc/LK TFzBMXyK/zWnYtJMBqnKSmu5upeKLdHMql2kQ6zKb0XVFDIJl4dEbHe0xo7Qskg90KJL JLt1qlFufE95dlru/PO4iXTOUfQzsqlVCf9J3BlUkcK+TVC4CiGinPkkPQSne2U/TFlH LzWA== 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=snvF1oZRAeOuQ652xF7hxq8e8Xbivy9W17OCql8Ju58=; b=baekCJOmxR872pjUog+37r9W2AIRUf2A2elQuK3X/yINyDzjVJebzJkO8jV1WOUnEU QGp4D+zsdCTt+SRtKchRoXC6taMcSfNBozGQWKvW0fRX9qgYxECTO9AhNcTeDHXO5Uk8 5AfjLR7m7++fd7qUfX+AQyuDVLgTQrnlbGzc1aHqbQglZJqBiYBG0P7TqlfnDiiMbnUn FC9PHDZmgtgQZOQSgDxjZjCIQpEVFjg7PepWHqKyOLmCVqc71LGMjbL1rgwQr8NgemT9 9lAOwtH9GPMaqBHGy851AhoPi7i8P1SUyV/2q5CmWbCD8pmLpxhSgyInuHcWqliAf6vm +cmg== X-Gm-Message-State: AOAM532ftJ5P39bIpFg/pMP3TnwIdHt9hUOrkUNGXQJmUueIxWMVZPfv 69JlEnLyKavzFMaZuy46R9OAjA== X-Google-Smtp-Source: ABdhPJz0FpEULBkKSmdBklW+Kq2/Ls1+mEtrqGKqrnMSwdqjEtdd4QHizAokDIN5S9VOM4P4MLCxhg== X-Received: by 2002:a1c:7715:: with SMTP id t21mr74337wmi.132.1614792096379; Wed, 03 Mar 2021 09:21:36 -0800 (PST) Received: from myrica ([2001:1715:4e26:a7e0:116c:c27a:3e7f:5eaf]) by smtp.gmail.com with ESMTPSA id s23sm6477150wmc.35.2021.03.03.09.21.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Mar 2021 09:21:35 -0800 (PST) Date: Wed, 3 Mar 2021 18:21:14 +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 09/15] iommu/virtio: Update table format probing header Message-ID: References: <20210115121342.15093-1-vivek.gautam@arm.com> <20210115121342.15093-10-vivek.gautam@arm.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20210115121342.15093-10-vivek.gautam@arm.com> X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Fri, Jan 15, 2021 at 05:43:36PM +0530, Vivek Gautam wrote: > Add info about asid_bits and additional flags to table format > probing header. > > Signed-off-by: Vivek Gautam > Cc: Joerg Roedel > Cc: Will Deacon > Cc: Michael S. Tsirkin > 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/virtio_iommu.h | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) > > diff --git a/include/uapi/linux/virtio_iommu.h b/include/uapi/linux/virtio_iommu.h > index 43821e33e7af..8a0624bab4b2 100644 > --- a/include/uapi/linux/virtio_iommu.h > +++ b/include/uapi/linux/virtio_iommu.h > @@ -169,7 +169,10 @@ struct virtio_iommu_probe_pasid_size { > struct virtio_iommu_probe_table_format { > struct virtio_iommu_probe_property head; > __le16 format; > - __u8 reserved[2]; > + __le16 asid_bits; > + > + __le32 flags; This struct should only contain the head and format fields. asid and flags should go in a specialized structure - virtio_iommu_probe_pgt_arm64 in the latest spec draft, where I dropped the asid_bits field in favor of an "ASID16" flag. Thanks, Jean _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel