X-Received: by 2002:a05:6a00:23d4:b0:4c9:f1b6:8e97 with SMTP id g20-20020a056a0023d400b004c9f1b68e97mr302317pfc.27.1645630464948; Wed, 23 Feb 2022 07:34:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645630464; cv=none; d=google.com; s=arc-20160816; b=gkICvZmAcOghbGz3kwfrBILCy6TKXvkcu78fazlY3jWXmBVXD4oST3MQOtBXeN4H0K HaDSkzuGvL3b10cBzl5We73uk+qh8VJSfc40MHig68n8SWQoN/x+lIVYCmoe7HS8Lex5 hnSe/jqrhLH/x4bGWNQiCjUlE8aVRXICHly0c3Sne1OyEJQJGAVQgKGsDsTv8e/0xLQr tLAidVr+Ulnb1zXt2a1jatPlVeIn7Cto3pUraGevtdH5eAqt9l8UDSq1wtmKmDukzqkU clJ4AZSnIDVKj5UozG3ObWhBxpIrqtW1HzLWpnDn1ANUdWS+bgZ2yusmjUFwLLE6cEyl Xyrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=vbZBrO1w5Y/fPRacmo9SkqF6hvzrjwcmhZYXmR5NJl0=; b=yJXMB6VX90xCwH98C1GrM5uWbJrw+JSUQV/3alqQoEzi5BAN7/rIrfXnPxjS14Ij7S 2ktkXPxz/oejsHTpLKHnthmhPdhtPDVNqP2PYfX4roh3tUlJGc1p4m6Ftin2AY0ahEm0 aYBFsBSvu4OPaiNWMrIGF60KJXr0vjGPW+SbcCuHLvYExgZ7/NqtmkeywzPXd+fFjDbB BbygLXZGWnUeFRFupcJcNIDAuLUIHHwAKgk7eYW8tgeAHuOCEfyKqbf5epYUQNd59Ov0 lY2VNN1o0Ea2ygpACXGWQnYtM5M/dsRjR533ppbXNrqVHx8jcibkzq6G/0o34MJCXzlR KjVA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g4si23753733pgw.101.2022.02.23.07.34.07; Wed, 23 Feb 2022 07:34:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239810AbiBWLXC (ORCPT + 99 others); Wed, 23 Feb 2022 06:23:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60698 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233823AbiBWLXA (ORCPT ); Wed, 23 Feb 2022 06:23:00 -0500 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id B64448AE4C; Wed, 23 Feb 2022 03:22:32 -0800 (PST) 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 49987106F; Wed, 23 Feb 2022 03:22:32 -0800 (PST) Received: from [10.57.9.184] (unknown [10.57.9.184]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 59D7C3F70D; Wed, 23 Feb 2022 03:22:30 -0800 (PST) Message-ID: <94d3f2a3-4145-afdc-d810-61f2120df579@arm.com> Date: Wed, 23 Feb 2022 11:22:28 +0000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: [PATCH v2 0/2] Introduce 'advanced' Energy Model in DT Content-Language: en-US To: Viresh Kumar , Daniel Lezcano Cc: linux-kernel@vger.kernel.org, dietmar.eggemann@arm.com, rafael@kernel.org, nm@ti.com, sboyd@kernel.org, mka@chromium.org, dianders@chromium.org, robh+dt@kernel.org, devicetree@vger.kernel.org, linux-pm@vger.kernel.org References: <20220222140746.12293-1-lukasz.luba@arm.com> <467a7de4-df84-8e9e-a26a-80449ca55950@linaro.org> <20220223104341.jh5hjcv6ugaexgoa@vireshk-i7> From: Lukasz Luba In-Reply-To: <20220223104341.jh5hjcv6ugaexgoa@vireshk-i7> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2/23/22 10:43, Viresh Kumar wrote: > On 23-02-22, 10:52, Daniel Lezcano wrote: >> why not extend the energy model to any kind of devices? > > FWIW, the OPP core supports a wide range of devices now, not just CPUs. > Is that the "opp-level" thing which would allow that? I can see some DT files with regulators(?) using it e.g. [1]. It looks flexible, the opp-hz is not hard requirement, the opp-level can be used instead IIUC. It might be a next step which might meet Daniel's needs. If that 'level' can be any number and frequency is not available then EM must have 'level' filed in the struct em_perf_state for this kind of new devices. I'm open for such change. We can discuss this as a next step. We would need to find some examples how this new thing would be used. [1] https://elixir.bootlin.com/linux/v5.17-rc5/source/arch/arm/boot/dts/tegra20-peripherals-opp.dtsi#L4