Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp3340749ybb; Mon, 6 Apr 2020 07:07:09 -0700 (PDT) X-Google-Smtp-Source: APiQypJzPvEn9Smm7s6fuuCrempi3wGyNhgpRn1C2Fc42dBgtVJal4sVCxS7VGt63hd+CuTqR8/o X-Received: by 2002:aca:f346:: with SMTP id r67mr13212946oih.39.1586182029158; Mon, 06 Apr 2020 07:07:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586182029; cv=none; d=google.com; s=arc-20160816; b=z4BT/gYs0YK9ilin6cmycTb8680HmyEMPpc+8CLEx5WeDMA3HL6KrzcgsxhZoFIKCa AKcuJ1goUhl0JqeMUu1AGgmOg8fjNeAdAw68LDVmtRAmE7BjrPoapORB7aFw+4EQpHWc OiOKsCdW2tSpIFmP0d/lveDoxW9ctEZLoGFHhFbV85iR5n9+pq96sTf7X8Ai+MGegTBO NZNBBP9tzdwIt4CyY6U9JYb9obAbOY6ZVYC1Q2vSZQajnXXSGAySH/HYp8HPJhK6v94H WrhFNFFH+Mq2JZLsNJ2UBB09SKAHQCA0YLi8hQnxOvTMRCFbxU2Qb17ROEJi1UtSI7zx Bt9Q== 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:user-agent:date :message-id:from:references:cc:to:subject; bh=mVz1rpnQ00VlxazSLSp2pjzyFOdcLcVAduu+V24BWjw=; b=nrvVc6qteJd2hfRZ+KElt3uJmyA1u53FNVEYnQu24UCUSY6n5AANfqw23pOJw8RPAx M+sywgyuywI2sVou/YPFutaA/yL0v0BK0KGaJhkiisQcyMsRy1PxHgaF1F/LbhkKgkK7 TCXw+AN5USe1AtqFZiyWrOhLnwWXuG4bcXkDoFRdqTbQQ4Eo8msJpbz+LlzwzasfzvHX ELl8vY+R5sgDGHWEI45KsW7i0TVDY4goPKVwoosd9pUOuvYzK6jOtnuCvWjUU3iKKMzQ +avV/S/Ntytf7pEF2BJmXT4wtrypucDOYLwPwcjz/7QrqF2oyJSFc/zVlVAx0k37Khq1 I7tw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w4si7426087oie.124.2020.04.06.07.06.40; Mon, 06 Apr 2020 07:07:09 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728555AbgDFOF4 (ORCPT + 99 others); Mon, 6 Apr 2020 10:05:56 -0400 Received: from foss.arm.com ([217.140.110.172]:46148 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728086AbgDFOFz (ORCPT ); Mon, 6 Apr 2020 10:05:55 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 1F809106F; Mon, 6 Apr 2020 07:05:53 -0700 (PDT) Received: from [10.37.12.4] (unknown [10.37.12.4]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id EA1043F73D; Mon, 6 Apr 2020 07:05:42 -0700 (PDT) Subject: Re: [PATCH v5 2/5] OPP: refactor dev_pm_opp_of_register_em() and update related drivers To: Daniel Lezcano , linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, dri-devel@lists.freedesktop.org, linux-omap@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-arm-msm@vger.kernel.org, linux-imx@nxp.com Cc: Morten.Rasmussen@arm.com, Dietmar.Eggemann@arm.com, javi.merino@arm.com, cw00.choi@samsung.com, b.zolnierkie@samsung.com, rjw@rjwysocki.net, sudeep.holla@arm.com, viresh.kumar@linaro.org, nm@ti.com, sboyd@kernel.org, rui.zhang@intel.com, amit.kucheria@verdurent.com, mingo@redhat.com, peterz@infradead.org, juri.lelli@redhat.com, vincent.guittot@linaro.org, rostedt@goodmis.org, qperret@google.com, bsegall@google.com, mgorman@suse.de, shawnguo@kernel.org, s.hauer@pengutronix.de, festevam@gmail.com, kernel@pengutronix.de, khilman@kernel.org, agross@kernel.org, bjorn.andersson@linaro.org, robh@kernel.org, matthias.bgg@gmail.com, steven.price@arm.com, tomeu.vizoso@collabora.com, alyssa.rosenzweig@collabora.com, airlied@linux.ie, daniel@ffwll.ch, liviu.dudau@arm.com, lorenzo.pieralisi@arm.com, patrick.bellasi@matbug.net, orjan.eide@arm.com, rdunlap@infradead.org, mka@chromium.org References: <20200318114548.19916-1-lukasz.luba@arm.com> <20200318114548.19916-3-lukasz.luba@arm.com> <3ee5dc1a-fdfe-da17-9a62-a5182c1f4d3e@linaro.org> From: Lukasz Luba Message-ID: <00c839d1-2f03-2d3b-5746-95deae30bee3@arm.com> Date: Mon, 6 Apr 2020 15:05:41 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <3ee5dc1a-fdfe-da17-9a62-a5182c1f4d3e@linaro.org> Content-Type: text/plain; charset=utf-8; format=flowed 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 Daniel, Thank you for your comments. On 4/3/20 5:21 PM, Daniel Lezcano wrote: > On 18/03/2020 12:45, Lukasz Luba wrote: >> The Energy Model framework supports both: CPUs and devfreq devices. Drop >> the CPU specific interface with cpumask and add struct device. Add also a >> return value. This new interface provides easy way to create a simple >> Energy Model, which then might be used in i.e. thermal subsystem. > > This patch contains too many different changes. OK, I will create 4 patches: 1) change with new argument in API function: void dev_pm_opp_of_register_em(dev, cpumask) and updated drivers 2) changes with _get_cpu_power --> _get_power 3) changes adding int return in dev_pm_opp_of_register_em() and updating error handling path inside 4) header changes with new dev_pm_opp_of_unregister_em() > > There are fixes and traces added in addition to a function prototype change. > > Please provide patches separated by logical changes. I will try to make this API change in a safe way, which won't break cpufreq drivers compilation. > > If the cpumask is extracted in the underlying function > em_register_perf_domain() as suggested in the previous patch 1/5, > dev_pm_opp_of_register_em() can be struct device centric only. That would be ideal situation but unfortunately not possible to implement (as responded in 1/5). Regards, Lukasz