From: Changwoo Min <changwoo@igalia.com>
To: Andrew Lunn <andrew@lunn.ch>
Cc: Donald Hunter <donald.hunter@gmail.com>,
Lukasz Luba <lukasz.luba@arm.com>,
linux-pm@vger.kernel.org, sched-ext@lists.linux.dev,
Jakub Kicinski <kuba@kernel.org>,
Network Development <netdev@vger.kernel.org>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: Concerns with em.yaml YNL spec
Date: Mon, 15 Dec 2025 10:57:03 +0900 [thread overview]
Message-ID: <c65961d2-d31b-4ff9-ac1c-b5e3c06a46ba@igalia.com> (raw)
In-Reply-To: <bb7871f1-3ea7-4bf7-baa9-a306a2371e4b@lunn.ch>
Hi Andrew,
On 12/15/25 01:21, Andrew Lunn wrote:
>>> We also need to watch out for other meaning of these letters. In the
>>> context of networking and Power over Ethernet, PD means Powered
>>> Device. We generally don't need to enumerate the PD, we are more
>>> interested in the Power Sourcing Equipment, PSE.
>>>
>>> And a dumb question. What is an energy model? A PSE needs some level
>>> of energy model, it needs to know how much energy each PD can consume
>>> in order that it is not oversubscribed.Is the energy model generic
>>> enough that it could be used for this? Or should this energy model get
>>> a prefix to limit its scope to a performance domain? The suggested
>>> name of this file would then become something like
>>> performance-domain-energy-model.yml?
>>>
>>
>> Lukasz might be the right person for this question. In my view, the
>> energy model essentially provides the performance-versus-power-
>> consumption curve for each performance domain.
>
> The problem here is, you are too narrowly focused. My introduction
> said:
>
>>> In the context of networking and Power over Ethernet, PD means
>>> Powered Device.
>
> You have not given any context. Reading the rest of your email, it
> sounds like you are talking about the energy model/performance domain
> for a collection of CPU cores?
>
> Now think about Linux as a whole, not the little corner you are
> interested in. Are there energy models anywhere else in Linux? What
> about the GPU cores? What about Linux regulators controlling power to
> peripherals? I pointed out the use case of Power over Ethernet needing
> an energy model.
>
>> Conceptually, the energy model covers the system-wide information; a
>> performance domain is information about one domain (e.g., big/medium/
>> little CPU blocks), so it is under the energy model; a performance state
>> is one dot in the performance-versus-power-consumption curve of a
>> performance domain.
>>
>> Since the energy model covers the system-wide information, energy-
>> model.yaml (as Donald suggested) sounds better to me.
>
> By system-wide, do you mean the whole of Linux? I could use it for
> GPUs, regulators, PoE? Is it sufficiently generic? I somehow doubt it
> is. So i think you need some sort of prefix to indicate the domain it
> is applicable to. We can then add GPU energy models, PoE energy
> models, etc by the side without getting into naming issues.
>
This is really the question for the energy model maintainers. In my
understanding, the energy model can cover any device in the system,
including GPUs. But, in my limited experience, I haven’t seen such cases
beyond CPUs.
@Lukasz — What do you think? The focus here is on the scope of the
“energy model” and its proper naming in the NETLINK.
> Naming is important, and causes a lot of pain when you get it
> wrong. Linux has PHYs and generic PHYs. The PHY subsystem has been
> around a long time, and generic PHY is much newer. And sometimes a PHY
> has a generic PHY associated to it, so it can get really confusing
> unless you are very precises with wording.
>
> We need to be careful with any generic term, such as energy model.
>
I absolutely agree with you. Thank you for sharing your concerns and
examples.
Regards,
Changwoo Min
> Andrew
>
next prev parent reply other threads:[~2025-12-15 1:57 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-12-11 15:54 Donald Hunter
2025-12-11 17:01 ` Andrew Lunn
2025-12-14 11:35 ` Changwoo Min
2025-12-14 16:21 ` Andrew Lunn
2025-12-15 1:57 ` Changwoo Min [this message]
2025-12-15 10:30 ` Rafael J. Wysocki
2025-12-15 15:01 ` Changwoo Min
2025-12-15 15:06 ` Rafael J. Wysocki
2025-12-16 2:06 ` Changwoo Min
2025-12-11 17:04 ` Andrew Lunn
2025-12-11 17:09 ` Donald Hunter
2025-12-11 17:47 ` Andrew Lunn
2025-12-14 11:14 ` Changwoo Min
2025-12-14 11:38 ` Changwoo Min
2025-12-15 10:51 ` Donald Hunter
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=c65961d2-d31b-4ff9-ac1c-b5e3c06a46ba@igalia.com \
--to=changwoo@igalia.com \
--cc=andrew@lunn.ch \
--cc=donald.hunter@gmail.com \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=lukasz.luba@arm.com \
--cc=netdev@vger.kernel.org \
--cc=sched-ext@lists.linux.dev \
/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
all inboxes | Powered by JetHome®