[v3,0/3] add uncore api to be called through l3fwd-power
Message ID | 20220919085649.827636-1-tadhg.kearney@intel.com (mailing list archive) |
---|---|
Headers |
Return-Path: <dts-bounces@dpdk.org> X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id F3E81A00C3; Mon, 19 Sep 2022 10:56:56 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id CC2B240E0F; Mon, 19 Sep 2022 10:56:56 +0200 (CEST) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by mails.dpdk.org (Postfix) with ESMTP id DFEF440141 for <dts@dpdk.org>; Mon, 19 Sep 2022 10:56:54 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1663577815; x=1695113815; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=Wj2N0a4CFcOKGiWVPwz7lFZlIGcDdUmIiJr515/JUgQ=; b=hvj96YkVAJS1IUpSuONRdIxO0vNseFMQTQTR/qYiAArGoQjk1kuxLtLx DiFWG39Egm8kEOHOmIvp9U4IIj14AAJ30P7GwJt5cTzJbtRkvg2xWZG6i zA9xDNZV88WcNWLVoH+aqWTp92fdTX2e7D1SXF2JrCw10m+8tOa/dNYyl vNkO1unlJNk2bTW/cXyXrRQJ9cZRdfaB6+1NFL+CHH3yd8+BtrvU6jiKj al3fjh8jz8XRHdZwOb3LwbH/SgvC+Q1GvjDwIgngojgYCFg20GrJewDh6 1jpJ1X/xkrk4NFPkjaUClPHkoRjVcQLsosQFSaAzANrypu93AldEaVSUk A==; X-IronPort-AV: E=McAfee;i="6500,9779,10474"; a="363303661" X-IronPort-AV: E=Sophos;i="5.93,327,1654585200"; d="scan'208";a="363303661" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Sep 2022 01:56:53 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,327,1654585200"; d="scan'208";a="680762646" Received: from silpixa00401183.ir.intel.com ([10.55.129.143]) by fmsmga008.fm.intel.com with ESMTP; 19 Sep 2022 01:56:52 -0700 From: Tadhg Kearney <tadhg.kearney@intel.com> To: dts@dpdk.org Cc: reshma.pattan@intel.com, david.hunt@intel.com, anatoly.burakov@intel.com, Tadhg Kearney <tadhg.kearney@intel.com> Subject: [PATCH v3 0/3] add uncore api to be called through l3fwd-power Date: Mon, 19 Sep 2022 08:56:46 +0000 Message-Id: <20220919085649.827636-1-tadhg.kearney@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220713140706.4143705-1-tadhg.kearney@intel.com> References: <20220713140706.4143705-1-tadhg.kearney@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: test suite reviews and discussions <dts.dpdk.org> List-Unsubscribe: <https://mails.dpdk.org/options/dts>, <mailto:dts-request@dpdk.org?subject=unsubscribe> List-Archive: <http://mails.dpdk.org/archives/dts/> List-Post: <mailto:dts@dpdk.org> List-Help: <mailto:dts-request@dpdk.org?subject=help> List-Subscribe: <https://mails.dpdk.org/listinfo/dts>, <mailto:dts-request@dpdk.org?subject=subscribe> Errors-To: dts-bounces@dpdk.org |
Message
Tadhg Kearney
Sept. 19, 2022, 8:56 a.m. UTC
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