Hi Stephen,

The uncore options in l3fwd-power are not introduced by this series:
-u/-U/-i have been there since 10db2a5b87 ("examples/l3fwd-power:
add options for uncore frequency"). On the application side, this
series only cleans up that pre-existing handling (dedicated helpers,
rollback on failure) and lets users pick which package/die to control
instead of always applying to all of them (--uncore-freq).

The intended split is:
- Driver/environment setup stays inside the library: the app just
  calls rte_power_set_uncore_env(RTE_UNCORE_PM_ENV_AUTO_DETECT) and
  the library selects the driver itself. Patch 7 adds the detect
  callback used by that mechanism, and the Hisilicon driver registers
  itself without any application configuration.
- What remains in the application is the policy: which uncore domains
  to control and which frequency to pin (min/max/index). That is a
  per-application choice, and l3fwd-power is the sample demonstrating
  the rte_power APIs, as it already does for cpufreq and PM QoS.

We kept this out of EAL because uncore pinning is a policy rather
than environment abstraction: whether to touch uncore at all, and
which dies and values to use, differs from application to
application, while an EAL option would force one static policy on
all of them.

That said, if you think one-shot static uncore pinning belongs in
EAL, or a library-level "init all" helper would help, we are happy
to discuss it as a follow-up. Would the current approach be
acceptable for this series?

Thanks,
Shuaisong Yang

On 2026/11/26 2:56, Stephen Hemminger wrote:
> On Wed, 25 Nov 2026 22:06:06 +0800
> Shuaisong Yang <[email protected]> wrote:
> 
>> This series reworks the uncore frequency handling of the l3fwd-power
>> sample and extends the power library with a Hisilicon uncore driver
>> and uncore frequency telemetry.
>>
>> The first six patches restructure the power management code of
>> l3fwd-power: the uncore and cpufreq/QoS setup and cleanup paths are
>> extracted into dedicated helpers, the failure paths now roll back
>> the steps already taken, and the sample can set the frequency of a
>> specific package/die instead of applying the change to all of them.
>>
>> The last three patches extend the power library:
>>
>> - a detect callback is added to the uncore driver ops, letting a
>>   driver report by itself whether it can manage the platform;
>> - a new Hisilicon uncore driver is added on top of the devfreq
>>   sysfs interface of those platforms;
>> - the current uncore frequency is exposed through telemetry.
>>
>> Signed-off-by: Shuaisong Yang <[email protected]>
> 
> Why does application need to handle args about uncore?
> Seems to defeat the purpose having EAL.
> The setup should be in EAL not the application.

Reply via email to