Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp4016825ybe; Mon, 9 Sep 2019 02:52:40 -0700 (PDT) X-Google-Smtp-Source: APXvYqzi1pTGByGzPuXWGhWfYaO7jtyQuNTV151Npn05oCDhgMT2ayiluSLuvRdUHgCQmsYKteS0 X-Received: by 2002:a17:906:80cd:: with SMTP id a13mr18919822ejx.155.1568022760274; Mon, 09 Sep 2019 02:52:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568022760; cv=none; d=google.com; s=arc-20160816; b=rhc2lCyM3VgwQ3hTni4GP4jXtMJ5pcgPiJ6mUMeEv4kncu+6lUe+rG0ulb7nRuSnCX epJQ5bUtH6Xb+30jTtf6laGyljhlpe9pPCTjrGqgpSmqZCUjkMvJwF/RX+pbYviJxYdF D54/cG2CidzK5+TZ0VWiCyttraFUvj0ntdWd0YF3setA0nnb5unZOTIugw8POGtlfV9o /RnEsQGcmRKLkGuq7qB/w6LDu78MEhnU2jg8rRerJOqZ4xybTiUB/KqbBb1TMrgcSu/+ zmVDhJ124TCIUjnvlYLukKt0NGUQChxCKzaaKiso2n2KY5ZzKkkCI/q62c2TfkyZYe1/ +nKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=CVp2/6gyur98CjC60vfAcvK+JxnuieiWD1WD9lVLga4=; b=HDw3lJltHsi3pq/qQ8kkjVEzZuCVrawWYGP4M6u8N3V+XkSPf3w4E3N+2S38rX86t+ ttmzroYcX0t/RADoHL+URTK/8j3gTa/VLSdZ/akKsgmqX9lVfJLLjdMXIxHq91aUtjbM aDcS+ekiIXB+xeL0QUpZrddiEODDBE22+baDMmnhxi9hZdHl9dwMYSzDc13pxzzL1HHP e6hkxmDhEPMHoMgDDTR5JiAK26mvTGopRVxoGw5Zu3dOOmGtg+awQTr4ngI+Q4DQ+49Y RG62nB421YwauytAV6dIKcATqeUA1dgz9+OwiKKI5DRD8kzxoQU4We3JQdH32mPBx3qP VI8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="hj/S8W0I"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b26si286801ejb.291.2019.09.09.02.52.13; Mon, 09 Sep 2019 02:52:40 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="hj/S8W0I"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728971AbfIHMHw (ORCPT + 99 others); Sun, 8 Sep 2019 08:07:52 -0400 Received: from mail.kernel.org ([198.145.29.99]:38886 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728667AbfIHMHv (ORCPT ); Sun, 8 Sep 2019 08:07:51 -0400 Received: from localhost (unknown [122.182.221.179]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 61E13218AC; Sun, 8 Sep 2019 12:07:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1567944470; bh=FQIOzMKN32+D7EXQBVmHC45HY6/y00at8hGjE4IjboU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=hj/S8W0Iw2hthBawZ0Uqi9DFTpTMB0Do4oHMemh6k/LXiFOcQ9x5LM3RWgJD4OU94 kf0+kE+gyDCgsb9mbppiRJUabFKuyu95v1ag1Ik+2cdyrdeT+gUxYgLrwa1sWoYTxK ZWaShKc+sdLCZuZXVa6oBWesMWrw6X7e5elNOg6E= Date: Sun, 8 Sep 2019 17:36:42 +0530 From: Vinod Koul To: Peter Ujfalusi Cc: robh+dt@kernel.org, dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org, dan.j.williams@intel.com, devicetree@vger.kernel.org Subject: Re: [RFC 1/3] dt-bindings: dma: Add documentation for DMA domains Message-ID: <20190908120642.GK2672@vkoul-mobl> References: <20190906141816.24095-1-peter.ujfalusi@ti.com> <20190906141816.24095-2-peter.ujfalusi@ti.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190906141816.24095-2-peter.ujfalusi@ti.com> User-Agent: Mutt/1.12.0 (2019-05-25) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 06-09-19, 17:18, Peter Ujfalusi wrote: > On systems where multiple DMA controllers available, none Slave (for example On systems with multiple DMA controllers, non Slave... > memcpy operation) users can not be described in DT as there is no device > involved from the DMA controller's point of view, DMA binding is not usable. > However in these systems still a peripheral might need to be serviced by or > it is better to serviced by specific DMA controller. > When a memcpy is used to/from a memory mapped region for example a DMA in the > same domain can perform better. > For generic software modules doing mem 2 mem operations it also matter that > they will get a channel from a controller which is faster in DDR to DDR mode > rather then from the first controller happen to be loaded. > > This property is inherited, so it may be specified in a device node or in any > of its parent nodes. > > Signed-off-by: Peter Ujfalusi > --- > .../devicetree/bindings/dma/dma-domain.yaml | 59 +++++++++++++++++++ > 1 file changed, 59 insertions(+) > create mode 100644 Documentation/devicetree/bindings/dma/dma-domain.yaml > > diff --git a/Documentation/devicetree/bindings/dma/dma-domain.yaml b/Documentation/devicetree/bindings/dma/dma-domain.yaml > new file mode 100644 > index 000000000000..c2f182f30081 > --- /dev/null > +++ b/Documentation/devicetree/bindings/dma/dma-domain.yaml > @@ -0,0 +1,59 @@ > +# SPDX-License-Identifier: GPL-2.0 > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/dma/dma-controller.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: DMA Domain Controller Definition > + > +maintainers: > + - Vinod Koul > + > +allOf: > + - $ref: "dma-controller.yaml#" > + > +description: > + On systems where multiple DMA controllers available, none Slave (for example > + memcpy operation) users can not be described in DT as there is no device > + involved from the DMA controller's point of view, DMA binding is not usable. > + However in these systems still a peripheral might need to be serviced by or > + it is better to serviced by specific DMA controller. > + When a memcpy is used to/from a memory mapped region for example a DMA in the > + same domain can perform better. > + For generic software modules doing mem 2 mem operations it also matter that > + they will get a channel from a controller which is faster in DDR to DDR mode > + rather then from the first controller happen to be loaded. > + > + This property is inherited, so it may be specified in a device node or in any > + of its parent nodes. > + > +properties: > + $dma-domain-controller: > + $ref: /schemas/types.yaml#definitions/phandle > + description: > + phande to the DMA controller node which should be used for the device or > + domain. > + > +examples: > + - | > + / { > + model = "Texas Instruments K3 AM654 SoC"; > + compatible = "ti,am654"; > + interrupt-parent = <&gic500>; > + /* For modules without device, DDR to DDR is faster on main UDMAP */ > + dma-domain-controller = <&main_udmap>; > + #address-cells = <2>; > + #size-cells = <2>; > + ... > + }; > + > + &cbass_main { > + /* For modules within MAIN domain, use main UDMAP */ > + dma-domain-controller = <&main_udmap>; > + }; > + > + &cbass_mcu { > + /* For modules within MCU domain, use mcu UDMAP */ > + dma-domain-controller = <&mcu_udmap>; perhaps add the example of main_udmap and mcu_udmap as well > + }; > +... > -- > Peter > > Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. > Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki -- ~Vinod