Skip to content

Add APIs for configurable power options

Kevin Laatz dpdk-dev 6 versions – Applied

Status from this message: Applied, thanks.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v6 Latest4 patches 1 replyApplied
  2. v54 patches 2 repliesSuperseded
  3. v44 patches 5 repliesSuperseded
Earlier versions · 3
VersionPostedPatchesRepliesStatus
v34 patches3 repliesSuperseded
v24 patches8 repliesSuperseded
v14 patches2 repliesSuperseded

Changes in v6 from the cover letter

* fix units in doc API descriptions

Patches in v6 Applied

#Subject and filesSizeRepliesApplied
1/4lib/power: add get and set API for emptypoll maxdoc/guides/prog_guide/power_man.rst lib/power/rte_power_pmd_mgmt.c lib/power/rte_power_pmd_mgmt.h +1 more+55 -30 replies
2/4lib/power: add get and set API for pause durationdoc/guides/prog_guide/power_man.rst lib/power/rte_power_pmd_mgmt.c lib/power/rte_power_pmd_mgmt.h +1 more+62 -20 replies
3/4lib/power: add get and set API for scaling freq min and max with pstate modedoc/guides/prog_guide/power_man.rst lib/power/power_pstate_cpufreq.c lib/power/rte_power_pmd_mgmt.c +2 more+193 -50 replies
4/4examples/l3fwd_power: add cli for configurable optionsdoc/guides/sample_app_ug/l3_forward_power_man.rst examples/l3fwd-power/main.c+93 -10 replies

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by.

PatchRay KinsellaDavid HuntAnatoly Burakov
1/4A-b T-b
2/4A-b T-b A-b
3/4A-b T-b A-b
4/4A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v6 thread

Cover letter [PATCH v6 0/4] Add APIs for configurable power options

The power library contains some variables which are currently set by defines, hard-coded values or set using sysfs values. In order to configure these, code changes and recompiles are required, making configuring these variables tedious.

This patchset introduces some new get/set APIs which allow users and applications to configure there settings to suit their use-cases. In addition, CLI options have been added to l3fwd_power to demonstrate how an application could use these APIs to expose the options to users without needing code changes to configure them.

---
v6:
* fix units in doc API descriptions

v5:
* add doc updates for new APIs

v4:
* fix return value when scaling_freq_max is not set
* fix mismatching comments

v3:
* move setters from arg parse function to init
* consider 0 as 'not set' for scaling_freq_max
* other minor fixes

v2:
* add doc update for l3fwd-power
* order version.map additions alphabetically

Kevin Laatz (4):
lib/power: add get and set API for emptypoll max lib/power: add get and set API for pause duration lib/power: add get and set API for scaling freq min and max with
pstate mode
examples/l3fwd_power: add cli for configurable options

 doc/guides/prog_guide/power_man.rst           |  24 +++
 .../sample_app_ug/l3_forward_power_man.rst    |   8 +
 examples/l3fwd-power/main.c                   |  86 ++++++++++-
 lib/power/power_pstate_cpufreq.c              |  24 ++-
 lib/power/rte_power_pmd_mgmt.c                | 123 +++++++++++++++-
 lib/power/rte_power_pmd_mgmt.h                | 139 ++++++++++++++++++
 lib/power/version.map                         |  10 ++
 7 files changed, 403 insertions(+), 11 deletions(-)
Signature · 1 line
2.31.1