From mboxrd@z Thu Jan 1 00:00:00 1970 From: Georgi Djakov Subject: Re: [PATCH v3 1/7] dt-bindings: interconnect: Add a dma interconnect name Date: Fri, 1 Mar 2019 19:48:15 +0200 Message-ID: <553c987c-da9a-1f85-fb16-4b9fe17dd14b@linaro.org> References: <43eeca13733faefe62f9facc25b8e88f7e593f61.1549897336.git-series.maxime.ripard@bootlin.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <43eeca13733faefe62f9facc25b8e88f7e593f61.1549897336.git-series.maxime.ripard@bootlin.com> Content-Language: en-US List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=m.gmane.org@lists.infradead.org To: Maxime Ripard , Mark Rutland , Rob Herring , Frank Rowand , Chen-Yu Tsai Cc: devicetree@vger.kernel.org, Thomas Petazzoni , Arnd Bergmann , dri-devel@lists.freedesktop.org, Paul Kocialkowski , Yong Deng , Robin Murphy , Dave Martin , linux-arm-kernel@lists.infradead.org List-Id: devicetree@vger.kernel.org Hi Maxime, On 2/11/19 17:02, Maxime Ripard wrote: > The current DT bindings assume that the DMA will be performed by the > devices through their parent DT node, and rely on that assumption for the > address translation using dma-ranges. > > However, some SoCs have devices that will perform DMA through another bus, > with separate address translation rules. We therefore need to express that > relationship, through the special interconnect name "dma". > > Signed-off-by: Maxime Ripard > --- > Documentation/devicetree/bindings/interconnect/interconnect.txt | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/Documentation/devicetree/bindings/interconnect/interconnect.txt b/Documentation/devicetree/bindings/interconnect/interconnect.txt > index 5a3c575b387a..e69fc2d992c3 100644 > --- a/Documentation/devicetree/bindings/interconnect/interconnect.txt > +++ b/Documentation/devicetree/bindings/interconnect/interconnect.txt > @@ -51,6 +51,9 @@ interconnect-names : List of interconnect path name strings sorted in the same > interconnect-names to match interconnect paths with interconnect > specifier pairs. > > + Reserved interconnect names: > + * dma: Path from the device to the main memory of the system Bikeshed: As it's from the device to the main memory, maybe here we can also denote this my calling the path dma-mem or dma-memory. For other paths, we are trying to mention both the source and the destination and maybe it would be good to be consistent although this is special one. Thanks, Georgi 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=-7.0 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,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 9463AC43381 for ; Fri, 1 Mar 2019 17:48:26 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 65E4220848 for ; Fri, 1 Mar 2019 17:48:26 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="XmfagbMS"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="gesjm6kh" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 65E4220848 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+infradead-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=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:Date: Message-ID:From:References:To:Subject:Reply-To:Content-ID:Content-Description :Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=SDrntjA4Pr24UQU6zmPV8VZ7Y/nRJAFYyR7y9qMLSzk=; b=XmfagbMSTUQ4xd 7LH2C4FqW/F1a3iGIzpewDW6vqugbWMwgNM3WI+2RHaYgvGNbOpBPguLJWSaCpEMuqq+3HvOlvcNZ WmDcrTmyEiIsNQMz8ck3K7TM+aCQOTYWc5rOfN6NGnwZCo68jvtv8zTQgzpa6b4H3GFEq/W6HGDiP jhHsEEka/INfXcc5Gcw1U+4kuZOX+zHv1JILhdiDPoW42HN/3ENf5TVmqvBh7FCgZE1hj3WMpnj2W 8Tvyyq7oDoHpMMERM5eTwWZirWu5e2glKxAQWhc1DaiXS7z8dG69AJpjmbUwnFnoQMisD313LPEX5 X7O+NZ5G6EhZ9+zPaslQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gzmGn-0000GA-KP; Fri, 01 Mar 2019 17:48:25 +0000 Received: from mail-lf1-x143.google.com ([2a00:1450:4864:20::143]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gzmGk-0000FQ-Q4 for linux-arm-kernel@lists.infradead.org; Fri, 01 Mar 2019 17:48:24 +0000 Received: by mail-lf1-x143.google.com with SMTP id m73so13058472lfa.2 for ; Fri, 01 Mar 2019 09:48:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:cc:references:from:openpgp:autocrypt:message-id:date :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=CLiwSy2oFWQyii5WGQiSxT1J3CxdY5XpYAor7+pPjak=; b=gesjm6khDiXhlngMHPmYVttgrUxmd4NCvPn7zTe8R1udtCsWjhVZH8gvmnwNCZMTj9 hlKWZxPhvddB2Ke7HAR/5VivgXMJg08DUjJmG3MPYnecGSi+2YCnY0ytUZHxr6GQuj5h E/zPOdn2qf0cvtjfINgpXxTOWdrCVppiZcy6WUoNb/MYCjnnBC7IszWYu6v2DGRA9188 JBc7drKaUP5YkEsfZ1Bf0utdoJTx3AiNBd+GDHRAIPHkKf7b1KgTovo0+r9QPx5jxH3i c7Q+a9EB4HdRtMc5RBOhhc8FoZug+AephKwibCe9ZBCK7EWuYG38H4Fj2q4T3fH9Ac5x v3Wg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:openpgp:autocrypt :message-id:date:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=CLiwSy2oFWQyii5WGQiSxT1J3CxdY5XpYAor7+pPjak=; b=l3qzM0LYbESdpGLDMLFS1eoaiDMRtDHEJdFGZo+d5yBtFS+GCkksURjvoEd0kHmZgY NAPjM/8CsTrZdmbB3urfAihXjWQQraSaiwqxA2WjNhQKEjzHcK1nVQn2yp1P7i/OOdNw sfffAhHGv38LpAtgOF9KAT90mWPV37HTgQDjMemmbmVdhtu0TpxYKY1YvMdSDxmGDnCC cJ0x8eBUpcOeOe504EM23vWuai4yU0hEZwHlfy4Y/UyixRYb1aIwUaVTahkFWGvHf0bU rdMjbujkXX8L1suWxX3dszLKAep/Q55DsignPbcSNPIT+Oy1H8FBLWa5qwTlaEvd1QKw psug== X-Gm-Message-State: APjAAAUvV/Cw1WK1B+AZhc1d7sZAIu/h3lGoE3MdwmqdBZjdp8JLp1g9 N31lVSp/+3KpqXvpm87B/sODrg== X-Google-Smtp-Source: APXvYqxNtKLU1LowHGrIoN+iXIPPseFhRVyNvSHO6vC4SrxxPykj0Hr31CC4THspFJWCXHpcdnMlVA== X-Received: by 2002:a19:e305:: with SMTP id a5mr3613813lfh.69.1551462500037; Fri, 01 Mar 2019 09:48:20 -0800 (PST) Received: from [10.44.66.8] ([212.45.67.2]) by smtp.googlemail.com with ESMTPSA id y2sm4784989lji.46.2019.03.01.09.48.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 01 Mar 2019 09:48:19 -0800 (PST) Subject: Re: [PATCH v3 1/7] dt-bindings: interconnect: Add a dma interconnect name To: Maxime Ripard , Mark Rutland , Rob Herring , Frank Rowand , Chen-Yu Tsai References: <43eeca13733faefe62f9facc25b8e88f7e593f61.1549897336.git-series.maxime.ripard@bootlin.com> From: Georgi Djakov Openpgp: preference=signencrypt Autocrypt: addr=georgi.djakov@linaro.org; prefer-encrypt=mutual; keydata= mQINBFjTuRcBEACyAOVzghvyN19Sa/Nit4LPBWkICi5W20p6bwiZvdjhtuh50H5q4ktyxJtp 1+s8dMSa/j58hAWhrc2SNL3fttOCo+MM1bQWwe8uMBQJP4swgXf5ZUYkSssQlXxGKqBSbWLB uFHOOBTzaQBaNgsdXo+mQ1h8UCgM0zQOmbs2ort8aHnH2i65oLs5/Xgv/Qivde/FcFtvEFaL 0TZ7odM67u+M32VetH5nBVPESmnEDjRBPw/DOPhFBPXtal53ZFiiRr6Bm1qKVu3dOEYXHHDt nF13gB+vBZ6x5pjl02NUEucSHQiuCc2Aaavo6xnuBc3lnd4z/xk6GLBqFP3P/eJ56eJv4d0B 0LLgQ7c1T3fU4/5NDRRCnyk6HJ5+HSxD4KVuluj0jnXW4CKzFkKaTxOp7jE6ZD/9Sh74DM8v etN8uwDjtYsM07I3Szlh/I+iThxe/4zVtUQsvgXjwuoOOBWWc4m4KKg+W4zm8bSCqrd1DUgL f67WiEZgvN7tPXEzi84zT1PiUOM98dOnmREIamSpKOKFereIrKX2IcnZn8jyycE12zMkk+Sc ASMfXhfywB0tXRNmzsywdxQFcJ6jblPNxscnGMh2VlY2rezmqJdcK4G4Lprkc0jOHotV/6oJ mj9h95Ouvbq5TDHx+ERn8uytPygDBR67kNHs18LkvrEex/Z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iAl4vbdBw1bqFnO4zd1lMXKVoa29UHqby4MPbQhjWNVv9kqp8A39+ E9xw890l1xdERkjVKX6IEJu2hf7X3MMl9tOjBK6MvdOUxvh1bNNmXh7OlBL1MpJYY/ydIm3B KEmKjLDvB0pePJkdTw== Message-ID: <553c987c-da9a-1f85-fb16-4b9fe17dd14b@linaro.org> Date: Fri, 1 Mar 2019 19:48:15 +0200 MIME-Version: 1.0 In-Reply-To: <43eeca13733faefe62f9facc25b8e88f7e593f61.1549897336.git-series.maxime.ripard@bootlin.com> Content-Language: en-US X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190301_094822_881989_2B7116E6 X-CRM114-Status: GOOD ( 18.22 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Thomas Petazzoni , Arnd Bergmann , dri-devel@lists.freedesktop.org, Paul Kocialkowski , Yong Deng , Robin Murphy , Dave Martin , linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi Maxime, On 2/11/19 17:02, Maxime Ripard wrote: > The current DT bindings assume that the DMA will be performed by the > devices through their parent DT node, and rely on that assumption for the > address translation using dma-ranges. > > However, some SoCs have devices that will perform DMA through another bus, > with separate address translation rules. We therefore need to express that > relationship, through the special interconnect name "dma". > > Signed-off-by: Maxime Ripard > --- > Documentation/devicetree/bindings/interconnect/interconnect.txt | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/Documentation/devicetree/bindings/interconnect/interconnect.txt b/Documentation/devicetree/bindings/interconnect/interconnect.txt > index 5a3c575b387a..e69fc2d992c3 100644 > --- a/Documentation/devicetree/bindings/interconnect/interconnect.txt > +++ b/Documentation/devicetree/bindings/interconnect/interconnect.txt > @@ -51,6 +51,9 @@ interconnect-names : List of interconnect path name strings sorted in the same > interconnect-names to match interconnect paths with interconnect > specifier pairs. > > + Reserved interconnect names: > + * dma: Path from the device to the main memory of the system Bikeshed: As it's from the device to the main memory, maybe here we can also denote this my calling the path dma-mem or dma-memory. For other paths, we are trying to mention both the source and the destination and maybe it would be good to be consistent although this is special one. Thanks, Georgi _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel