Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp744855iob; Wed, 18 May 2022 11:59:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzAlJ+oDA/cvXI+J0tlyD8imkMD+hR47kfibDcnk+vjYvZWqzz8NLO5CpDJ65cGPdzNVT2p X-Received: by 2002:a17:90b:4b91:b0:1dc:3149:1749 with SMTP id lr17-20020a17090b4b9100b001dc31491749mr1510817pjb.46.1652900366134; Wed, 18 May 2022 11:59:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652900366; cv=none; d=google.com; s=arc-20160816; b=Nul4roInG6tQkVof9E+1hmBA0VorrybCTrCbYfjhuPHY9117p6EbW/6cxpoFzxqu7s FWtEqpgXXg7aM+qpJmzFr9rgsb4kRb6DbWrdzP714R6h3iQzWX2rdqilZTdqJ0/LMeJS 2Nx7x2f84161jjtsxjTYb49KqrSMgznn48cz2bcu2XZbMHNlIZOLLUgcnPc0NG05vcQT U3vbOomxAcur7HvYukVpEBFbiosYeKLIwzD3I0GGYu+mGFZTNpcRZpeHBk/ZOcX8o7fo UX3JmbaPga/yaXCpQD2dQONJzTbzmLPyUE2Mgv1FxInEH1Ihd55tpLl1X1FKNIYjr52P y9bQ== 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; bh=hl6vHR8m/JLovYO2gNE3ChbiYGqpt17k+OnwcqxZkjo=; b=nGpgcEruWuNVyLm1qdsuzlNy7kBrGpKZGGKktrK9ozwmGGuU9lEmSu0iS5oj+xCh2q A9+J2q6TP7UBiIyH2b3Zd21lacCqy74HI8Z6WFos0reDgqcdaW5Swj0y7gUdeFwa7Nzk XRF915y/svvievXSgkPdXK/WORh6tmCVJCzkRv+salnSLd4liICcLDoMTwbSmeosSR72 JPmTCkHE7gAzkrDK55iMz0f17yRyJnK7796XDU8x4mSD1rxchJLD9j4P0x7kB8ak6NZN lc2V17wIUmpv19o+9UnFSgk6YaFlzv62PzYGIBk7uBO7dqUoc9GR7NXXBwJmoZyE5o5l SxSQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id j30-20020a63231e000000b003c62d1ccb94si3324221pgj.179.2022.05.18.11.59.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 May 2022 11:59:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 0FE672218C6; Wed, 18 May 2022 11:59:13 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241823AbiERS7I (ORCPT + 99 others); Wed, 18 May 2022 14:59:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51252 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241809AbiERS7H (ORCPT ); Wed, 18 May 2022 14:59:07 -0400 Received: from mail-oi1-f173.google.com (mail-oi1-f173.google.com [209.85.167.173]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9F08421A942; Wed, 18 May 2022 11:59:06 -0700 (PDT) Received: by mail-oi1-f173.google.com with SMTP id l16so3799068oil.6; Wed, 18 May 2022 11:59:06 -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=hl6vHR8m/JLovYO2gNE3ChbiYGqpt17k+OnwcqxZkjo=; b=hodY84OWJLzorbbOhgzV8IJNUYfsvFv4kMCVWDIFiLK5rTsCi3tNw9fuHr+WlxVv1V bTh96UT4WxSr/80pv244V0qdFJmTizO9vvmnuDgUWDCcZVrALBpDroPZlmQ28pqFP/5x YxzwT+PeHC0qDc1LCst9D9kTXLNZ2xn2PuA9aPQ45hmVjLpkCFxBuWBlkFkwe7bwBLFV pxQZgrIv+TvHYLhITlLBn+UGYQMJvTe+c1RWI7mY5KmxgNmlieaenV9ZhrSvEZfUxdd0 F3uwrvA+FxzqSH6W1bWSCXzz0WnmIpKimcIh5lbe8TtClfZuJy0unaB2AGnS7vKG0nIN rEcg== X-Gm-Message-State: AOAM531nXTWBx+y3CcSEs+hj9qWeX8WMI80k1JGukkggbOtmaf1xuJkR 5QkeMkRmEddaYOwG4t4Keg== X-Received: by 2002:a05:6808:aa4:b0:325:91ff:43cc with SMTP id r4-20020a0568080aa400b0032591ff43ccmr623013oij.166.1652900345928; Wed, 18 May 2022 11:59:05 -0700 (PDT) Received: from robh.at.kernel.org (66-90-144-107.dyn.grandenetworks.net. [66.90.144.107]) by smtp.gmail.com with ESMTPSA id bd15-20020a056870d78f00b000e686d1389esm1202223oab.56.2022.05.18.11.59.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 May 2022 11:59:05 -0700 (PDT) Received: (nullmailer pid 3695375 invoked by uid 1000); Wed, 18 May 2022 18:59:04 -0000 Date: Wed, 18 May 2022 13:59:04 -0500 From: Rob Herring To: Arnd Bergmann Cc: Oleksandr Tyshchenko , xen-devel , "open list:DRM DRIVER FOR QEMU'S CIRRUS DEVICE" , DTML , Linux Kernel Mailing List , Linux ARM , Oleksandr Tyshchenko , Jason Wang , Krzysztof Kozlowski , Julien Grall , Juergen Gross , Stefano Stabellini , "Michael S. Tsirkin" , Christoph Hellwig , Jean-Philippe Brucker Subject: Re: [PATCH V2 5/7] dt-bindings: Add xen,dev-domid property description for xen-grant DMA ops Message-ID: <20220518185904.GA3685644-robh@kernel.org> References: <1651947548-4055-1-git-send-email-olekstysh@gmail.com> <1651947548-4055-6-git-send-email-olekstysh@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 18, 2022 at 03:32:27PM +0100, Arnd Bergmann wrote: > On Sat, May 7, 2022 at 7:19 PM Oleksandr Tyshchenko wrote: > > > > diff --git a/Documentation/devicetree/bindings/virtio/mmio.yaml b/Documentation/devicetree/bindings/virtio/mmio.yaml > > index 10c22b5..29a0932 100644 > > --- a/Documentation/devicetree/bindings/virtio/mmio.yaml > > +++ b/Documentation/devicetree/bindings/virtio/mmio.yaml > > @@ -13,6 +13,9 @@ description: > > See https://www.oasis-open.org/committees/tc_home.php?wg_abbrev=virtio for > > more details. > > > > +allOf: > > + - $ref: /schemas/arm/xen,dev-domid.yaml# > > + > > properties: > > compatible: > > const: virtio,mmio > > @@ -33,6 +36,10 @@ properties: > > description: Required for devices making accesses thru an IOMMU. > > maxItems: 1 > > > > + xen,dev-domid: > > + description: Required when Xen grant mappings need to be enabled for device. > > + $ref: /schemas/types.yaml#/definitions/uint32 > > + > > required: > > - compatible > > - reg > > Sorry for joining the discussion late. Have you considered using the > generic iommu > binding here instead of a custom property? This would mean having a device > node for the grant-table mechanism that can be referred to using the 'iommus' > phandle property, with the domid as an additional argument. > > It does not quite fit the model that Linux currently uses for iommus, > as that has an allocator for dma_addr_t space, but it would think it's > conceptually close enough that it makes sense for the binding. Something common is almost always better. That may also have the issue that fw_devlink will make the 'iommu' driver a dependency to probe. Rob