mbox series

[v2,0/3] add uncore api to be called through l3fwd-power

Message ID 20220713140706.4143705-1-tadhg.kearney@intel.com (mailing list archive)
Headers
Series add uncore api to be called through l3fwd-power |

Message

Tadhg Kearney July 13, 2022, 2:07 p.m. UTC
  This is targeting 22.11 and aims to add an API to DPDK to allow uncore frequency adjustment.
This will be called through the l3fwd-power app, and gives the ability to set the min,
max and specific frequency index that you want the uncore to be at.

Signed-off-by: Tadhg Kearney <tadhg.kearney@intel.com>
---

v2:
Fix compilation warnings and errors.

Tadhg Kearney (3):
  power: add uncore API to power library
  test/power: add unit tests for uncore API
  l3fwd-power: add option to call uncore API

 app/test/meson.build                          |   2 +
 app/test/test_power_uncore.c                  | 245 +++++++++++
 config/x86/meson.build                        |   2 +
 doc/guides/prog_guide/power_man.rst           |  27 ++
 .../sample_app_ug/l3_forward_power_man.rst    |  28 ++
 examples/l3fwd-power/main.c                   | 190 ++++++++-
 lib/power/meson.build                         |   2 +
 lib/power/rte_power_uncore.c                  | 399 ++++++++++++++++++
 lib/power/rte_power_uncore.h                  | 159 +++++++
 lib/power/version.map                         |   7 +
 10 files changed, 1045 insertions(+), 16 deletions(-)
 create mode 100644 app/test/test_power_uncore.c
 create mode 100644 lib/power/rte_power_uncore.c
 create mode 100644 lib/power/rte_power_uncore.h
  

Comments

Tadhg Kearney Sept. 19, 2022, 9:05 a.m. UTC | #1
This is targeting 22.11 and aims to add an API to DPDK power library to allow uncore frequency adjustment.
This will be called through the l3fwd-power app and gives the ability to set the minimum 
and maximum uncore frequency to both min, max or specific frequency index.

Signed-off-by: tadhgkearney <tadhg.kearney@intel.com>
---

v2:
Fix compilation warnings and errors.
v3:
Remove addition of x86 global macros.
Add 2 new API's for getting package and die numbers from system.
Address comments from mailing list.
Improve efficiency of code and code quality.


Tadhg Kearney (3):
  power: add uncore frequency control API to the power library
  l3fwd-power: add option to call uncore API
  test/power: add unit tests for uncore API

 app/test/meson.build                          |   2 +
 app/test/test_power_uncore.c                  | 293 ++++++++++++
 doc/guides/prog_guide/power_man.rst           |  37 ++
 doc/guides/rel_notes/release_22_11.rst        |   5 +
 .../sample_app_ug/l3_forward_power_man.rst    |  29 ++
 examples/l3fwd-power/main.c                   | 122 ++++-
 lib/power/meson.build                         |   2 +
 lib/power/rte_power_uncore.c                  | 447 ++++++++++++++++++
 lib/power/rte_power_uncore.h                  | 186 ++++++++
 lib/power/version.map                         |  11 +
 10 files changed, 1131 insertions(+), 3 deletions(-)
 create mode 100644 app/test/test_power_uncore.c
 create mode 100644 lib/power/rte_power_uncore.c
 create mode 100644 lib/power/rte_power_uncore.h