DPDK-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/9] support uncore power management on Hisilicon platforms
@ 2026-11-25 14:06 Shuaisong Yang
  2026-11-25 14:06 ` [PATCH 1/9] examples/l3fwd-power: extract function to deinit uncore Shuaisong Yang
                   ` (9 more replies)
  0 siblings, 10 replies; 12+ messages in thread
From: Shuaisong Yang @ 2026-11-25 14:06 UTC (permalink / raw)
  Cc: dev, yangshuaisong, liuyonglong, fengchengwen, yangxingui,
	yangxingui

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 <yangshuaisong@h-partners.com>

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


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2026-11-26 11:47 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-25 14:06 [PATCH 0/9] support uncore power management on Hisilicon platforms Shuaisong Yang
2026-11-25 14:06 ` [PATCH 1/9] examples/l3fwd-power: extract function to deinit uncore Shuaisong Yang
2026-11-25 14:06 ` [PATCH 2/9] examples/l3fwd-power: extract functions for cpufreq library Shuaisong Yang
2026-11-25 14:06 ` [PATCH 3/9] examples/l3fwd-power: extract functions for power QoS Shuaisong Yang
2026-11-25 14:06 ` [PATCH 4/9] examples/l3fwd-power: add rollback in uncore init Shuaisong Yang
2026-11-25 14:06 ` [PATCH 5/9] examples/l3fwd-power: add rollback and best-effort deinit Shuaisong Yang
2026-11-25 14:06 ` [PATCH 6/9] examples/l3fwd-power: set freq for specific uncore Shuaisong Yang
2026-11-25 14:06 ` [PATCH 7/9] power: add detect callback for uncore driver Shuaisong Yang
2026-11-25 14:06 ` [PATCH 8/9] power/hisi_uncore: support Hisilicon " Shuaisong Yang
2026-11-25 14:06 ` [PATCH 9/9] power: add uncore frequency telemetry Shuaisong Yang
2026-11-25 18:56 ` [PATCH 0/9] support uncore power management on Hisilicon platforms Stephen Hemminger
2026-11-26 11:47   ` Shuaisong Yang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox