Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp11880459ybi; Fri, 26 Jul 2019 01:07:12 -0700 (PDT) X-Google-Smtp-Source: APXvYqwtRfLKlyD+5CStWyZYorgZzWyYLJHRba5fjIhBBtAGPLmh6KWxWmEc8hersnsYzME3xKUR X-Received: by 2002:a17:902:aa09:: with SMTP id be9mr10860244plb.52.1564128432085; Fri, 26 Jul 2019 01:07:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564128432; cv=none; d=google.com; s=arc-20160816; b=mUPAqH2cq95UTKmlshbCvUwExCe4GNiav6p6VC9LLJNvOAnujGId5TaRJHhjVn0y/M Agn0CmlcEuJHHhpcbdU74N5RkIZSOTAAm3jgR9JaIbx61eVBOCuTWRQlWq4xFtJvJ/6F I6kgtMKIpzXiwT4eGeqgwm9B0eHDZzVZKfAaMzAQ/5ibmuSYHtvxXgZosvVZkhJlUh29 nRhlRbqEK4mid2bLawRdD95Ft/eF/U12c8L4EQSLaCguPQMX2UqhgTDXgq41jsBBoQEe fMrgUoojUTRY0jBbkY+g3n/165Kf5apRPTpAB9UhewDpF9I+O5IcAUHp1V+1cG1c6HnK rMag== 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; bh=gmIWHPU81qKM4NmobEtN8vwuP0TkPt9eT4OsJzhaUjk=; b=CUBhSBgNuFNAyh88rqyQ5W7rxT/6C9PHro+fNiFoWxSz1owG0wMhT++2ATUeEIlVvf D3XCtKjIkMdO63/J1cLo7lPcZ6ZIBXXpMbD3aNqH9+eJEA5kD5b/k7pPx2U7hBR3lc8t 42giLJLcXKGN5JACqVas/TlaxNxExKNEZi6jXLXT73WbOC7J+Nc8OwPcO3+JRKtmWb6A Ms27zsFgunIdK44T+xASnl+Z0uxMtnJe6d8VST9BJmeBNEsJV1uZPgkhFESx/EbF0ncO kT01gBnDlpg/z7GKK7cObvahOUvVzUDzQrkVWR/2c/AEH6SGHwNvN1bUw0vu6SYRa4jn 9qbw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=y5xEgzE5; 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 k190si17127934pge.308.2019.07.26.01.06.57; Fri, 26 Jul 2019 01:07:12 -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=y5xEgzE5; 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 S1726023AbfGZIF0 (ORCPT + 99 others); Fri, 26 Jul 2019 04:05:26 -0400 Received: from mail-lj1-f193.google.com ([209.85.208.193]:45093 "EHLO mail-lj1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725872AbfGZIF0 (ORCPT ); Fri, 26 Jul 2019 04:05:26 -0400 Received: by mail-lj1-f193.google.com with SMTP id m23so50510584lje.12 for ; Fri, 26 Jul 2019 01:05:24 -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=gmIWHPU81qKM4NmobEtN8vwuP0TkPt9eT4OsJzhaUjk=; b=y5xEgzE5jtlcpATZyzdxzyFTpGnrCxRIL7uzSmvkqqaSjqn773+lPi7JptM/oC82B2 ERbV/Kkph8WF/vpS0iK1HE0VExJSalljlox2f3+vos5IQ68Ky88FaraUeLkAT6RUDfUQ WflUBgR2r9hdpzovWsdhbDIC+11PpgdKGFgOf09LxXdcO0t94ubgDe/S5ge0F0ghX/bB wcPqo+munS6NtHkwWgIbjGJxSqOMfifD5YvAY5y981NrOtWmuFn3qI/ni14t4DFzksHZ p83f77Ch5gFRkm9/lPngDbBvSVlhEkKxoSs2aNdOgnRO4Am3tgc/9SeKJq0PjwoQxzPJ d5zQ== 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=gmIWHPU81qKM4NmobEtN8vwuP0TkPt9eT4OsJzhaUjk=; b=QHRwyHUieTyvtliC3gW2DKWAAu2K6VVbX4F2C4AOnedii9HsDS3U8U5Bk80LBpuIZa TLf8STHdWpEUkGCn8Zmma53hLEXH+pHZAAxC/VYpdS2VcrbiaZRq+CWw1ecRcZ+du9s8 yRPbLNz+XseLxzQyRszND44NCrmxo2P8pB8EzYHKhspl+JsK5h6vu2hhf3984/3Yaa6y o29y9ulFpVim7xQuzlgH8OFynpYSkFRLdPbUhCBZNuNjo6VcYt6tm2wldBnmlSZbd9yr 7ggtEO6BpdDdb9cwDkWZcpjjSeM4h5Z3vYyd0nsTwCgE4MAkasOlhGYArHNs9DrUENoQ LRHw== X-Gm-Message-State: APjAAAWT/g+JL9X+A2BHaa7QvoQM/s61alW6VD8HL/y3IqPcCLyUh59x y1C6N8pzX3ghbt3tPKc6Kjol5Q== X-Received: by 2002:a2e:9a10:: with SMTP id o16mr48004571lji.95.1564128323508; Fri, 26 Jul 2019 01:05:23 -0700 (PDT) Received: from [10.44.66.8] ([212.45.67.2]) by smtp.googlemail.com with ESMTPSA id u9sm8233986lfk.64.2019.07.26.01.05.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 26 Jul 2019 01:05:22 -0700 (PDT) Subject: Re: [RFC PATCH 09/11] devfreq: exynos-bus: Add interconnect functionality to exynos-bus To: =?UTF-8?B?QXJ0dXIgxZp3aWdvxYQ=?= , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, dri-devel@lists.freedesktop.org Cc: krzk@kernel.org, cw00.choi@samsung.com, myungjoo.ham@samsung.com, inki.dae@samsung.com, sw0312.kim@samsung.com, m.szyprowski@samsung.com References: <20190723122016.30279-1-a.swigon@partner.samsung.com> <20190723122016.30279-10-a.swigon@partner.samsung.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 f67WiEZgvN7tPXEzi84zT1PiUOM98dOnmREIamSpKOK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A3zFVRfLiT6NUjDQ0vdphTnsdA7h01MliZLQ2lLL2Mt5lsqU+6sup Tfql1omgEpjnFsPsyFebzcKGbdEr6vySGa3Cof+miX06hQXKe99a5+eHNhtZJcMAIO89wZmj 7ayYJIXFqjl/X0KBcCbiAl4vbdBw1bqFnO4zd1lMXKVoa29UHqby4MPbQhjWNVv9kqp8A39+ E9xw890l1xdERkjVKX6IEJu2hf7X3MMl9tOjBK6MvdOUxvh1bNNmXh7OlBL1MpJYY/ydIm3B KEmKjLDvB0pePJkdTw== Message-ID: <6e8b2081-2fb3-9ab8-37d1-8b5fe5fd8e11@linaro.org> Date: Fri, 26 Jul 2019 11:05:18 +0300 MIME-Version: 1.0 In-Reply-To: <20190723122016.30279-10-a.swigon@partner.samsung.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Artur, On 7/23/19 15:20, Artur Świgoń wrote: > This patch adds interconnect functionality to the exynos-bus devfreq > driver. > > The SoC topology is a graph (or, more specifically, a tree) and most of its > edges are taken from the devfreq parent-child hierarchy (cf. > Documentation/devicetree/bindings/devfreq/exynos-bus.txt). The previous > patch adds missing edges to the DT (under the name 'parent'). Due to > unspecified relative probing order, -EPROBE_DEFER may be propagated to > guarantee that a child is probed before its parent. > > Each bus is now an interconnect provider and an interconnect node as well > (cf. Documentation/interconnect/interconnect.rst), i.e. every bus registers > itself as a node. Node IDs are not hardcoded but rather assigned at > runtime, in probing order (subject to the above-mentioned exception > regarding relative order). This approach allows for using this driver with > various Exynos SoCs. I am not familiar with the Exynos bus topology, but it seems to me that it's not represented correctly. An interconnect provider with just a single node (port) is odd. I would expect that each provider consists of multiple master and slave nodes. This data would be used by a framework to understand what are the links and how the traffic flows between the IP blocks and through which buses. > The devfreq target() callback provided by exynos-bus now selects either the > frequency calculated by the devfreq governor or the frequency requested via > the interconnect API for the given node, whichever is higher. This completely makes sense. We just need to be sure that the interconnect framework is used correctly. Thanks, Georgi