Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp506481imm; Wed, 29 Aug 2018 05:35:37 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbHxwFfCsK5vI0mfkrbUMrIQ061wgjPKVp1FzwC7nBQzzswmt2/wQJNmnn+CMyozMOGXoky X-Received: by 2002:a63:df04:: with SMTP id u4-v6mr5641297pgg.434.1535546137485; Wed, 29 Aug 2018 05:35:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535546137; cv=none; d=google.com; s=arc-20160816; b=NOV+x4ejxC4hUzhR74ICYMbqiNYQQ7oc4F9AIcV1ho7PfY7YxX8C9iVKS3CMkf/jcC DKuehLL1pwSoPYd2+cnRTQaG1cyEj0IvhZvQl15KXKtowF2rQFeVV+MnPWdOdQoAw48C BLk3q7mKS6ondNBIdi26KHLJS+G2Q9fTC5+STCRJasmK+CQ7lSa+MTrAw4KY2fE/TAus VR9fGQN6uG1b0Q5NWb/mXtegnlfvK4cOHQFGIJzSqQZmDgnA/3Wxs+vWDH17cAOpHqpX Lq91U4HLkTPAXLguhzw94G7NbAh0asKetu2xQW37cjBrivQIV1EKyhGSqHh/D6LBeDOI grQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:date:message-id:autocrypt :openpgp:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=eiHIZmEbAmO3AXJTC4Bg8xsG5c9Z2DIdbce96SpbiPE=; b=cOZm3yHFoAsFJjdjxxgQmedro3FlhImtdzl6H2KSaRFhkgMc5Xwg3tt696EZOH9dvw dph29p2xKM+KyC4uqEtS4grepceMfKniEwq86dUmQayqL2FWGLfIw/g4PlYlsdZpSFGI /3va7bSMZDxD+JdPePOZhE+k9uuGNfe72FLjDkN+5drKQRPxIeNqJ0QOtlouSqFn+oDs 0e97DrX9AVYUXb2QhUphU/GKvhB8YmQEpjDID3v+IcH93mcE2c0PYlB3RONZJutAghHr w0MVe6OMSrvRpijRPOlSNnmqmo6r/eayb6A8SdIBdzBFBBJHcZavQa0SW1XuUGfh6Pbc 1QgA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=DgRFZj4T; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o69-v6si3673995pfi.279.2018.08.29.05.35.21; Wed, 29 Aug 2018 05:35:37 -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=@linaro.org header.s=google header.b=DgRFZj4T; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728110AbeH2QaR (ORCPT + 99 others); Wed, 29 Aug 2018 12:30:17 -0400 Received: from mail-wm0-f68.google.com ([74.125.82.68]:54019 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727585AbeH2QaQ (ORCPT ); Wed, 29 Aug 2018 12:30:16 -0400 Received: by mail-wm0-f68.google.com with SMTP id b19-v6so5121843wme.3 for ; Wed, 29 Aug 2018 05:33:32 -0700 (PDT) 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=eiHIZmEbAmO3AXJTC4Bg8xsG5c9Z2DIdbce96SpbiPE=; b=DgRFZj4TB4J+qsdGSW3s6ZnFxBpzFl/9z9z5XCJenSZ59H7uTfPh1mtUqR3dmwS+4H j+vmIKN17j0buR8Ofzcw5b1Xv8dBQvSy5mrtOacIcTVpPe1HBOFaoQlKWMSFZZ3oouAE 9EpIKMYx2uUX1vi8cZbANtOmcvcPaQ69ybQPs= 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=eiHIZmEbAmO3AXJTC4Bg8xsG5c9Z2DIdbce96SpbiPE=; b=B9FA/UV9MrkwH38hdAwEE09bl29BUbgrQEZz/9HGDWH3YZj6b4kzdW+ZdKx2IV6iaP Tu/b8f6UIL/o650T7yjkvuH6/PETwZogU+DidRgtiaCkmzzm+YD967pYLlIiNZWlfBQO KtunJBEb2STQlfexSPxABAPBSEiVh2nEoz/Bxflu/LYehZSKOBMInhtM0XXvCITvSynT 7gUSQN0sW7q1NVoRJvMP8KHDRyVUCpEsok4D3qu7AK11n42nBXnshQ+5vkofMGEpeRe0 Fp/57F+vVye5/x0lLKcOlODQCdruP/M8YqE/6CWAvdqP1+BMQyXfl8ZTFQ0r/wtTdPy6 ZM1g== X-Gm-Message-State: APzg51Dypuln5oH4jfuXMJ5RCDHA3CRU3KtwDZb4HNJAUE5O5PxfmsZp p7un0VDwjecFOldJnmmOcksjpw== X-Received: by 2002:a1c:eb03:: with SMTP id j3-v6mr4058652wmh.150.1535546011609; Wed, 29 Aug 2018 05:33:31 -0700 (PDT) Received: from [10.44.66.8] ([212.45.67.2]) by smtp.googlemail.com with ESMTPSA id 185-v6sm7152448wmy.38.2018.08.29.05.33.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 29 Aug 2018 05:33:30 -0700 (PDT) Subject: Re: [PATCH v7 2/8] dt-bindings: Introduce interconnect provider bindings To: Maxime Ripard , Rob Herring Cc: "open list:THERMAL" , Greg Kroah-Hartman , "Rafael J. Wysocki" , Michael Turquette , Kevin Hilman , Vincent Guittot , Saravana Kannan , Bjorn Andersson , Amit Kucheria , seansw@qti.qualcomm.com, daidavid1@codeaurora.org, Evan Green , Mark Rutland , Lorenzo Pieralisi , Alexandre Bailon , Arnd Bergmann , "linux-kernel@vger.kernel.org" , "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" , linux-arm-msm , devicetree@vger.kernel.org References: <20180731161340.13000-1-georgi.djakov@linaro.org> <20180731161340.13000-3-georgi.djakov@linaro.org> <20180820153207.xx5outviph7ec76p@flea> <672e6c6c-222f-5e7f-5d0c-acc8da68b1ab@linaro.org> <20180827151140.luysp2kfbcq6patg@flea> From: Georgi Djakov Openpgp: preference=signencrypt Autocrypt: addr=georgi.djakov@linaro.org; prefer-encrypt=mutual; keydata= xsFNBFjTuRcBEACyAOVzghvyN19Sa/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 f67WiEZgvN7tPXEzi84zT1PiUOM98dOnmREIamSpKOKFereIrKX2I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T6NUjDQ0vdphTnsdA7h01MliZLQ2lLL2Mt5lsqU+6sup Tfql1omgEpjnFsPsyFebzcKGbdEr6vySGa3Cof+miX06hQXKe99a5+eHNhtZJcMAIO89wZmj 7ayYJIXFqjl/X0KBcCbiAl4vbdBw1bqFnO4zd1lMXKVoa29UHqby4MPbQhjWNVv9kqp8A39+ E9xw890l1xdERkjVKX6IEJu2hf7X3MMl9tOjBK6MvdOUxvh1bNNmXh7OlBL1MpJYY/ydIm3B KEmKjLDvB0pePJkdTw== Message-ID: Date: Wed, 29 Aug 2018 15:33:29 +0300 MIME-Version: 1.0 In-Reply-To: <20180827151140.luysp2kfbcq6patg@flea> Content-Type: text/plain; charset=windows-1252 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Rob and Maxime, On 08/27/2018 06:11 PM, Maxime Ripard wrote: > On Fri, Aug 24, 2018 at 10:35:23AM -0500, Rob Herring wrote: >> On Fri, Aug 24, 2018 at 9:51 AM Georgi Djakov wrote: >>> >>> Hi Maxime, >>> >>> On 08/20/2018 06:32 PM, Maxime Ripard wrote: >>>> Hi Georgi, >>>> >>>> On Tue, Aug 07, 2018 at 05:54:38PM +0300, Georgi Djakov wrote: >>>>>> There is also a patch series from Maxime Ripard that's addressing the >>>>>> same general area. See "dt-bindings: Add a dma-parent property". We >>>>>> don't need multiple ways to address describing the device to memory >>>>>> paths, so you all had better work out a common solution. >>>>> >>>>> Looks like this fits exactly into the interconnect API concept. I see >>>>> MBUS as interconnect provider and display/camera as consumers, that >>>>> report their bandwidth needs. I am also planning to add support for >>>>> priority. >>>> >>>> Thanks for working on this. After looking at your serie, the one thing >>>> I'm a bit uncertain about (and the most important one to us) is how we >>>> would be able to tell through which interconnect the DMA are done. >>>> >>>> This is important to us since our topology is actually quite simple as >>>> you've seen, but the RAM is not mapped on that bus and on the CPU's, >>>> so we need to apply an offset to each buffer being DMA'd. >>> >>> Ok, i see - your problem is not about bandwidth scaling but about using >>> different memory ranges by the driver to access the same location. So >>> this is not really the same and your problem is different. Also the >>> interconnect bindings are describing a path and endpoints. However i am >>> open to any ideas. >> >> It may be different things you need, but both are related to the path >> between a bus master and memory. We can't have each 'problem' >> described in a different way. Well, we could as long as each platform >> has different problems, but that's unlikely. >> >> It could turn out that the only commonality is property naming >> convention, but that's still better than 2 independent solutions. > > Yeah, I really don't think the two issues are unrelated. Can we maybe > have a particular interconnect-names value to mark the interconnect > being used to perform DMA? We can call one of the paths "dma" and use it to perform DMA for the current device. I don't see a problem with this. The name of the path is descriptive and makes sense. And by doing we avoid adding more DT properties, which would be an other option. This also makes me think that it might be a good idea to have a standard name for the path to memory as i expect some people will call it "mem", others "ddr" etc. Thanks, Georgi >> I know you each want to just fix your issues, but the fact that DT >> doesn't model the DMA side of the bus structure has been an issue at >> least since the start of DT on ARM. Either we should address this in a >> flexible way or we can just continue to manage without. So I'm not >> inclined to take something that only addresses one SoC family. > > I'd really like to have it addressed. We're getting bit by this, and > the hacks we have don't work well anymore.