From mboxrd@z Thu Jan 1 00:00:00 1970 From: Viresh Kumar Subject: Re: [PATCH V7 2/3] OPP: Allow multiple OPP tables to be passed via DT Date: Thu, 18 Jun 2015 07:55:43 +0530 Message-ID: <20150618022543.GA28820@linux> References: <263c128844f5a3c9280c8be71f6c9eb1869a5188.1433434659.git.viresh.kumar@linaro.org> <20150617133314.GB15153@linux> <55821F30.2090802@codeaurora.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <55821F30.2090802@codeaurora.org> Sender: linux-pm-owner@vger.kernel.org To: Stephen Boyd Cc: Rob Herring , Rafael Wysocki , "linaro-kernel@lists.linaro.org" , "linux-pm@vger.kernel.org" , Arnd Bergmann , Nishanth Menon , Mark Brown , Mike Turquette , Grant Likely , Olof Johansson , Sudeep Holla , "devicetree@vger.kernel.org" , Viswanath Puttagunta , Lucas Stach , Thomas Petazzoni , "linux-arm-kernel@lists.infradead.org" , Thomas Abraham , Abhilash Kesavan , Kevin Hilman , Santosh List-Id: devicetree@vger.kernel.org On 17-06-15, 18:30, Stephen Boyd wrote: > An operating-point(s?)-names property seems ok... but doesn't that mean > that every CPU that uses the OPP has to have the same list of > operating-point-names? Why do you think so? For me the operating-points-v2-names property will be present in CPU node (as there is no OPP node which can have it) and so every CPU is free to choose what it wants to. > It would make sense to me if the operating points > were called something different depending on *which* CPU is using them, > but in this case the only name for the operating point is "slow" or > "fast", etc. I am completely confused now. :) The problem you stated now was there with the current state of bindings. The name is embedded into the OPP table node and so is fixed for all the CPUs. Moving it to the CPU node will give all CPUs a chance to name it whatever they want to. And the same list has to be replicated to all CPUs sharing the clock rails. > In reality we've assigned them names like speedX-binY-vZ so that we know > which speed bin, voltage bin, and version they're part of. Maybe OPP > node properties like qcom,speed-bin = , qcom,pvs-bin = , etc. > would be better? Lets see, only if we can't get the generic stuff for this. > At the least, operating-points-names will be required on qcom platforms. > A fixed ordering known to the platform would mean that we know exactly > how many voltage bins and speed bins and how many voltage bins per speed > bin are used for a particular SoC, which we've avoided knowing so far. What are we referring to fixed ordering? If we have both a list of phandles to OPP tables and a list of names, they can be rearranged in whatever fashion we want. Isn't it? -- viresh From mboxrd@z Thu Jan 1 00:00:00 1970 From: viresh.kumar@linaro.org (Viresh Kumar) Date: Thu, 18 Jun 2015 07:55:43 +0530 Subject: [PATCH V7 2/3] OPP: Allow multiple OPP tables to be passed via DT In-Reply-To: <55821F30.2090802@codeaurora.org> References: <263c128844f5a3c9280c8be71f6c9eb1869a5188.1433434659.git.viresh.kumar@linaro.org> <20150617133314.GB15153@linux> <55821F30.2090802@codeaurora.org> Message-ID: <20150618022543.GA28820@linux> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On 17-06-15, 18:30, Stephen Boyd wrote: > An operating-point(s?)-names property seems ok... but doesn't that mean > that every CPU that uses the OPP has to have the same list of > operating-point-names? Why do you think so? For me the operating-points-v2-names property will be present in CPU node (as there is no OPP node which can have it) and so every CPU is free to choose what it wants to. > It would make sense to me if the operating points > were called something different depending on *which* CPU is using them, > but in this case the only name for the operating point is "slow" or > "fast", etc. I am completely confused now. :) The problem you stated now was there with the current state of bindings. The name is embedded into the OPP table node and so is fixed for all the CPUs. Moving it to the CPU node will give all CPUs a chance to name it whatever they want to. And the same list has to be replicated to all CPUs sharing the clock rails. > In reality we've assigned them names like speedX-binY-vZ so that we know > which speed bin, voltage bin, and version they're part of. Maybe OPP > node properties like qcom,speed-bin = , qcom,pvs-bin = , etc. > would be better? Lets see, only if we can't get the generic stuff for this. > At the least, operating-points-names will be required on qcom platforms. > A fixed ordering known to the platform would mean that we know exactly > how many voltage bins and speed bins and how many voltage bins per speed > bin are used for a particular SoC, which we've avoided knowing so far. What are we referring to fixed ordering? If we have both a list of phandles to OPP tables and a list of names, they can be rearranged in whatever fashion we want. Isn't it? -- viresh