Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932885AbeAJFhe (ORCPT + 1 other); Wed, 10 Jan 2018 00:37:34 -0500 Received: from mail-pl0-f65.google.com ([209.85.160.65]:38778 "EHLO mail-pl0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752226AbeAJFhb (ORCPT ); Wed, 10 Jan 2018 00:37:31 -0500 X-Google-Smtp-Source: ACJfBotoM7Xbeol6Q7ykvwyPgriLTuRsquCllheHZbty75OLpI9KMCWDPmTUJDsjKsLEaqWYI1p4Dg== Date: Wed, 10 Jan 2018 11:07:26 +0530 From: Viresh Kumar To: Rob Herring , Stephen Boyd Cc: Ulf Hansson , Kevin Hilman , Viresh Kumar , Nishanth Menon , Rafael Wysocki , linux-pm@vger.kernel.org, Vincent Guittot , Rajendra Nayak , Sudeep Holla , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH V8 3/3] OPP: Allow "opp-hz" and "opp-microvolt" to contain magic values Message-ID: <20180110053726.GA3626@vireshk-i7> References: <476d7ae69184d787ccc6d99f8df6069007fd0a91.1513591822.git.viresh.kumar@linaro.org> <20171226202955.32j7gzonrixtwdpt@rob-hp-laptop> <20171227085645.GF8312@vireshk-i7> <20171228043725.GB8652@vireshk-i7> <20171229003253.GD7997@codeaurora.org> <20171229045854.GE8652@vireshk-i7> <20180105221954.GC21040@codeaurora.org> <20180108041643.GC4003@vireshk-i7> <20180110025454.GG21040@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180110025454.GG21040@codeaurora.org> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: On 09-01-18, 18:54, Stephen Boyd wrote: > My read of Kevin's comments lead me to think he's saying that a > generic 'domain-performance-state' property is worse than putting > the numbers directly inside of the opp table with a comment above > it. Now that's all fine, but now that we have required-opps > binding we sort of have the domain-performance-state property > again, but it's a phandle instead of a raw state number. > > So we have > > required-opps = <&perf_state>; > > but what was proposed before was > > domain-performance-state = <1>; > > or Kevin's > > opp-table = <100000 1>; His concern was also on what will we do if "frequency" or other OPP properties aren't known tomorrow by the kernel but the firmware? In Qcom case, its just the voltage (corner) today, but it can very well be other properties tomorrow. Are we going to add more platform specific bindings then ? And this is the main reason why I have been aligned towards using something like this patch. If we drop the magic-values idea and hence this patch, then we can either add a "domain-performance-state" property, which will only be used by the power domains or leave it for the platforms to add something like "qcom,corner". All we are doing here is putting a voltage (corner) value, unknown to the kernel, in a new property instead of "opp-microvolt". But the above question still remains, what about other properties that may need magic values in future. Honestly speaking, I am not sure what's the right thing to do here. I will do whatever you and Rob incline for. -- viresh