From: Lukasz Luba <lukasz.luba@arm.com>
To: "Rafael J. Wysocki" <rjw@rjwysocki.net>
Cc: LKML <linux-kernel@vger.kernel.org>,
Linux PM <linux-pm@vger.kernel.org>,
Dietmar Eggemann <dietmar.eggemann@arm.com>,
Ricardo Neri <ricardo.neri-calderon@linux.intel.com>
Subject: Re: [PATCH v1 2/3] PM: EM: Make three functions static
Date: Thu, 6 Mar 2025 10:01:51 +0000 [thread overview]
Message-ID: <92699eb4-8495-4ccd-a9dc-120b14271f9d@arm.com> (raw)
In-Reply-To: <1929404.tdWV9SEqCh@rjwysocki.net>
Hi Rafael,
On 3/5/25 21:11, Rafael J. Wysocki wrote:
> From: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
>
> Three functions in the Energy Model code, em_dev_update_perf_domain(),
> em_table_alloc() and em_table_free(), have no users outside that code and
> so make them static, remove their headers from the Energy Model header
> file and remove a piece of documentation associated with them.
>
> This also helps to clean up RCU handling in the Energy Model code that
> will be done subsequently.
>
> No intentional functional impact.
>
> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
> ---
>
> This essentially follow the rules that all functions without users in the
> files where they are defined should be static (with all due respect to any
> out-of-the-tree users of them).
>
> This change can be reversed when any new users of these functions appear,
> but it will have to take changes made by the subsequent patch into account.
>
I see your point and it's valid.
Although, please give me a few days and I will send some patches which
add a client for this API. It will be a modification of the EM for
CPUs while the GPU is producing heat to the SoC. Then IPA and EAS
will get the updated total power values (doe to this this leakage power)
in the EM.
As of now, I had some code downstream for research, that I share with
partners in the Android world [1].
I believe the user-space sysfs (like in that top patch) which allows
such EM modification would not be accepted?
Such approach might also help the Middle-ware in the OS to influence the
kernel decisions, mainly on phones, where the app just occupies the
screen and Middle-ware knows about it.
Regards,
Lukasz
[1]
https://gitlab.arm.com/linux-arm/linux-power/-/commits/dynamic_energy_model/android14-v6.1/v6.1.75/?ref_type=heads
next prev parent reply other threads:[~2025-03-06 10:01 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-03-05 21:06 [PATCH v1 0/3] PM: EM: API cleanups and elimination of __rcu-related sparse warnings Rafael J. Wysocki
2025-03-05 21:08 ` [PATCH v1 1/3] PM: EM: Consify two parameters of em_dev_register_perf_domain() Rafael J. Wysocki
2025-03-06 9:22 ` Lukasz Luba
2025-03-05 21:11 ` [PATCH v1 2/3] PM: EM: Make three functions static Rafael J. Wysocki
2025-03-06 10:01 ` Lukasz Luba [this message]
2025-03-06 10:37 ` Rafael J. Wysocki
2025-03-05 21:13 ` [PATCH v1 3/3] PM: EM: Address RCU-related sparse warnings Rafael J. Wysocki
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=92699eb4-8495-4ccd-a9dc-120b14271f9d@arm.com \
--to=lukasz.luba@arm.com \
--cc=dietmar.eggemann@arm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=ricardo.neri-calderon@linux.intel.com \
--cc=rjw@rjwysocki.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox