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 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id F1EA5C43334 for ; Sun, 5 Jun 2022 22:46:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; 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=fC4CeNGjjnUle0osoPGEOKBeKJWmrpX6GMib8sXxH48=; b=L9cpNuAt9RoCkM sW2pMlJkqm6xKDY1SWHbzB4p7VNgSxS1Ri5wWOWP8a0B7Ia4Gka65m/KdJtUYTnX9AchFIejpxzVq 9vFAaO/G2E7oYswEeuWSJqzWs72ZFW9d6fquTT9Uv3G6kGeCQ0qwvGzVEL921NtQ9OUiRKjToJoKj 3SspfaUoQdon0s78wWkfKhr0UW3TC0KT0v2ePUuQ7wMNABC6YcIe4QQBFvzubEVGcsrLBL5Za8DC9 5IH5m7t5z2yIj/BbOuAnJb3DEWHbfOhWubzSwwdKoTfzJb9ikZStzlvxnHM2z9XONfII9aTVw3Csk FppDnNmaoiWZIB9hGEUg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nxz09-00Fba1-7X; Sun, 05 Jun 2022 22:45:41 +0000 Received: from mail-qv1-f47.google.com ([209.85.219.47]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nxz06-00FbYu-8D for linux-arm-kernel@lists.infradead.org; Sun, 05 Jun 2022 22:45:39 +0000 Received: by mail-qv1-f47.google.com with SMTP id b17so772481qvz.0 for ; Sun, 05 Jun 2022 15:45:37 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=uDzznG00WmBRTYCBcArlD1mf1zVfk2p9nd9xHJn3CVw=; b=wMAZ2+BmSUYkFipxYLNHEt+PNS2CGgZVpYCnPd1WviVtPY9uRybXU2kvUhZ6v+nOZa n6PrpK865TKVitvBEixIfWWG9pmr/gn8Lc+LkaSFkjw7ga4pIWFhq9Y3bGRGIMF9a8FF 3WIiQGjlhtcCZ994oASmq35KRT21mSk+5DuTX3fSQ7ksVsOqJcRnMtCfxcTa45l0JiEL pn+9MZ82bB2ubJLYlxqD4YeVS332JugXZY75e+HvttzDY4U1qBwCV+vH07TOXFQrT9dR XR3c+zmr53SzBp1axAOtQPXgrm4ht1qeiBVA6370JSj8Qqkb8IZsqJAdscBjb23aEj8w UMTw== X-Gm-Message-State: AOAM531tv6Ii6BClWEoN6xiHQw4eyiG/S5aUQXcwPTdFvNX4CksxpIIL CePRjsvEgfRUa3JbzUXRUA== X-Google-Smtp-Source: ABdhPJwmsDYIVR7qLkG6UWB/x8H/AgliTU6o4B+wWC9F21jxx0e09sjuNDCoG74Zm/3g90Nz9x+0LQ== X-Received: by 2002:ad4:5447:0:b0:461:d7a7:f0ec with SMTP id h7-20020ad45447000000b00461d7a7f0ecmr70549704qvt.21.1654469136911; Sun, 05 Jun 2022 15:45:36 -0700 (PDT) Received: from robh.at.kernel.org ([2607:fb90:1bdb:2e61:f12:452:5315:9c7e]) by smtp.gmail.com with ESMTPSA id v128-20020a37dc86000000b0069fc13ce244sm10341437qki.117.2022.06.05.15.45.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 05 Jun 2022 15:45:36 -0700 (PDT) Received: (nullmailer pid 3667844 invoked by uid 1000); Sun, 05 Jun 2022 22:45:33 -0000 Date: Sun, 5 Jun 2022 17:45:33 -0500 From: Rob Herring To: Oleksandr Tyshchenko Cc: linux-kernel@vger.kernel.org, iommu@lists.linux-foundation.org, Joerg Roedel , "Michael S. Tsirkin" , Julien Grall , xen-devel@lists.xenproject.org, devicetree@vger.kernel.org, Will Deacon , Juergen Gross , Arnd Bergmann , Stefano Stabellini , Oleksandr Tyshchenko , Krzysztof Kozlowski , linux-arm-kernel@lists.infradead.org, Christoph Hellwig , Rob Herring Subject: Re: [PATCH V4 5/8] dt-bindings: Add xen,grant-dma IOMMU description for xen-grant DMA ops Message-ID: <20220605224533.GA3667788-robh@kernel.org> References: <1654197833-25362-1-git-send-email-olekstysh@gmail.com> <1654197833-25362-6-git-send-email-olekstysh@gmail.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1654197833-25362-6-git-send-email-olekstysh@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220605_154538_353970_0635AFB0 X-CRM114-Status: GOOD ( 21.99 ) 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 Thu, 02 Jun 2022 22:23:50 +0300, Oleksandr Tyshchenko wrote: > From: Oleksandr Tyshchenko > > The main purpose of this binding is to communicate Xen specific > information using generic IOMMU device tree bindings (which is > a good fit here) rather than introducing a custom property. > > Introduce Xen specific IOMMU for the virtualized device (e.g. virtio) > to be used by Xen grant DMA-mapping layer in the subsequent commit. > > The reference to Xen specific IOMMU node using "iommus" property > indicates that Xen grant mappings need to be enabled for the device, > and it specifies the ID of the domain where the corresponding backend > resides. The domid (domain ID) is used as an argument to the Xen grant > mapping APIs. > > This is needed for the option to restrict memory access using Xen grant > mappings to work which primary goal is to enable using virtio devices > in Xen guests. > > Signed-off-by: Oleksandr Tyshchenko > Reviewed-by: Stefano Stabellini > --- > Changes RFC -> V1: > - update commit subject/description and text in description > - move to devicetree/bindings/arm/ > > Changes V1 -> V2: > - update text in description > - change the maintainer of the binding > - fix validation issue > - reference xen,dev-domid.yaml schema from virtio/mmio.yaml > > Change V2 -> V3: > - Stefano already gave his Reviewed-by, I dropped it due to the changes (significant) > - use generic IOMMU device tree bindings instead of custom property > "xen,dev-domid" > - change commit subject and description, was > "dt-bindings: Add xen,dev-domid property description for xen-grant DMA ops" > > Changes V3 -> V4: > - add Stefano's R-b > - remove underscore in iommu node name > - remove consumer example virtio@3000 > - update text for two descriptions > --- > .../devicetree/bindings/iommu/xen,grant-dma.yaml | 39 ++++++++++++++++++++++ > 1 file changed, 39 insertions(+) > create mode 100644 Documentation/devicetree/bindings/iommu/xen,grant-dma.yaml > Reviewed-by: Rob Herring _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel