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]>

Huisong Li (9):
  examples/l3fwd-power: extract function to deinit uncore
  examples/l3fwd-power: extract functions for cpufreq library
  examples/l3fwd-power: extract functions for power QoS
  examples/l3fwd-power: add rollback in uncore init
  examples/l3fwd-power: add rollback and best-effort deinit
  examples/l3fwd-power: set freq for specific uncore
  power: add detect callback for uncore driver
  power/hisi_uncore: support Hisilicon uncore driver
  power: add uncore frequency telemetry

 MAINTAINERS                                   |   4 +
 doc/guides/prog_guide/power_man.rst           |  38 +
 doc/guides/rel_notes/release_26_11.rst        |  11 +
 .../sample_app_ug/l3_forward_power_man.rst    |  13 +
 drivers/power/hisi_uncore/hisi_uncore.c       | 693 ++++++++++++++++++
 drivers/power/hisi_uncore/hisi_uncore.h       |  39 +
 drivers/power/hisi_uncore/meson.build         |  17 +
 drivers/power/meson.build                     |   1 +
 examples/l3fwd-power/main.c                   | 567 ++++++++++----
 lib/power/meson.build                         |   3 +-
 lib/power/power_uncore_ops.h                  |  17 +
 lib/power/rte_power_telemetry.c               | 129 ++++
 lib/power/rte_power_uncore.c                  |  14 +-
 lib/power/rte_power_uncore.h                  |   3 +-
 14 files changed, 1401 insertions(+), 148 deletions(-)
 create mode 100644 drivers/power/hisi_uncore/hisi_uncore.c
 create mode 100644 drivers/power/hisi_uncore/hisi_uncore.h
 create mode 100644 drivers/power/hisi_uncore/meson.build
 create mode 100644 lib/power/rte_power_telemetry.c

-- 
2.33.0

Reply via email to