From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id C0118F7; Tue, 12 Dec 2023 10:50:46 -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 D7FEEFEC; Tue, 12 Dec 2023 10:51:32 -0800 (PST) Received: from [192.168.178.6] (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 3F82F3F762; Tue, 12 Dec 2023 10:50:44 -0800 (PST) Message-ID: <8fc499cf-fca1-4465-bff7-a93dfd36f3c8@arm.com> Date: Tue, 12 Dec 2023 19:50:44 +0100 Precedence: bulk X-Mailing-List: linux-pm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v5 22/23] PM: EM: Add em_dev_compute_costs() as API for device drivers Content-Language: en-US To: Lukasz Luba , linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, rafael@kernel.org Cc: rui.zhang@intel.com, amit.kucheria@verdurent.com, amit.kachhap@gmail.com, daniel.lezcano@linaro.org, viresh.kumar@linaro.org, len.brown@intel.com, pavel@ucw.cz, mhiramat@kernel.org, qyousef@layalina.io, wvw@google.com References: <20231129110853.94344-1-lukasz.luba@arm.com> <20231129110853.94344-23-lukasz.luba@arm.com> From: Dietmar Eggemann In-Reply-To: <20231129110853.94344-23-lukasz.luba@arm.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 29/11/2023 12:08, Lukasz Luba wrote: > The device drivers can modify EM at runtime by providing a new EM table. > The EM is used by the EAS and the em_perf_state::cost stores > pre-calculated value to avoid overhead. This patch provides the API for > device drivers to calculate the cost values properly (and not duplicate > the same code). New interface w/o any users? Can we not remove this from this patch-set and introduce it with the first user(s)? [...]