Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp3198997ybi; Mon, 29 Jul 2019 02:37:33 -0700 (PDT) X-Google-Smtp-Source: APXvYqw4PXTgNqovi2XTNjEYCciwIXLXTEi9U+dDxyiPlNTXs+ms8NZeQ4bSBDNxqOSdv84nxpMd X-Received: by 2002:aa7:8502:: with SMTP id v2mr34742781pfn.98.1564393053232; Mon, 29 Jul 2019 02:37:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564393053; cv=none; d=google.com; s=arc-20160816; b=mftFeSJIDdsEtOeHBI6oUlQGzxMYcmEii7vL1hpk2ZgkWXdm7Pf+/YnLvektyHrCHY JVDEAqRpXaUV3v/P+P+HvZTFdWIFdgnEAC3s7el6Gs+tihstKcZGd+GkAqR0q5LpJj1y 2k0MrCPmsYKKk9jY/81ZdtQ1YubXLUQASFJH/vB6nBxS/bg+LmbYHg03Tkq7lbUvQkL1 izF7TTdeys1JtVSRs2zxZrVxfexF4LdZHAVtuo6/oqeTVA/Zv6L2Gur8/IBDPXETAKlj a0hbT54x7KfJMD5BibSk2f8ClemDG3ltxRaIXPaoW3Lq6M78Fso9VlMKT87EtyJYFm3U ak+Q== 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=9x4q40YNu8PZPNIMOeH6iHYV/NmKq4shqC8DBZn6n2U=; b=bU+Csr4ndIRrF5+jMmjf8r1P3ZztBcBfIwTXfXH/Io2OaUC6yvqXcCBYCxqIuByhaG wn3pb2yxO4i7HvqrVZNEDUs7LtXaxZ3/LWhKPQeyVtoLgAtopCrsSJpzvuGMdgDxbz4s Qc3varor+ceBga6dpDZoykhxGu2nceurIyH+nra6J7d4IA/YZ/mR9MBm/LSd1X/AtOVD OlvcSNhAdPAR1KzQpLP6pfxm5kUt1mNNfrR6XAUZQmiyzBuAQp4wJCNQVJSbq2VkxD2v zmcA5wHrqXjPfM7Kadvh0aGQG6kp2AT+Vnk2a7AqorXwz5uD+2Y957JvHSf9mD2kPpA2 vHOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=psnZBQy5; 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 h4si6400247plb.71.2019.07.29.02.37.17; Mon, 29 Jul 2019 02:37:33 -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=psnZBQy5; 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 S1727979AbfG2Jfu (ORCPT + 99 others); Mon, 29 Jul 2019 05:35:50 -0400 Received: from mail-pg1-f196.google.com ([209.85.215.196]:33966 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387418AbfG2Jfs (ORCPT ); Mon, 29 Jul 2019 05:35:48 -0400 Received: by mail-pg1-f196.google.com with SMTP id n9so21736691pgc.1 for ; Mon, 29 Jul 2019 02:35:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=9x4q40YNu8PZPNIMOeH6iHYV/NmKq4shqC8DBZn6n2U=; b=psnZBQy5CgQsotR4fjYCVbWm7lutJhGnn3FiudticeJjy8OTsBbRe5kJQF/0SLksPF +DCS0kbRS1PtOXIM06h4Zun8Hs0X42Sa4GCi7iNowPoK5X4BtcDqMC/JjTmrCvt+/d8v 5kS9pj9ElrVzNRiPBNUeML71Zhfp9QytXreocsBrrUfMNMhfR6KdH33Jm6eLW8O+8o3m 4Ic1xMZw30pKqBBm9StqhcPddXoBnkvCXoIJ9FnqFWYJdnKQ7BKVoXrj1R9erq/zualR S5U1dBfR4Ylz10h8cUeXHA23eZ3zRCpfPly0Ii96aXm58AFxqsU4gJhLVDpnm2TceAMx R6Bg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=9x4q40YNu8PZPNIMOeH6iHYV/NmKq4shqC8DBZn6n2U=; b=c1gIiVtTJRtSpsBAE3R8O/5y5DbNs3TRZrDyNVKNF9xtaFitpV2KwcjngcVh1V5EUw ZT8FqEe3xBY4iCduiT57L0bCntpyH7mcdgH2AkZPVC5/WFZH2M0611cVkCzYyUVyx0A3 uc9kUeCYV3lBjmZoC0XjtLQwEyCOtBXbXwI9vJVHjaC/908EXQS3UY8tI14MEgiosIGx PR2mMTtRBlakPoGQIqt9GUJI+vTi6ZHsEdilZSSOYAhrOFSadeikKYOWukKtAY3vGE/R ejK2IlepO/wKm/RqbtJ2jgOCF++1+ynMbeTOSCXeQnT0ACuQ3YqTWnVBTwQrTJ61Y/iy pEwg== X-Gm-Message-State: APjAAAVwbLSYKgzKQHuvoY/j8mFNSQjdE70MhCA92a2XgbiPvMMyzzfp 5nFqd0RmEOqvevfudDvoY4IzWA== X-Received: by 2002:aa7:8b10:: with SMTP id f16mr36090070pfd.44.1564392948016; Mon, 29 Jul 2019 02:35:48 -0700 (PDT) Received: from localhost ([122.172.28.117]) by smtp.gmail.com with ESMTPSA id c70sm6172721pfb.36.2019.07.29.02.35.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 29 Jul 2019 02:35:47 -0700 (PDT) Date: Mon, 29 Jul 2019 15:05:45 +0530 From: Viresh Kumar To: Saravana Kannan Cc: Rob Herring , Mark Rutland , Viresh Kumar , Nishanth Menon , Stephen Boyd , "Rafael J. Wysocki" , Georgi Djakov , 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 Subject: Re: [PATCH v4 0/3] Introduce Bandwidth OPPs for interconnects Message-ID: <20190729093545.kvnqxjkyx4nogddk@vireshk-i7> References: <20190726231558.175130-1-saravanak@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190726231558.175130-1-saravanak@google.com> User-Agent: NeoMutt/20180716-391-311a52 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 26-07-19, 16:15, 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>; > ... > }; One feedback I missed giving earlier. Will it be possible to get some user code merged along with this ? I want to make sure anything we add ends up getting used. That also helps understanding the problems you are facing in a better way, i.e. with real examples. -- viresh