Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp2344435ybl; Thu, 15 Aug 2019 10:16:58 -0700 (PDT) X-Google-Smtp-Source: APXvYqwvQC7ma7Gnbk7hTsoWYmEwXxqGP/y/GIUYPnTqH6KnvROO9nlT4iMwa/y+QnJr1qqZzfy2 X-Received: by 2002:a17:902:bd49:: with SMTP id b9mr5224121plx.343.1565889417930; Thu, 15 Aug 2019 10:16:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565889417; cv=none; d=google.com; s=arc-20160816; b=X9lJKH+i6vwAwJvyQTX2QhLLaZhkCaCnoZaJAFP1ISyWpa6NGKmEKVUlVN1DsVvpxK 8pOnkXSZVSE22GtO/7UsIcty/aL11i+Xq/PU5A/viBcFOOhb4rnegyAFIDOivBYdI70L uphAsKUZdN/iF2adoZJysZu/x7GiATjB1j7njMFIqc0aeIym8wyxuB9Dxc+o+Mn3dgDI zjuoQAiUo/FI3ePrK1NcM0RHE4SS+42bJQex0Jdon6eU2xp35krRwly15siFbO5VGB/f jeQhYxoTwJZ1JUED8a4ad+Yk6sKQunl7O/puvVkrUgNHWd8+vlc2bPnxuMxxo3dm54Jw F+RQ== 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=sRy0HGkkwueoNntrvDsZNILMk3C4/I8h6a3uq64hOBI=; b=pcKYss5HDWpHf4o9fvra2sbnxZeOfsCjn/mOn75tFPJ9hDU6mdvrVjIEhaGbNSSjTg Ue/ahAuENbuYRDVOL/exLX3j4djEAQ9nbFsxLbURkp5lryYTk/h0mTBNAG0sehnNUcV7 dCL8JlRRZSsJ45C4h/8zBcWxDxvuJK5ws4EDRzJnu5E6brTGnw/LzxBkis+zhj+upIXW ig0wl+G5UbuhoytjUL3Mi7oOgbyni6r34GTaZn3KSOU3d1CNpcL2hTmoVRf/mPjitzK+ +mRUip1DGXy3xIpLkd6J0oelBFaIFxq/GMzPHzamNNf+JbN592KnJDtluYkzZSzcqQ2M +cyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ydMINYfp; 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 5si2366100plx.417.2019.08.15.10.16.42; Thu, 15 Aug 2019 10:16:57 -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=ydMINYfp; 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 S1730683AbfHOQTx (ORCPT + 99 others); Thu, 15 Aug 2019 12:19:53 -0400 Received: from mail-lf1-f68.google.com ([209.85.167.68]:37716 "EHLO mail-lf1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730517AbfHOQTw (ORCPT ); Thu, 15 Aug 2019 12:19:52 -0400 Received: by mail-lf1-f68.google.com with SMTP id c9so2032731lfh.4 for ; Thu, 15 Aug 2019 09:19:50 -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=sRy0HGkkwueoNntrvDsZNILMk3C4/I8h6a3uq64hOBI=; b=ydMINYfpYUGZbA9ACQan1VPtHfcdEg+Eww++zFwxCu/4Oo6Q56sPdMh88RK8Lkbtji x+QfheLZoqaNk+LuLQXcblUSyc2BzPM222BFXpnIXzEPciqrUJQSfZpZ15umLFHD+muz y8tHSdcINQV/WMLMQjGvKjCcF8yVEGKx+CJla/p9H4229ECvVuDs31bEf9pCHyZ6r7CS VrUYumiERxsm2GkmrKULXDYlDJCUVLwcR1uZ1bjtdp72PT4Ij2vv6uslklUWtFga5BzS bBdF1FYvRAQuqFvlfLFth6IFhagFZ9kD9hN1uT3O7qsH5PD9nhVJH8/pMhfOXvP7Jw0F PLHA== 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=sRy0HGkkwueoNntrvDsZNILMk3C4/I8h6a3uq64hOBI=; b=IVHyvSEyecNbZkwpqCzkl/zPjdgcUlrM/SdWLZj389RZ9PvZ7B15+6ppWqnf+VlQJs R/x/lCsLpK82llAV6WkB+jNZMgvItI+eAg+t+Qzk07sp7b60YK5q24Y83DfzvtQJGoLF NtDEV7rKYWyCOtTz/gDfkU0OuqfnEKoXqkwpm98tXiSHr2QNKMbXu5Etw1dXYhqhDgg3 nTLERrZP0DkE1wYNQNtv42W6/Ag4jZ4u1OUY5k7gPK9YWmuHiazvCO0Sgxy3zWm8EI50 xC5Y1UGGkpwE44IgMovORKatWchLvQPKYKHRJ4Avhu92ZrbpSoJtTUA52koss8bkN8UP +nzQ== X-Gm-Message-State: APjAAAVhknT2xq99WEDiHKvyXrv5CjqJ+Otpqcm2R0H7cc5KsBLT0qJV 3kUeYzLkBPtJPDNOHVhBACbKe0NxGZ4= X-Received: by 2002:ac2:428d:: with SMTP id m13mr2755522lfh.52.1565885989674; Thu, 15 Aug 2019 09:19:49 -0700 (PDT) Received: from [10.44.66.8] ([212.45.67.2]) by smtp.googlemail.com with ESMTPSA id d21sm515144lfc.73.2019.08.15.09.19.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 15 Aug 2019 09:19:48 -0700 (PDT) Subject: Re: [PATCH v5 0/3] Introduce Bandwidth OPPs for interconnects To: Saravana Kannan , Rob Herring , Mark Rutland , Viresh Kumar , Nishanth Menon , Stephen Boyd , "Rafael J. Wysocki" Cc: vincent.guittot@linaro.org, seansw@qti.qualcomm.com, daidavid1@codeaurora.org, adharmap@codeaurora.org, Rajendra Nayak , sibis@codeaurora.org, bjorn.andersson@linaro.org, evgreen@chromium.org, kernel-team@android.com, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20190807223111.230846-1-saravanak@google.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+S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A7h01MliZLQ2lLL2Mt5lsqU+6sup Tfql1omgEpjnFsPsyFebzcKGbdEr6vySGa3Cof+miX06hQXKe99a5+eHNhtZJcMAIO89wZmj 7ayYJIXFqjl/X0KBcCbiAl4vbdBw1bqFnO4zd1lMXKVoa29UHqby4MPbQhjWNVv9kqp8A39+ E9xw890l1xdERkjVKX6IEJu2hf7X3MMl9tOjBK6MvdOUxvh1bNNmXh7OlBL1MpJYY/ydIm3B KEmKjLDvB0pePJkdTw== Message-ID: Date: Thu, 15 Aug 2019 19:19:44 +0300 MIME-Version: 1.0 In-Reply-To: <20190807223111.230846-1-saravanak@google.com> Content-Type: text/plain; charset=utf-8 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, On 8/8/19 01:31, Saravana Kannan wrote: > Interconnects and interconnect paths quantify their performance levels in > terms of bandwidth and not in terms of frequency. So similar to how we have > frequency based OPP tables in DT and in the OPP framework, we need > bandwidth OPP table support in DT and in the OPP framework. > > So with the DT bindings added in this patch series, the DT for a GPU > that does bandwidth voting from GPU to Cache and GPU to DDR would look > something like this: > > gpu_cache_opp_table: gpu_cache_opp_table { > compatible = "operating-points-v2"; > > gpu_cache_3000: opp-3000 { > opp-peak-KBps = <3000000>; > opp-avg-KBps = <1000000>; > }; > gpu_cache_6000: opp-6000 { > opp-peak-KBps = <6000000>; > opp-avg-KBps = <2000000>; > }; > gpu_cache_9000: opp-9000 { > opp-peak-KBps = <9000000>; > opp-avg-KBps = <9000000>; > }; > }; > > gpu_ddr_opp_table: gpu_ddr_opp_table { > compatible = "operating-points-v2"; > > gpu_ddr_1525: opp-1525 { > opp-peak-KBps = <1525000>; > opp-avg-KBps = <452000>; > }; > gpu_ddr_3051: opp-3051 { > opp-peak-KBps = <3051000>; > opp-avg-KBps = <915000>; > }; > gpu_ddr_7500: opp-7500 { > opp-peak-KBps = <7500000>; > opp-avg-KBps = <3000000>; > }; > }; > > gpu_opp_table: gpu_opp_table { > compatible = "operating-points-v2"; > opp-shared; > > opp-200000000 { > opp-hz = /bits/ 64 <200000000>; > }; > opp-400000000 { > opp-hz = /bits/ 64 <400000000>; > }; > }; > > gpu@7864000 { > ... > operating-points-v2 = <&gpu_opp_table>, <&gpu_cache_opp_table>, <&gpu_ddr_opp_table>; > ... > }; > > v1 -> v3: > - Lots of patch additions that were later dropped > v3 -> v4: > - Fixed typo bugs pointed out by Sibi. > - Fixed bug that incorrectly reset rate to 0 all the time > - Added units documentation > - Dropped interconnect-opp-table property and related changes > v4->v5: > - Replaced KBps with kBps > - Minor documentation fix > > Cheers, > Saravana > > Saravana Kannan (3): > dt-bindings: opp: Introduce opp-peak-kBps and opp-avg-kBps bindings > OPP: Add support for bandwidth OPP tables > OPP: Add helper function for bandwidth OPP tables > > Documentation/devicetree/bindings/opp/opp.txt | 15 ++++-- > .../devicetree/bindings/property-units.txt | 4 ++ > drivers/opp/core.c | 51 +++++++++++++++++++ > drivers/opp/of.c | 41 +++++++++++---- > drivers/opp/opp.h | 4 +- > include/linux/pm_opp.h | 19 +++++++ > 6 files changed, 121 insertions(+), 13 deletions(-) > For the series: Acked-by: Georgi Djakov Thanks, Georgi